aspose file tools*
The moose likes Struts and the fly likes exception while displaying a html:select component Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "exception while displaying a html:select component" Watch "exception while displaying a html:select component" New topic
Author

exception while displaying a html:select component

luca antonelli
Greenhorn

Joined: Jun 04, 2012
Posts: 1
Hi all, i have the exception : Cannot find bean under name org.apache.struts.taglib.html.BEAN
my jsp is this:


<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%-- JSTL tag libs --%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%-- Struts provided Taglibs --%>
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html" %>
<head>
<fmt:setBundle basename="ApplicationResources" />
<title><fmt:message key="loggedin.title"/></title>
</head>
<body>
<H2>
<fmt:message key="loggedin.msg">
<fmt:param value="<%=request.getAttribute(\"userName\") %>" />
</fmt:message>
</H2>

<html:select property="combo">
<html:options collection="comboList"/>
</html:select>
</body>
</html>


and the struts-config.xml is this one:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">

<struts-config>
<!-- ================================================ Form Bean Definitions -->
<form-beans>
<!-- sample form bean descriptor for an ActionForm
<form-bean
name="inputForm"
type="app.InputForm"/>
end sample -->

<!-- sample form bean descriptor for a DynaActionForm
<form-bean
name="logonForm"
type="org.apache.struts.action.DynaActionForm">
<form-property
name="username"
type="java.lang.String"/>
<form-property
name="password"
type="java.lang.String"/>
</form-bean>
end sample -->


<form-bean name="loginForm" type="dummies.struts.LoginForm"/>
<form-bean name="passedForm" type="dummies.struts.PassedForm"/>
</form-beans>

<!-- ========================================= Global Exception Definitions -->

<global-exceptions>
<!-- sample exception handler
<exception
key="expired.password"
type="app.ExpiredPasswordException"
path="/changePassword.jsp"/>
end sample -->
</global-exceptions>


<!-- =========================================== Global Forward Definitions -->

<global-forwards>
<!-- Default forward to "Welcome" action -->
<!-- Demonstrates using index.jsp to forward -->
<forward
name="welcome"
path="/Welcome.do"/>
</global-forwards>


<!-- =========================================== Action Mapping Definitions -->

<action-mappings>
<action path="/login" type="dummies.struts.LoginAction"
name="loginForm" scope="request"
input="/login.jsp" validate="true">
<forward name="failure" path="/login.jsp"/>
<forward name="success" path="/loggedin.jsp"/>
</action>

<action path="/pass" type="dummies.struts.PassedAction"
name="passedForm" scope="request"
input="/logggedin.jsp" validate="false">
<forward name="failure" path="/login.jsp"/>
<forward name="success" path="/passed.jsp"/>
</action>

</action-mappings>


<!-- ======================================== Message Resources Definitions -->

<message-resources null="false" parameter="ApplicationResources" />



<!-- =================================================== Validator plugin -->

<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property
property="pathnames"
value="/org/apache/struts/validator/validator-rules.xml,
/WEB-INF/validation.xml"/>
</plug-in>

</struts-config>









i cannot find where is the problem,
can anyone help me?
thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: exception while displaying a html:select component