File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes javascript code in a jsp for loop Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "javascript code in a jsp for loop" Watch "javascript code in a jsp for loop" New topic

javascript code in a jsp for loop


Joined: Jan 20, 2002
Posts: 10
hi guys,
i have a JSP for loop and inside it is a javascript code which justs execute an alert method. the alert method displays only for 2 times but its supposed to disply for five times. after the second alert a compile error displays:

C:\Blazix\jspdir\providend\ cannot resolve symbol
symbol : variable out
location: class desisoft_jsp_reportexplorer_jsp1011698723344
1 error

how is that possible. when it already executed to alert methods.
thanks guys
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

I'm very confused. Maybe I'm completely misunderstanding what you are saying (not too unlikely, I'm pretty tired), but this doesn't seem possible.
Can you post the relevant piece of code for us to have a look? (ie just the loop part, not the whole thing)
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at .
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please re-register and select a new name which meets the requirements.
Don't get me started about those stupid light bulbs.
subject: javascript code in a jsp for loop