permaculture playing cards*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Submit button calling Java Methods" Watch "Submit button calling Java Methods" New topic

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

Joined: Jan 10, 2002
Posts: 60785

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