File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes calling functions in jsp 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 » Servlets
Bookmark "calling functions in jsp" Watch "calling functions in jsp" New topic

calling functions in jsp

rasika gamage

Joined: May 08, 2001
Posts: 7
above statement is in a separate jsp file in another file i have function description
public void myCafeContent(HttpServletResponse res,String code)
here i got an error saying that "out" is unauthorized class or variable name even when i use "out.println("bbb");"inside the function description file i got the same error.
please help me.


Joined: Apr 23, 2001
Posts: 6
may be because out is the implicit object.
And in complied jsp its used like
JspWriter out = pageContext.getOut();
use some other var. name and check...
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: calling functions in jsp
Similar Threads
unable to run servlet in tomcat
Jsp class could not be compiled error
How to run a servlet in Websphere Test Environment?
connecting to mysql from jsp
HTTP Status 404 - /testJSP1/BasicCounter.jsp