This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages 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: 65229
95
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