struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kiuma <ki...@usa.net>
Subject Re: [STRUTS] Please !
Date Thu, 12 Sep 2002 17:56:08 GMT
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>&nbsp;
            <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.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message