Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Submit button calling Java Methods  RSS feed

 
Eric Tan
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone please guide me if i have two jsp pages and after i press the submit button in the first page, i want to run two methods in java, that is stored and retrieve method whereby i want to display the results after i have retrieved in the second jsp page?

thanks alot
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No problem. The button triggers a submit to a servlet, which invokes your methods and sets the results on top the request as scoped variables. It then forwards tot he JSP page which retrieves the scoped variables for display.

This is all very typical behavior.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!