• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

can I do loop inside jsp:include

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello.
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.
--file1.jsp
<jsp:include page = "./file2.jsp" flush="true" >
<jsp:param name = "param1" value="value1" />,
<jsp:param name = "param2" value="value2" />,
<%
inside loop??
>%
</jsp:include>
//file2.jsp; s[] get all the parameters from file1's post
String[] s =
{
"param1", request.getParameter("param1"),
"param2", request.getParameter("param2"),
};
 
No. No. No. No. Changed my mind. Wanna come down. To see this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic