• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you checked the actual HTTP conversation?
 
Mayur Joshi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!
 
So it takes a day for light to pass through this glass? So this was yesterday's tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic