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 REST with Spring (video course) this week in the Spring 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...
I agree. Here's the link:
subject: calling functions in jsp
It's not a secret anymore!