The <html:link> "name" attribute is a key, not a Map instance. If you want to
try to use the request's parameter map directly, I think you'd need something like:
<bean:page id="requestBean" property="request"/>
<html:link action="/search" name="requestBean" property="parameterMap">
...
</html:link>
Or:
<c:set var="paramMap" value="${paramValues}"/>
<html:link action="/search" name="paramMap">
...
</html:link>
What is it you want done in JSP/XML?
Quoting Eric Jain <[EMAIL PROTECTED]>:
> > request.setAttribute("paramMap", PropertyUtils.describe(form));
>
> One issue with PropertyUtils.describe is that it also adds a property
> 'class' to the map; this would probably have to be removed explicitely.
>
>
> > For an all-JSP solution, I guess you could do:
> >
> > <%@ page import="org.apache.commons.beanutils.PropertyUtils" %>
> > <jsp:useBean id="paramMap" class="java.util.HashMap"/>
> > <c_rt:forEach var="entry" items="<%= PropertyUtils.describe(form) %>">
> > <c:set target="paramMap" property="${entry.key}"
> > value="${entry.value}"/> </c_rt:forEach>
> > <html:link action="/search" name="paramMap">
> > ...
> > </html:link>
>
> Now, next level: all-JSP/XML :-)
>
> It just occured to me that if none of the request parameters needs to be
> modified then the parameter map could probably be used directly:
>
> <html:link action="/search" name="param">
>
> --
> Eric Jain
--
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech <http://www.dotech.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]