• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Submit button calling Java Methods

 
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
Pie
Posts: 64721
86
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic