Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Mayur Joshi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked the actual HTTP conversation?
 
Mayur Joshi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic