kiuma wrote: > Maris Orbidans wrote: > >> Try to comment this line. >> >> <html:text property="userToFind" size="35"/> >> 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" %> > > > > <html:html> > <head> > <html:base/> > <title><bean:message key="title.userfinder"/></title></head> > </head> > > <BODY> > <html:form action="/userlist"> > <table cellpadding="0" cellspacing="0" border="0"> > <tbody> > <tr> > <td> > <b><bean:message key="label.find.surname"/>:</b> > <html:submit property="submit"> > <bean:message key="button.find"/> > </html:submit> > <%-- <html:text property="userToFind" size="35"/> --%> > </td> > </tr> </tbody> > </TABLE> > <html:submit property="submit"> > <bean:message key="button.delete.selected"/> > </html:submit> > <html:submit property="submit"> > <bean:message key="button.append"/> > </html:submit> > </html:form> > > </body> > </html:html> > > > *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. >> >> <html:text property="userToFind" size="35"/> >> 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" %> > > > > <html:html> > <head> > <html:base/> > <title><bean:message key="title.userfinder"/></title></head> > </head> > > <BODY> > <html:form action="/userlist"> > <table cellpadding="0" cellspacing="0" border="0"> > <tbody> > <tr> > <td> > <b><bean:message key="label.find.surname"/>:</b> > <html:submit property="submit"> > <bean:message key="button.find"/> > </html:submit> > <%-- <html:text property="userToFind" size="35"/> --%> > </td> > </tr> </tbody> > </TABLE> > <html:submit property="submit"> > <bean:message key="button.delete.selected"/> > </html:submit> > <html:submit property="submit"> > <bean:message key="button.append"/> > </html:submit> > </html:form> > > </body> > </html:html> > > > *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); }