This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to forward the result of a business login in servlet to the jsp

 
bandaru Babu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi to all
i write a jsp program which sends the input to the servlet
the servlet receives the input and does some business logic(addition of two integers)

My question is how the servlet sends the result of addition of two numbers to another jsp .

Thanks,
Surendra

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65339
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"bandaru BABU", please check your private messages for an important administrative matter.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put the result into scope (generally a request attribute) and retrieve it in the JSP.
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In addition to what David said, you may want to look up the requestDispatcher object.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic