there is no "default" value for loginID

I am trying to "re-display" the LoginID the user entered after a failed login attempt. 
 

return mapping.findForward("failed") -  maps back to login.jsp

as far as naming conventions. i am aware of it.  

i was just trying anything and every thing to get the stupid thing working.



  "Nagendra Kumar O V S" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
        hi,
        first, i don't understand why u put <bean:write ..> in the <html:text..> , i 
guess for the value. but if the form has a value prepopulated (for UID), struts will 
get the value in to the text field automatically.
        second, as far as possible pl. follow the javabean convention for naming ur 
form variables

        --nagi
        -------Original Message-------

        From: Struts Users Mailing List
        Date: Tuesday, June 03, 2003 03:07:17 AM
        To: [EMAIL PROTECTED]
        Subject: bean-write

        my form-bean is "com.ubs.directory.yp.formbeans.SubmitLogin"
        the property is UID
        with get and sets

        String getUID()
        void setUID()

        I am getting errors
        [6/2/03 17:20:06:190 EDT] 6f1fc760 WebGroup E SRVE0026E: [Servlet
        Error]-[Cannot find bean SubmitLogin in any scope]:
        javax.servlet.jsp.JspException: Cannot find bean SubmitLogin in any scope

        <html:errors/>
        <html:form action="/submit.do">
        <table cellspacing="0" cellpadding="0">
        <tr><td>User ID :</td><td><html:text property="UID">
        <bean:write
        name="SubmitLogin" property="UID"/>
        </html:text>
        </td></tr>
        <tr><td>Password :</td><td><html:password property="PWD"/></td></tr>
        <tr><td>&nbsp;</td></tr>
        <tr>
        <td colspan="2">
        <html:submit value="Login" property="login" /><html:reset
        value="Clear Form" property="clear"/>
        </td>
        </tr>
        </table>
        </html:form>






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


        . 
               
       
  ____________________________________________________
    IncrediMail - Email has finally evolved - Click Here 

Reply via email to