• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to get the name of the html:select in the Next jsp without putting it in session

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
I am using an array as an input to my html:select option tag.But my value att of the html ption and name are different.
The property attribute of the html:select contains only the value and not the name.
I want the name to be displayed in the next confirmation page.jsp.

Is it possible to do this without having to put the array in the session scope.

Plz guide me,

Thanks

Sana
 
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess it is a bit difficult, but do you just need that name?

You can use

to get all names of the request parameters, and then choose your target attribute name. And if it is the only request parameter from the previous page, you have no need to add any logic to identify which attribute is the one you needed.

I think in this way becos, if we wanna get something in the DispatchAction class, we may need to know the parameter name, and that we can get the value. If we dont know the parameter names, we may then get the whole list of parameter names, and then get back the name-value pairs.

Even we use ActionForm to capture the request parameters, the request parameters are still in the request, and thus, we can still get the values.

Nick
 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use for get all parameter


Use for get data from parameter name
 
reply
    Bookmark Topic Watch Topic
  • New Topic