Well, I dont think we have used struts action chaining (Although I dont know what it means since I am pretty new to Struts) in our application...
With Dave's idea about specifying something other than "action", the result is the same.... Instead of <td><html:image property="action" value="preview" src="/images/continue_to_step_2_preview.gif" onclick="javascript:setAction( this.form)"/></td> I put the property as some other form element. Firefox reads the new value for that property, whereas IE just prints it out as "" For guys who missed my original post, here it is: *********************************************************************************************************** Thanks guys... I have put the relevant parts of the struts-xml and the actual jsp with relevant parts highlighted in blue... Please see if you can figure out why does IE send the action value as "" when I submit the JSP... Thanks again for your help... *struts-config.xml* <action path="/actions/businessportal/segmentcustomcampaign" scope="request" type="com.xx.xx.CustomCampaignRequest" name="CustomCampaignForm"> <forward name="backToSelection" path="/actions/businessportal/selectcustomcampaign.df" redirect="true"/> <forward name="cancel" path="/businessportal/campaigns.jsp" redirect="false"/> <forward name="preview" path="/actions/businessportal/customcampaignpreview.df" redirect="true"/> </action> CustomCampaignRequest.java is where I am printing the action value... and I do different processing based on these action values. *JSP Page:* <%@ page import="java.util.Enumeration" %> <%@ page contentType="text/html;charset=iso-8859-1" language="java" %> <%@ taglib uri="/WEB-INF/struts- bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%> <%@ taglib uri="/WEB-INF/df.tld" prefix="df" %> <html:form action="/actions/businessportal/segmentcustomcampaign"> <table width="750" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td> <table border="0"> <tr> <td class="fieldLabel"><div align="right"> Introduction:<font class="mandatoryStar">*</font></div></td> <td><html:textarea name="CustomCampaignForm" property=" campaign.description" style="width:300px;height:60px;" styleClass="textFields" /></td> </tr> <tr> <td class="fieldLabel"><div align="right"> </div></td><td><span style="float:left;font-size:9px;color:#999999">(Promotion Title will be displayed in the Email subject field.)</span></td> </tr> <tr> <td class="fieldLabel"><div align="right"> Title:<font class="mandatoryStar">*</font></div></td> <td><html:textarea name="CustomCampaignForm" property=" campaign.title" style="width:300px;height:40px;text-align:center;" styleClass="textTitleField" /></td> </tr> <tr> <td class="fieldLabel" width="20%"><div align="right"> Description:<font class="mandatoryStar">*</font></div></td> <td><html:textarea name="CustomCampaignForm" property=" campaign.lineItems" style="width:300px;height:60px;text-align:center;padding-left:15px;padding-right:15px" styleClass="textFields" /></td> </tr> <tr> <td class="fieldLabel"><div align="right"> Promotion Duration:<font class="mandatoryStar">*</font> </div></td> <td class="r1" style="padding-top:5px" align="center"> <p align="center" class="r1"><font size="3"><strong> Offer Expires in <html:select name="CustomCampaignForm" property="campaign.duration"><html:option value="0">0</html:option><html:option value="30">30</html:option><html:option value="60">60</html:option><html:option value="90">90</html:option></html:select> Days </strong></font></p> </td> </tr> <tr> <td class="fieldLabel"><div align="right"> Conclusion:<font class="mandatoryStar">*</font></div></td> <td><html:textarea name="CustomCampaignForm" property=" campaign.footer" style="width:300px;height:60px;" styleClass="textFields" /></td> </tr> </table> </td> </tr> </table> <table width="30%" align="center" border="0" > <tr> </tr> <tr> <td><html:image property="action" value="backToSelection" src="/images/back.gif" /></td> <td><html:image property="action" value="cancel" src="/images/cancel.gif" /></td> <td><html:image property="action" value="preview" src="/images/continue_to_step_2_preview.gif" onclick="javascript:setAction( this.form)"/></td> </tr> </table> </html:form> <script language="JavaScript"> function setAction() { // Do some validation and then submit... // Firefox submits with a proper value of "preview" for the action, however IE submits as "" document.forms[1].submit(); return true; } </script> On 5/6/07, Martin Gainty <[EMAIL PROTECTED]> wrote:
Where is the original post? M-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. ----- Original Message ----- From: "Dave Newton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <user@struts.apache.org>; "Martin Gainty" <[EMAIL PROTECTED]> Sent: Sunday, May 06, 2007 12:06 PM Subject: Re: Struts Action value empty in IE, but works fine in Firefox > --- Martin Gainty <[EMAIL PROTECTED]> wrote: >> Good Morning Dave.. > > Good morning. > >> Assuming you have included struts-actionchaining.xml >> in your struts.xml >> <struts> >> <include file="struts-actionchaining.xml" /> >> Can you display contents of > struts-actionchaining.xml? > > I am not always convinced you read the messages before > you reply to them ;) You'd probably need to ask that > question of the original poster, although I'm not > convinced it's relevant in this case. > > d. > > > > > > ____________________________________________________________________________________ > Need Mail bonding? > Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users. > http://answers.yahoo.com/dir/?link=list&sid=396546091 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]