This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Frameworks » Struts
Bookmark "(finished)Question related to s:select" Watch "(finished)Question related to s:select" New topic

(finished)Question related to s:select

garrick chen

Joined: Jan 16, 2010
Posts: 13
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


David Newton

Joined: Sep 29, 2008
Posts: 12617

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

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
It is sorta covered in the JavaRanch Style Guide.
subject: (finished)Question related to s:select