• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

passing multiple values from one page to another

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
The moustache of a titan! The ad of a flea:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic