OK, my turn =:)

Given an Action that just does this:

 DynaActionForm input = (DynaActionForm) form;
 Map map = input.getMap();
 request.setAttribute(Tokens.LIST,map);
 return mapping.findForward(Tokens.SUCCESS);

How come this works:

<html:link action="/MultipleParametersForm" name="<%=Tokens.LIST%>" >

and this works:

<bean:write name="<%=Tokens.MULTIPLE_PARAMETERS_FORM%>" property="latDeg" />

(I can create a list of parameters from the map, and access the DynaProperties.)

But this doesn't?

<html:link action="/MultipleParametersForm" name="<%=Tokens.MULTIPLE_PARAMETERS_FORM%>" property="map" >

(I can't pass the same map stored in the request (by the Action) to html:link directly.)

Under RC1 and this morning's build, Tomcat 4.06 reports:

"No getter method for property map of bean MultipleParametersForm"

Same thing with bean:write. The html/bean tags see the object, but not getMap().


-Ted.



-- Ted Husted, Struts in Action <http://husted.com/struts/book.html>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to