You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2005/11/08 19:21:37 UTC
DO NOT REPLY [Bug 37410] New: -
jsp: implicit object pageContext not AVAILABLE in scriptlet
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37410>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37410
Summary: jsp: implicit object pageContext not AVAILABLE in
scriptlet
Product: Tomcat 5
Version: Unknown
Platform: Other
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: desideri@eng.it
I'm working with tomcat version 5.0 and I've written a tag file using scriplet
inside.
But the implicit object pageContext can be used within the expression language
and NOT into the scriptlet.
It works if I use use the implicit object jspContext instead of pageContext.
Anyway if I substitute the jasper library with an older one I can use
pageContext everywhere and it works fine!
In the new version of tomcat the method doTag() of the tag java class produced
by jasper library is the following:
public void doTag() throws JspException, java.io.IOException {
PageContext _jspx_page_context = (PageContext)jspContext;
HttpServletRequest request = (HttpServletRequest)
_jspx_page_context.getRequest();
HttpServletResponse response = (HttpServletResponse)
_jspx_page_context.getResponse();
HttpSession session = _jspx_page_context.getSession();
ServletContext application = _jspx_page_context.getServletContext();
ServletConfig config = _jspx_page_context.getServletConfig();
.....
}
You can noticed that the _jspx_page_context variable should be called
pageContext as in the old version.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org