aspose file tools*
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "calling functions in jsp" Watch "calling functions in jsp" New topic
Author

calling functions in jsp

rasika gamage
Greenhorn

Joined: May 08, 2001
Posts: 7
out.println(myCafeContent(response,b));
above statement is in a separate jsp file in another file i have function description
public void myCafeContent(HttpServletResponse res,String code)
{
out=res.getWriter()
}
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.

gsaha
Greenhorn

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: http://aspose.com/file-tools
 
subject: calling functions in jsp