This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes (finished)Question related to s:select Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "(finished)Question related to s:select" Watch "(finished)Question related to s:select" New topic
Author

(finished)Question related to s:select

garrick chen
Greenhorn

Joined: Jan 16, 2010
Posts: 13
hi
i'd like to save a column named package so use a struts2 tag s:select
when i submit
the column package will save the value 01,02,03,04 or 05 into it
how can i save the real value 25kg into the column package

a.jsp


b.jsp
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Use a list of the string values instead of a map?
garrick chen
Greenhorn

Joined: Jan 16, 2010
Posts: 13
i use map because my system was unstable and the list didn't work well
now it's ok
thanks a lot
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: (finished)Question related to s:select
 
Similar Threads
Stripes: how to map a select option from a form to an object from an Action?
Question related to s:select and s:action
struts2 action display nothing with no error msg
editing cells in table - not working
Struts 2: %{} or #