struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k3v1n <mitn...@email.it>
Subject include tag problem
Date Mon, 27 Jun 2011 09:52:51 GMT
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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message