Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jspContext.getOut()  RSS feed

 
Divij Mahajan
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JSP 2.0, how do you use jspContext.getOut(). I am coding it as follows

Code

------------------------------------------------------------------------

public void doTag() throws JspException,IOException{

JspWriter out = jspContext.getOut();
...........
...........
------------------------------------------------------------------------

When trying to compile this file I get an error "jspContext has private access in javax.servlet.jsp.tag ext.SimpleTagSupport".

Am I sleeping (??) or is this really an issue. Any help in getting around this would be highly apprecated.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The message says it all: jspContext is private and you cannot directly access it. Any reason that you are not using the supported method of getJspContext()?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!