You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Manudath Gurudatha <ma...@gmail.com> on 2007/05/03 19:47:11 UTC

Struts Action value empty in IE, but works fine in Firefox

Hi,
I have a JSP which has a corresponding action class in my application based
on Struts (actually I am Struts newbie... so dont know much about it) The
"Controller" class which handles all the requests can see the action value
as "setdefault" when I click on next.gif in Mozilla. However, it comes "" in
IE. I see several similar incidents on the Web forums, but none have given a
proper solution (Someone said that IE prints some "Loading..." message which
clears the submit criteria and so on...)

<html:image property="action" value="setdefault" src="next.gif" />

Can anyone please tell me what the problem is, and how do I get around it to
make it work on IE?

Thanks,
Manu

Re: [s2] Tabindex not working on

Posted by Musachy Barroso <mu...@gmail.com>.
I logged a jira ticket for it:

https://issues.apache.org/struts/browse/WW-1914

musachy

On 5/6/07, Jason Wyatt <jw...@itree.com.au> wrote:
>
> Hi Struts 2 developers,
>
> It seems the tabindex isn't working on the <s:submit> tag for Struts2
> v2.0.6.
>
>
> The jsp tag I am using:
>
> <s:submit tabindex="7" name="submit" value="Search" cssClass="buttonClass"
> />
>
>
> The resulting HTML:
>
> <input type="submit" id="NcrSearchAction_submit" name="submit"
> value="Search" class="buttonClass"/>
>
>
> The tabindex seems to not make it through to the HTML... it'd be great if
> this can be fixed.
>
> Thanks in advance, kind regards
>
> Jason
>
>
> -----
> Falun Dafa  Truth - Compassion - Forbearance
>
> A mind & body practice under persecution in China
>
> http://www.faluninfo.net
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

Re: Struts Action value empty in IE, but works fine in Firefox

Posted by Manudath Gurudatha <ma...@gmail.com>.
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">&nbsp;</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> &nbsp;</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 <mg...@hotmail.com> 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" <ne...@yahoo.com>
> To: "Struts Users Mailing List" <us...@struts.apache.org>; "Martin Gainty"
> <mg...@hotmail.com>
> Sent: Sunday, May 06, 2007 12:06 PM
> Subject: Re: Struts Action value empty in IE, but works fine in Firefox
>
>
> > --- Martin Gainty <mg...@hotmail.com> 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: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: Struts Action value empty in IE, but works fine in Firefox

Posted by Martin Gainty <mg...@hotmail.com>.
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" <ne...@yahoo.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>; "Martin Gainty" 
<mg...@hotmail.com>
Sent: Sunday, May 06, 2007 12:06 PM
Subject: Re: Struts Action value empty in IE, but works fine in Firefox


> --- Martin Gainty <mg...@hotmail.com> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts Action value empty in IE, but works fine in Firefox

Posted by Dave Newton <ne...@yahoo.com>.
--- Martin Gainty <mg...@hotmail.com> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts Action value empty in IE, but works fine in Firefox

Posted by Martin Gainty <mg...@hotmail.com>.
Good Morning Dave..

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?

Thanks
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" <ne...@yahoo.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Sunday, May 06, 2007 11:12 AM
Subject: Re: Struts Action value empty in IE, but works fine in Firefox


> What happens if it's called something other than
> "action"?
>
> --- Manudath Gurudatha <ma...@gmail.com> 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">&nbsp;</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> &nbsp;</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
>> <ta...@gmail.com> 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 <mu...@gmail.com>
>> > 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
>> <ma...@gmail.com> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts Action value empty in IE, but works fine in Firefox

Posted by Dave Newton <ne...@yahoo.com>.
What happens if it's called something other than
"action"?

--- Manudath Gurudatha <ma...@gmail.com> 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">&nbsp;</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> &nbsp;</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
> <ta...@gmail.com> 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 <mu...@gmail.com>
> > 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
> <ma...@gmail.com> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


[s2] Tabindex not working on

Posted by Jason Wyatt <jw...@itree.com.au>.
Hi Struts 2 developers, 

It seems the tabindex isn't working on the <s:submit> tag for Struts2
v2.0.6. 


The jsp tag I am using:

<s:submit tabindex="7" name="submit" value="Search" cssClass="buttonClass"
/>


The resulting HTML:

<input type="submit" id="NcrSearchAction_submit" name="submit"
value="Search" class="buttonClass"/>


The tabindex seems to not make it through to the HTML... it'd be great if
this can be fixed.

Thanks in advance, kind regards

Jason


-----
Falun Dafa  Truth - Compassion - Forbearance

A mind & body practice under persecution in China

http://www.faluninfo.net




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts Action value empty in IE, but works fine in Firefox

Posted by Manudath Gurudatha <ma...@gmail.com>.
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">&nbsp;</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> &nbsp;</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 <ta...@gmail.com> 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 <mu...@gmail.com>
> 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 <ma...@gmail.com> wrote:
> >>
> >> Hi,
> >> I have a JSP which has a corresponding action class in my application
> >> based
> >> on Struts (actually I am Struts newbie... so dont know much about it)
> >> The
> >> "Controller" class which handles all the requests can see the action
> >> value
> >> as "setdefault" when I click on next.gif in Mozilla. However, it comes
> >> ""
> >> in
> >> IE. I see several similar incidents on the Web forums, but none have
> >> given
> >> a
> >> proper solution (Someone said that IE prints some "Loading..." message
> >> which
> >> clears the submit criteria and so on...)
> >>
> >> <html:image property="action" value="setdefault" src="next.gif" />
> >>
> >> Can anyone please tell me what the problem is, and how do I get around
> >> it
> >> to
> >> make it work on IE?
> >>
> >> Thanks,
> >> Manu
> >>
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: Struts Action value empty in IE, but works fine in Firefox

Posted by Tapio Holopainen <ta...@gmail.com>.
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 <mu...@gmail.com>  
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 <ma...@gmail.com> wrote:
>>
>> Hi,
>> I have a JSP which has a corresponding action class in my application
>> based
>> on Struts (actually I am Struts newbie... so dont know much about it)  
>> The
>> "Controller" class which handles all the requests can see the action  
>> value
>> as "setdefault" when I click on next.gif in Mozilla. However, it comes  
>> ""
>> in
>> IE. I see several similar incidents on the Web forums, but none have  
>> given
>> a
>> proper solution (Someone said that IE prints some "Loading..." message
>> which
>> clears the submit criteria and so on...)
>>
>> <html:image property="action" value="setdefault" src="next.gif" />
>>
>> Can anyone please tell me what the problem is, and how do I get around  
>> it
>> to
>> make it work on IE?
>>
>> Thanks,
>> Manu
>>
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struts Action value empty in IE, but works fine in Firefox

Posted by Musachy Barroso <mu...@gmail.com>.
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 <ma...@gmail.com> wrote:
>
> Hi,
> I have a JSP which has a corresponding action class in my application
> based
> on Struts (actually I am Struts newbie... so dont know much about it) The
> "Controller" class which handles all the requests can see the action value
> as "setdefault" when I click on next.gif in Mozilla. However, it comes ""
> in
> IE. I see several similar incidents on the Web forums, but none have given
> a
> proper solution (Someone said that IE prints some "Loading..." message
> which
> clears the submit criteria and so on...)
>
> <html:image property="action" value="setdefault" src="next.gif" />
>
> Can anyone please tell me what the problem is, and how do I get around it
> to
> make it work on IE?
>
> Thanks,
> Manu
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd