File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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: 60059
    
  65

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
 
Similar Threads
How view of table can be controlled on a Button
Auto Submit
I want two buttons on a page, one for "search refine", one for "submit", how to do ?
Sending checkbox value to two different servlet page
My Cancel button is not working in struts1.2