0

Does JSP support for each statement ??

Actually i need to cycle through each post variable like this in ASP

for each tempvarname in request.querystring
value1 = request.form(tempvarname)
pass=pass&value1
next

I am unable to do this JSP...


Can somebody help ?

2
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by d.shankar
0

Either you will filter your request.querystring to get what you looking for and then process them or you with simple for or do-while loop, or you can make a neat solution with JSTL like in this example

0

Yeah, the infamously fame roseindia...
JSTL and direct use of for loop inside the JSP documents provide same solution they are just different in programming approach. Where placing for loop is considered as hacking/dirty and quick solution because of direct use of Java language inside html formatted document, JSTL is clean and neat solution with need of some additional libraries.

0

So is it possible to rewrite the above ASP code to JSP Standards without using any external libraries or so..

Its really hard to convert it you know. :sad:

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.