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 ?

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

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.

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:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.