You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Pingili, Madhupal" <MP...@BBandT.com> on 2003/04/02 22:09:16 UTC
can't use attribute set in request????
I am trying to display values in a map set as request.setAttribute("map",
mapObject) in an Action.
JSP looks like:
<html:select property="selValue">
<html:option value="Select One"></html:option>
<bean:parameter id="aMap" name="map"></bean:parameter>
<logic:iterate id="element" name="aMap">
<html:option value="value"></html:option>
</logic:iterate>
</html:select>
Problem is, <bean:parameter> expects a request parameter with name "map".
I get the following error:
javax.servlet.jsp.JspException: No parameter map was included in this
request
Which Tags can get the attributes set in a request?
Thanks for any help.
Reddy
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: can't use attribute set in request????
Posted by James Mitchell <jm...@apache.org>.
On Wed, 2003-04-02 at 15:09, Pingili, Madhupal wrote:
> I am trying to display values in a map set as request.setAttribute("map",
> mapObject) in an Action.
> JSP looks like:
> <html:select property="selValue">
> <html:option value="Select One"></html:option>
> <bean:parameter id="aMap" name="map"></bean:parameter>
> <logic:iterate id="element" name="aMap">
> <html:option value="value"></html:option>
> </logic:iterate>
> </html:select>
>
> Problem is, <bean:parameter> expects a request parameter with name "map".
> I get the following error:
> javax.servlet.jsp.JspException: No parameter map was included in this
> request
>
> Which Tags can get the attributes set in a request?
You are probably looking for <bean:define id="aMap" name="map"/>
>
> Thanks for any help.
>
> Reddy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
--
James Mitchell
Software Developer/Struts Evangelist
http://www.open-tools.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org