wood burning stoves 2.0*
The moose likes Struts and the fly likes Pass select box value from jsp to action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Pass select box value from jsp to action class" Watch "Pass select box value from jsp to action class" New topic
Author

Pass select box value from jsp to action class

kashwini Kulkarni
Ranch Hand

Joined: Aug 07, 2009
Posts: 63
Hello,

I have a select box in my jsp.

<html:select name="editProductForm" property="mktStrategy.marketStrategyId">
<htmlptions collection="mktList" property="marketStrategy" />
</html:select>


I want the value of the selected Item in my action class.
Can anyone please tell me the correct way to do this?




Thanks in Advance
Kashwini
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Pass select box value from jsp to action class