File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to make a option selected in <s:select>

 
Pradeep Chaubey
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Experts,
I am facing a problem to make a option selected in <s:select> when page get render.
I am using following codes:
In Action Class

I have getter and setter of the all properties declared above.
ClientTypeModel is a bean, details as follows :


In Jsp I am using following code :


When page get rendered, every time first option get Selectd by default, Even if I assign the last option value of the list
to variable "selectedClient" in the action class.

Please help me to sort out this problem.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic