This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes two forms in the same page, how to? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "two forms in the same page, how to?" Watch "two forms in the same page, how to?" New topic
Author

two forms in the same page, how to?

majid nakit
Ranch Hand

Joined: Jun 26, 2001
Posts: 164
I am trying to have a jsp page :

Enter user to get information:
User : ........... Go button

when the user press Go button
the same page will show information about that user from the database that has another submit button.

please your help is appreciated.

thanks
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I'm not sure what the question is.
majid nakit
Ranch Hand

Joined: Jun 26, 2001
Posts: 164
Hi david,

my question was I want the form :
textfield and Find button

and the results be in the same page.

thanks
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You'll probably need to use Ajax, then, if you're interested in getting the results back without refreshing the entire page.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: two forms in the same page, how to?