File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

calling functions in jsp

 
rasika gamage
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic