You should put your scope request, not session.
this is an example:
=============
<jsp:useBean id="formBean" class="a.class.named.XXXX" scope="request">
  <jsp:setProperty name="formBean" property="*"/>
</jsp:useBean>
=============

At 03:40 PM 1/30/2005 +0800, you wrote:
I am trying to use the directive jsp:setProperty to set the attributes
on a bean. However, when I try to set a password field, I get the error:
Can't find a method to write property 'password' of type
'java.lang.String' in a bean of type 'Mylogin.UserLoginBean'
I am getting the password from the screen:
<p>text:
<input type="password" name="password">

and then in the jsp, I am calling
<jsp:useBean id="userLoginBean" scope="session"
class="Mylogin.UserLoginBean" />
<jsp:setProperty name="userLoginBean" property="password"/>


in the class, I have password:
String password;
public void setPassowrd(String password){
        password=password;
        System.out.println("inside password");
}

I am doing the same with other properties and it seems that password is
the only one running into problem.


Thanks for all the help in advance.

Khalid



---------------------------------------------------------------------
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]

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

Reply via email to