This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "javascript code in a jsp for loop" Watch "javascript code in a jsp for loop" New topic
Author

javascript code in a jsp for loop

saintmacai
Greenhorn

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\reportexplorer_jsp.java:29: cannot resolve symbol
symbol : variable out
location: class desisoft_jsp_reportexplorer_jsp1011698723344
out.println("");
^
1 error

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

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)
ta,
Dave.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

"saintmacai",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp .
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.
Thanks.
Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javascript code in a jsp for loop
 
Similar Threads
Javascript: Alert Box with Yes/No Button
Passing Objects into Methods
display spanish accents in javascript alert
custom validation w/ Struts Validator
javascript and java