You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by sjones <sj...@yahoo.com> on 2003/06/02 23:34:44 UTC

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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: bean-write

Posted by sjones <sj...@yahoo.com>.
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" <na...@ikigo.com> wrote in message news:3EDC27BE.000001.00916@NAGENDRA...
        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: struts-user@jakarta.apache.org
        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: struts-user-unsubscribe@jakarta.apache.org
        For additional commands, e-mail: struts-user-help@jakarta.apache.org


        . 
               
       
  ____________________________________________________
    IncrediMail - Email has finally evolved - Click Here 

Re: bean-write

Posted by Nagendra Kumar O V S <na...@ikigo.com>.
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: struts-user@jakarta.apache.org
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


.