Hello,
i'm new to Struts and started my first application. When displaying a form
which extends ValidatorForm , i'll get the following message:
javax.servlet.ServletException: Cannot find bean
org.apache.struts.taglib.html.BEAN in any scope
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
at org.apache.jsp.price_list_rep_jsp._jspService(price_list_rep_jsp.java:216)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
From my JSP page:
<%@ page contentType="text/html; charset=iso-8859-1" language="java"
session="true" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<html:html>
<head>
<title>xxx</title>
</head>
<body bgcolor="white">
<logic:messagesPresent>
<bean:message key="errors.header"/>
<ul>
<html:messages id="error">
<li><bean:write name="error"/></li>
</html:messages>
</ul><hr>
</logic:messagesPresent>
<html:form action="pricelistReport"/>
<html:hidden property="action"/>
<html:hidden property="page" value="1"/>
<table>
<tr>
<td>Year</td>
<td><html:text property="year" size="4" maxlength="4"/></td>
</tr>
<tr>
<td>Month</td>
<td><html:text property="month" size="2" maxlength="2"/></td>
</tr>
<tr colspan="2">
<td><html:submit styleClass="push-button"/></td>
</tr>
</table>
</html:form>
</body>
</html:html>
I've debugged the application; the named form is in the request with the name
as indicated in the action-mapping. Can please tell me someone what this BEAN
is, and what i'm doing wrong. Any help is very much appreciated as i already
spent hours checking the application.
Regards
Reto
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]