• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing multiple values from one page to another

 
Eduardo Ponce de Leon
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Eduardo Ponce de Leon
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic