Hi,

I am using jsp templates and dynamically including the pages using
PageContext.include fn. using Custom tags ||ar to tiles in struts

 when any error occurs in this included page I do not get the actual error.


For example  in my included jsp I am doing the following

String str=null;
str.equals("something")
if str is null then I do not get the actuall null pointer exception .

I Get Exception like one giving below. I am printing the stack Trace.

javax.servlet.ServletException
     at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:585)
     at content.ViewPrivilegesContent_jsp_82.
_jspService(ViewPrivilegesContent_jsp_82.java:403)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:286)
     at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
     at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
     at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.
_service(StrictLifecycleServlet.java:159)
     at
com.ibm.servlet.engine.webapp.ServicingServletState.service(StrictLifecycleServlet.java:306)
     at
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:106)
     at
com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
     at
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
     at
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
     at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:499)
     at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:278)
     at
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:111)
     at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:473)
     at tags.templates.GetTag.doStartTag(GetTag.java:56)

Note that in the last line in doStartTag fn I am including my jsp file like
this

pageContext.getOut().flush();
pageContext.include(content);


This is giving problem in debuging the page.

Any Idea on how to get the original exception


TIA
Ashwani





This e-Mail may contain proprietary and confidential information and is sent for the 
intended recipient(s) only.
If by an addressing or transmission error this mail has been misdirected to you, you 
are requested to delete this mail immediately.
You are also hereby notified that any use, any form of reproduction, dissemination, 
copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its attachment 
other than by its intended recipient/s is strictly prohibited.

Visit Us at http://www.polaris.co.in

Reply via email to