I'm using Struts2 and in the JSP page I have a list of records. The user can select a few records and can click on a hyperlink to get the records in an Excel file. The checkbox fieldvalue (contains the id of records) does not populate the action property when clicked on the hyperlink. This happens on IE6, IE8 and Safari 4.02. It works perfectly fine on IE7 and Firefox. It looks like the form is not getting submitted and don't know where is the problem. This only happens on our production site which uses https. Any help is appreciated. The JSP in question is below
Below is the code where the checkbox is fieldvalue is used to set the action property.
After clicking the link, the correct method of the action is executed but the selectList from the checkbox does not set the action property. I believe the form is not submitted and don't understand why?
Am I doing this correctly?
When I select a few records and then click on the linl "Selected in Excel", I get a error message from the action "Select atleast one record" which comes from the method from that action because selectList is null from the form and the page is refreshed with no records selected. So it looks like form was never submitted in this entire process.
Let me know if you want the entire JSP file and config files
Joined: Feb 19, 2009
Found the solution:
Looks like the <s:submit type=button ......> is broken in IE6. I took off type=button from the tag and it all works fine now. So my submit tag no looks like this.