kiuma wrote: > Maris Orbidans wrote: > >> Try to comment this line. >> >> >> I think it's only plase which can cause NPE. >> >> Pls let us know if it works. >> >> Maris >> > *Now my jsp page is:* > > <%@page language="java" contentType="text/html;charset=UTF-8" > import="javax.naming.*, > com.wingstech.webappointments.interfaces.*, > java.util.*" > %> <%@ taglib uri="/WEB-INF/struts-html.tld" > prefix="html" %> > <%@ taglib uri="/WEB-INF/struts-bean.tld" > prefix="bean" %> > > > > > > > <bean:message key="title.userfinder"/> > > > > > > > > > >
> :  > > > > <%-- --%> >
> > > > > > >
> > >
> > > *and error log is :* > > javax.servlet.ServletException: Cannot retrieve definition for form > bean null > at > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471) > > at org.apache.jsp.userlist$jsp._jspService(userlist$jsp.java:406) > at > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201) > > at > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) > > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) > > > > I thik it does something with context but I don't know what. > kiuma wrote: > Maris Orbidans wrote: > >> Try to comment this line. >> >> >> I think it's only plase which can cause NPE. >> >> Pls let us know if it works. >> >> Maris >> > *Now my jsp page is:* > > <%@page language="java" contentType="text/html;charset=UTF-8" > import="javax.naming.*, > com.wingstech.webappointments.interfaces.*, > java.util.*" > %> <%@ taglib uri="/WEB-INF/struts-html.tld" > prefix="html" %> > <%@ taglib uri="/WEB-INF/struts-bean.tld" > prefix="bean" %> > > > > > > > <bean:message key="title.userfinder"/> > > > > > > > > > >
> :  > > > > <%-- --%> >
> > > > > > >
> > >
> > > *and error log is :* > > javax.servlet.ServletException: Cannot retrieve definition for form > bean null > at > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471) > > at org.apache.jsp.userlist$jsp._jspService(userlist$jsp.java:406) > at > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201) > > at > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) > > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) > > > > I thik it does something with context but I don't know what. > *Here is line 406 of the generated java file:* } catch (Throwable t) { if (out != null && out.getBufferSize() != 0) out.clearBuffer(); _*if (pageContext != null) pageContext.handlePageException(t);*_ } finally { if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext); }