Why not use a JSP-based custom tag?
Dave On Jun 27, 2011 7:03 AM, "k3v1n" <mitn...@email.it> wrote: > Hi all, > > I need help, please. > > I have collection of User object... In my jsp page, I have foreach block for > print all user contains in my collection. I want use other jsp for print it! > > For example: > > <% > Collection<User> users = (Collection<User>)request.getAttribute("users"); > Iterator<User> it = users.iterator(); > > while (it.hasNext()) > { > User user = it.next(); > %> > > <s:include value="user.jsp"> > <s:param name="user" value="user"></s:param> ????? > </s:include> > > <% > } > %> > > I want use include page for print single user. Is it possible? > > How pass I my user object to user.jsp? And then, how I can get user param in > user.jsp? > > Thanks in advance > > -- > View this message in context: http://struts.1045723.n5.nabble.com/include-tag-problem-tp4527676p4527676.html > Sent from the Struts - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org >