Select and trigger an action through a link, doesn't populate the value
Joined: May 23, 2006
In my jsp page there is a <s:select tag and there links that triggers three different actions. I want the selected option in one of the actions.
For example: there are accept, reject and review links to respective actions. And a select tag for comments to be sent to accept action.
I don't see the selected value being populated in the Accept action.
There is a getter and setter for commentId in the accept action which is not being populated when I select and then click the Accept link
I even tried
Please let me know where I'm going wrong. Thanks, Nithya.
Joined: Aug 29, 2008
I believe the problem with your first method is that when you click on the links you created, the form does not get submitted, so the value of the select tag isn't part of the request.
The problem with your second method is that your parameter is being set before the page is displayed to the user (when the jsp is run), so the parameter won't change when a user selects a different value in the check box.