velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shinobu Kawai <shinobu.ka...@gmail.com>
Subject Re: Map-backed ActionFrom with velocity
Date Sun, 26 Sep 2004 08:13:50 GMT
Hi Shankar,

> Here are the code and config snippets that I used. Also I am using a map-
> backed ActionForm and not a DynaActionForm. I think the name that I am using
> DynamicActionForm has confused you. But thats just a name this is an
> ActionForm that has a Map to contain all the field values in the html form.
Gotcha.

> The velocity fragment looks is asfollows:

> Search for: <input name="searchCriteria" size=20
> type="text" value="$!searchForm.value("searchCriteria")">
> <input name="searchType" size=20 type="text"
> value="$!searchForm.value("searchType")">
Try name="value(searchCriteria)" and name="value(searchType)".
  cf. http://struts.apache.org/userGuide/building_controller.html#map_action_form_classes

Best regards,
-- Shinobu Kawai

-- 
Shinobu Kawai(shinobu.kawai@gmail.com)

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message