Re: Map backed form

2019-02-17 Thread Lukasz Lenart
sob., 16 lut 2019 o 10:28 Yasser Zamani  napisał(a):
>
> I think a file named yourActionClass-conversion.properties beside your action 
> with following contents should help [1]:
>
> Key_xxx=java.lang.Long
> Element_xxx=java.lang.Double
>
> (where xxx is the field name of the collection property in your action or 
> object)

Ahh right, totally forgot about that :)


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: How to use s:iterator s:include s:param

2019-02-17 Thread Yasser Zamani
Hi Albert,

I found following at [1].

"Note: Any additional params supplied to the included page are not
accessible within the rendered page through the  tag since
no valuestack will be created. You can, however, access them in a
servlet via the HttpServletRequest object or from a JSP page via a
scriptlet.

How To access parameters

Parameters are passed as request parameters, so use the
${param.ParamName} notation to access them. Do not use the property tag
to access parameters in included files."

So it seems you can use ${param.itemList}.

Thanks for using Struts!

Regards.

[1] https://struts.apache.org/tag-developers/include-tag.html

On 2/16/2019 4:33 PM, albert kao wrote:
> This display properly:
> 
>   
> 
>   
> 
> 
> I refactor to the following two files, which display nothing.
> I have other codes in items.jsp which confirms that items.jsp is being used
> in showitems.jsp.
> Please help.
> Thanks.
> 
> items.jsp:
> 
> 
> 
>   
> 
>   
> 
> 
> 
> 
> showitems.jsp:
> 
>   
> 
>