struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Tavares <>
Subject ActionForm does not work in InternetExplorer...
Date Wed, 19 May 2004 23:24:53 GMT
... but works in mozilla.

Hi all,

I'm trying to implement the 'Value List Handler or Page by Page 
Iterator' design pattern in Struts.
I'm hoping to use one Action to do scrollFirst, scrollLast, scrollNext, 
and scrollBack by sending
which direction to 'scroll' in by passing a value into a FormBean based 
on which form image inputtype
was clicked by the user.

here is the source of the form:

<form:form action="/" scope='request'>

    <form:hidden name="security" property="securityId"/>
    <form:hidden name="securityStatus" property="statusCode"/>

    <table align='middle' cellpadding='0' cellspacing='0' width='100%'>
            <td abbr='middle' width='100%'>
                <table align='middle' cellpadding='0' cellspacing='2' 

                        <td width='20px' height='20px'>
property='securityStatusFormBean.direction' value='first' 
onclick='submit' src="../../../images/VCRBegin.png"/>
                        <td width='20px' height='20px'>
property='securityStatusFormBean.direction' value='back' 
onclick='submit' src="../../../images/VCRBack.png"/>
                        <td width='20px' height='20px'>
property='securityStatusFormBean.direction' value='forward' 
onclick='submit' src="../../../images/VCRForward.png"/>
                        <td width='20px' height='20px'>
property='securityStatusFormBean.direction' value='last' 
onclick='submit' src="../../../images/VCREnd.png"/>



in struts-config i have this

     <form-bean      name="securityStatusFormBean"

<action path="/scrollInmateList"
        name="securityStatusFormBean" scope="request" 
        <forward name="Success"  path="/ui/tiles/pages/securityDetail.jsp"/>

and the bean has 
three properities: securityId, statusCode and direction

So in the action execute method of the action object I can do this:

String direction = request.getParameter("securityStatusFormBean.direction");

and get the value I'm looking for.

This _does_ work in Mozilla but _NOT_
in IE. In IE the 
request.getParameter("securityStatusFormBean.direction"); just returns null.

Anyone know why? Have suggestion for a better way of doing this?



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message