Not to beat the proverbial dead horse, but the "name" attribute is always a
String and it's used as a key to do a lookup of a scoped attribute. If you only
specify "name", then the bean stored under that key is used directly as the Map.
If you also specify "property", then the bean stored under that key is assumed
to expose a property of type Map. So, if you do something like:
<html:link action="/search" name="<%= request.getParamerMap() %>">
It'll blow up during page compilation.
Quoting Eric Jain <[EMAIL PROTECTED]>:
> > The <html:link> "name" attribute is a key, not a Map instance.
>
> If you specify a 'name' but no 'property', it is in fact considered to
> be the map instance itself. Confusing indeed.
>
>
> > What is it you want done in JSP/XML?
>
> >>> <%@ 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>
>
>
> But never mind, the original problem is solved, so let's leave this one
> as an exercise for the students :-)
>
>
> --
> 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]