• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to pass dynamic values from one page to other  RSS feed

 
Rajesh Veluchamy
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have declared an array like this
String[] area = new String[1000];

then given some values in a for loop to area[i]

now i want to pass them to some other page
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JstlTable article in the JSP FAQ shows how to iterate over a list (or nested set of lists) using JSTL and how to print values to the printWriter using EL.

There should be enough there to get you going.

Notice:


Even if there was a variable named warename, this would not print it to the page. To do so using legacy JSP techiques, you would need to change your sriptlet tag to make it a JSP expression like this:
<%=warename%>
Notice the '=' symbol?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!