aspose file tools*
The moose likes Struts and the fly likes Checkbox fieldvalue does not set action property in IE6 using https. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Checkbox fieldvalue does not set action property in IE6 using https." Watch "Checkbox fieldvalue does not set action property in IE6 using https." New topic
Author

Checkbox fieldvalue does not set action property in IE6 using https.

Mayur Joshi
Greenhorn

Joined: Feb 19, 2009
Posts: 6
Hi,

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.



Both the code snippets are inside the top level

Thanks!!
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Have you checked the actual HTTP conversation?
Mayur Joshi
Greenhorn

Joined: Feb 19, 2009
Posts: 6
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

Thanks!!

Mayur Joshi
Greenhorn

Joined: Feb 19, 2009
Posts: 6
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.



Hope this is helpful.

Thanks!!
 
wood burning stoves
 
subject: Checkbox fieldvalue does not set action property in IE6 using https.