jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes can I do loop inside jsp:include Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "can I do loop inside jsp:include" Watch "can I do loop inside jsp:include" New topic

can I do loop inside jsp:include

Zoe Peng
Ranch Hand

Joined: Nov 27, 2000
Posts: 112
I have file2.jsp can accepts parameters from file1.jsp
But, the problem is param2's values have more than 1 values.
The first idea I can think it to make the loop. But, can I do the loop inside the <jsp:forward>? How can I approach this?
Thanks in advance.
<jsp:include page = "./file2.jsp" flush="true" >
<jsp:param name = "param1" value="value1" />,
<jsp:param name = "param2" value="value2" />,
inside loop??
//file2.jsp; s[] get all the parameters from file1's post
String[] s =
"param1", request.getParameter("param1"),
"param2", request.getParameter("param2"),
I agree. Here's the link: http://aspose.com/file-tools
subject: can I do loop inside jsp:include
It's not a secret anymore!