>  -----Original Message-----
> From:         Adedokun, Bisi  
> Sent: Friday, March 12, 2004 3:18 PM
> To:   '[EMAIL PROTECTED]'
> Subject:      FW: [Servlet Error]-[No form found under name logonForm,
> locale en_US]:
> 
> I am getting the following errors when the servlet engine tries to load
> the index.jsp of the application I'm working on:
> OS: W2K, Browser: IE 5.50 App Server: WSAD with WAS Version 5 test
> environment
> 
> [3/12/04 13:45:25:115 EST]  f4bf269 WebGroup      E SRVE0026E: [Servlet
> Error]-[No form found under name logonForm, locale en_US]:
> javax.servlet.jsp.JspException: No form found under name logonForm, locale
> en_US
>       at
> org.apache.struts.taglib.html.JavascriptValidatorTag.createDynamicJavascri
> pt(JavascriptValidatorTag.java:420)
>       at
> org.apache.struts.taglib.html.JavascriptValidatorTag.renderJavascript(Java
> scriptValidatorTag.java:382)
>       at
> org.apache.struts.taglib.html.JavascriptValidatorTag.doStartTag(Javascript
> ValidatorTag.java:354)
>       at org.apache.jsp._index._jspService(_index.java:802)
>       at
> com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:8
> 9)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>       at
> com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(J
> spServlet.java:357)
>       at
> com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.j
> ava:675)
>       at
> com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:773
> )
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 
> Below is how my struts-config.xml looks like:
> 
> <form-beans>
>    <form-bean name="logonForm"
> type="org.acaosa.registration.web.LogonForm"></form-bean>
> </form-beans>
> 
> <global-forwards>
>     <forward name="logon" path="/index.jsp"></forward>
>     <forward name="mainmenu" path="/mainMenu.do"></forward>
> </global-forwards>
> 
> <action-mappings>
>       <action path="/logon" type="org.acaosa.registration.web.LogonAction"
> input="/index.jsp" name="logonForm"
> scope="request"></action>
>       <action path="/createRegistration"
> type="org.acaosa.registration.web.CreateRegistrationAction"></action>
>       <action path="/mainMenu"
> type="org.acaosa.registration.web.MainMenuAction">
>       <forward name="success" path="/WEB-INF/view/mainmenu.jsp"></forward>
>       </action>
> </action-mappings>
> 
> Below is the index.jsp:
> 
> <tr>
>  <td height="25"><html:form action="/logon" focus="memberName"
>      onsubmit="return validateLoginForm(this);">
>    <table border="0">
>     <tbody>
> 
>       <tr>
>        <th align="right"><bean:message key="prompt.memberName" />:</th>
>        <td align="left"><html:text property="memberName" size="16"
> maxlength="18" /></td>
>       </tr>
>       <tr>
>         <th align="right"><bean:message key="prompt.password" />:</th>
>         <td align="left"><html:password property="password" size="16"
> maxlength="18" redisplay="false" /></td>
>       </tr>
>       <tr>
>         <td align="right"><html:submit property="submit">
>         <bean:message key="button.login" />
>         </html:submit></td>
>         <td align="left"><html:reset /></td>
>       </tr>
>       <tr></tr>
>       </tbody>
>    </table>
>  </html:form></td>
> </tr>
> 
> The LogonForm class looks like this:
> 
> public class LogonForm extends org.apache.struts.validator.ValidatorForm {
>   private String password = null;
>   private String memberName = null;
> 
>   // with appropriate getter and setter methods
> }
> 
> Lastly, relevant code snippet from the action class looks like this:
> 
>       ActionMessages errors = new ActionMessages();
>       String memberName = (String)
>       PropertyUtils.getSimpleProperty(form, "memberName");
>       String password = (String)
>       PropertyUtils.getSimpleProperty(form, "password");
>       signOn = signOnFacade.authenticate(memberName, password);
>       if (!signOn) {
>           errors.add(ActionMessages.GLOBAL_MESSAGE, new
> ActionMessage("error.password.mismatch"));
>       } else {
>           member = signOnFacade.getMember(memberName);
>       }
>       HttpSession session = request.getSession();
>       session.setAttribute(RegistrationConstants.MEMBER_KEY, member);
> 
> 
> Any assistance in resolving this problem will be appreciated.
> 
> PS: Going through the mail list, I have tried some of the things that were
> suggested there for similar error like changing the scope from request to
> session and vice versa. I still get the same errors.
> 
> Bisi
> 
> 
> 
======================================================================== 
This email message is for the sole use of the intended recipient (s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message. To reply to our email administrator directly, send
an email to [EMAIL PROTECTED] 
Toys "R" Us, Inc.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to