struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kiuma <>
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.
*Now my jsp page is:*

<%@page language="java" contentType="text/html;charset=UTF-8"   
<%@ taglib uri="/WEB-INF/struts-html.tld"
        prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld"
        prefix="bean" %>

    <title><bean:message key="title.userfinder"/></title></head>

<html:form action="/userlist">
<table cellpadding="0" cellspacing="0" border="0">
            <b><bean:message key="label.find.surname"/>:</b>&nbsp;
            <html:submit property="submit">
                <bean:message key="button.find"/>
            <%-- <html:text property="userToFind" size="35"/> --%>
<html:submit property="submit">
    <bean:message key="button.delete.selected"/>
<html:submit property="submit">
    <bean:message key="button.append"/>


*and error log is :*

javax.servlet.ServletException: Cannot retrieve definition for form bean null
	at org.apache.jasper.runtime.PageContextImpl.handlePageException(
	at org.apache.jsp.userlist$jsp._jspService(userlist$
	at org.apache.jasper.runtime.HttpJspBase.service(
	at javax.servlet.http.HttpServlet.service(
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(
	at org.apache.jasper.servlet.JspServlet.service(
	at javax.servlet.http.HttpServlet.service(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(

I thik it does something with context but I don't know what.

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