Struts2 <s:bean/> tag, used to instanciate a Parametric Bean
Posted
by Rasatavohary
on Stack Overflow
See other posts from Stack Overflow
or by Rasatavohary
Published on 2010-03-16T10:55:33Z
Indexed on
2010/03/16
10:56 UTC
Read the original article
Hit count: 470
struts2
|java-generics
Hi,
After looking a while other google, and the web, I decided to post my question here.
The question is quite really basic, and simple :
How do I use the struts2 tag <s:bean ... />
to instanciate a Parametric Bean ?
For example imagine I have :
public class GenericBean<T> {
...
How will I instanciate this bean with a BeanType
for instance, inside a jsp using struts 2 ?
<s:bean name="GenericBean" var="myBean"/>
Thanks you.
© Stack Overflow or respective owner