What happens if it's called something other than "action"? --- Manudath Gurudatha <[EMAIL PROTECTED]> wrote:
> 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/3/07, Tapio Holopainen > <[EMAIL PROTECTED]> wrote: > > > > Have you tried with different property name than > 'action'? > > > > I had problems with IE's Javascript when one of my > form's hidden field > > name was 'action' (and it worked with Firefox and > Opera) > > > > Regards, > > > > - Tapio > > > > > > On Thu, 03 May 2007 20:53:49 +0300, Musachy > Barroso <[EMAIL PROTECTED]> > > wrote: > > > > > What version of struts are you using? Can you > post your jsp page? Are > > you > > > using the ajax theme (is S2)? Based only on what > you have said is quite > > > difficult to guess what the problem is. > > > > > > regards > > > musachy > > > > > > On 5/3/07, Manudath Gurudatha > <[EMAIL PROTECTED]> wrote: > > >> > === message truncated === ____________________________________________________________________________________ The fish are biting. Get more visitors on your site using Yahoo! Search Marketing. http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]