on-internet
← Community

Set default value to tag in Struts 2

Stack Overflow ·

I am using <s:checkbox> of Struts 2.3 the following is the line of code: <s:checkbox theme="simple" name ="Mychkbox" value="R" onclick="Auto_Au('rej');" /> Now in this I need this value in action , but I am not finding any way to set this value "R" because the fieldValue Parameter of <s:checkbox> will give true or false. I need to set the value as 'R' that can be accessed in the action class.

Comments

Sign in or sign up to comment and upvote.

No comments yet.