A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Web Component Certification (SCWCD/OCPJWCD)
out.println("") is not working in between declaration tags?
Joined: Apr 13, 2004
May 25, 2004 16:06:00
Hello 1 <B>
public void a()
i = i+10;
out.print("first line "+i+6);
above script is giving HTTP status 500 error at first out.println, why?
is it means in between <%! and %> can't we use implicit objects?.
In between declaration tags it is allowing to declare methods and call them self. But why it is not allowing to print.
Joined: Dec 13, 2003
May 25, 2004 16:35:00
You are right.
The implicit objects are declared inside the generated _jspService method.
You cannot use the implicit objects outside of the _jspservice scope (scriptlets.)
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: out.println("") is not working in between declaration tags?
Need to split up servlet
question about session?
difference between out.println() and System.out.println() in JSP?
declaration section variable is not getting reset for each refresh operation?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015