aspose file tools*
The moose likes JSP and the fly likes passing multiple values from one page to another Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "passing multiple values from one page to another" Watch "passing multiple values from one page to another" New topic
Author

passing multiple values from one page to another

Eduardo Ponce de Leon
Ranch Hand

Joined: May 13, 2009
Posts: 99
I have a list that its being displayed from a query. However the user will have the option to select multiple values on that list. I want to know how can i pass the values from one page to the other. I havent find a solution that I can work with...
THIS IS my form...




this is the page i want to display results...



thank you all for the help!!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61756
    
  67

I would be remiss if I did not point out that using Java code in scriptlets in a JSP is a really really bad practice that has been discredited for so long now that it's simply irresponsible to be writing code like this in 2011.

OK, with that out of the way, you haven't really explained your problem. Any values represented by form elements will be submitted no matter how many there are. So sending multiple values as part of the form submission is no problem at all.

So please explain in more detail what the issue is. Just posting a lot of code without much explanation doesn't help us help you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eduardo Ponce de Leon
Ranch Hand

Joined: May 13, 2009
Posts: 99
Ok! I can get rid of the java code in the scriptlets
My problem is that I cannot get the values of what I've selected on the page i want. I need to know what values the user has selected because my sql query will depend upon that. So the user can select multiple values on a list and when they click on the submit button, on my following page I cannot get the values the user submitted. Does that explain my problem?
Eduardo Ponce de Leon
Ranch Hand

Joined: May 13, 2009
Posts: 99
Ok! I can get rid of the java code in the scriptlets
My problem is that I cannot get the values of what I've selected on the page i want. I need to know what values the user has selected because my sql query will depend upon that. So the user can select multiple values on a list and when they click on the submit button, on my following page I cannot get the values the user submitted. Does that explain my problem?
Eduardo Ponce de Leon
Ranch Hand

Joined: May 13, 2009
Posts: 99
Ok! I can get rid of the java code in the scriptlets
My problem is that I cannot get the values of what I've selected on the page i want. I need to know what values the user has selected because my sql query will depend upon that. So the user can select multiple values on a list and when they click on the submit button, on my following page I cannot get the values the user submitted. Does that explain my problem?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: passing multiple values from one page to another