aspose file tools*
The moose likes JSP and the fly likes Submit button calling Java Methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Submit button calling Java Methods" Watch "Submit button calling Java Methods" New topic
Author

Submit button calling Java Methods

Eric Tan
Ranch Hand

Joined: Oct 11, 2006
Posts: 72
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

Joined: Jan 10, 2002
Posts: 61238
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Submit button calling Java Methods