Bernhard
I am facing same problem and still getting the error saying
"Cannot retrieve definition for form bean null"
attached is my jsp and struts-config.xml, can u check the goofup I am doing
one question, do we have to add struts package which is in webapps in
classpath ?
----- Original Message -----
From: "Hirschmann, Bernhard" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, February 21, 2003 2:23 PM
Subject: AW: Really dumb struts question...
>
> Do you also have the form tag in your JSP?
>
> Bernhard
>
>
> -----Urspr�ngliche Nachricht-----
> Von: Loren J. Erickson [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 21. Februar 2003 08:59
> An: [EMAIL PROTECTED]
> Betreff: Really dumb struts question...
>
>
>
> Like probably thousands of others, I'm trying to write a simple portal
> using Struts 1.0.2. I'm getting the following error that I can't figure
> out.
>
> org.apache.jasper.JasperException: No bean found under attribute key
> registerForm
>
> I've also included a snippet from my struts-config.xml. Seems like the
> form names match to me. Am I missing something?
>
> [SNIP]
>
> <form-beans>
>
> <form-bean name="registerForm"
> type="com.fmr.fpc.struts.RegisterForm"/>
>
> </form-beans>
>
> [SNIP]
>
> <action-mappings>
>
> <action path="/Register"
> type="com.fmr.fpc.struts.RegisterAction"
> name="registerForm"
> scope="request"
> input="/Register.jsp">
> </action>
>
> </action-mappings>
>
> [SNIP]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<!--
This is the Struts configuration file for the WIGAdmin application,
using the proposed new syntax.
NOTE: You would only flesh out the details in the "form-bean"
declarations if you had a generator tool that used them to create
the corresponding Java classes for you. Otherwise, you would
need only the "form-bean" element itself, with the corresponding
"name" and "type" attributes.
-->
<struts-config>
<!-- ========== Data Source Configuration =============================== -->
<!--
<data-sources>
<data-source>
<set-property property="autoCommit"
value="false"/>
<set-property property="description"
value="Example Data Source Configuration"/>
<set-property property="driverClass"
value="org.postgresql.Driver"/>
<set-property property="maxCount"
value="4"/>
<set-property property="minCount"
value="2"/>
<set-property property="password"
value="mypassword"/>
<set-property property="url"
value="jdbc:postgresql://localhost/mydatabase"/>
<set-property property="user"
value="myusername"/>
</data-source>
</data-sources>
-->
<!-- ========== Form Bean Definitions =================================== -->
<form-beans>
<form-bean name="WIGAdminWizardForm"
type="wigadmin.struts.forms.WIGAdminWizardForm">
<form-property name="nOMId" type="java.lang.Integer"/>
<form-property name="sOMName" type="java.lang.String"/>
<form-property name="sTransactionType" type="java.lang.String"/>
<form-property name="sServerName" type="java.lang.String"/>
<form-property name="sPortNumber" type="java.lang.String"/>
</form-bean>
</form-beans>
<!-- ========== Global Forward Definitions ============================== -->
<global-forwards>
<!-- Adding global forward definition for OMInterfaceInfo jsp -->
<forward name="ominterfaceinfo" path="/ominterfaceinfo.jsp"/>
</global-forwards>
<!-- ========== Action Mapping Definitions ============================== -->
<action-mappings>
<!-- adding aciton mapping information,
this will deligate request to OMInterfaceInfoAction
class for WIGAdminWizardForm bean -->
<!-- Order Manager Interface Information -->
<action path="/ominterfaceinfo"
type="wigadmin.struts.action.OMInterfaceInfoAction"
attribute="WIGAdminWizardForm"
scope="session"
validate="true">
<forward name="success" path="/tpinterfaceinfo.jsp"/>
</action>
</action-mappings>
<!-- ========== Controller Configuration ================================ -->
<controller>
<!-- The "input" parameter on "action" elements is the name of a
local or global "forward" rather than a module-relative path -->
<set-property property="inputForward" value="true"/>
</controller>
<!-- ========== Message Resources Definitions =========================== -->
<message-resources parameter="wigadmin.struts.properties.ApplicationResources">
</message-resources>
<!-- ========== Plug Ins Configuration ================================== -->
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml"/>
</plug-in>
</struts-config>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]