Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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: 67634
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?
 
Are you okay? You look a little big. Maybe this tiny ad will help:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic