Hi,
I am re-working a simple Logon page to present a Welcome page after
successful logon to now include Value Objects as well.
e.g. My Form bean is LogonForm - it contains a user Value Object (uservo).
This value object has username and password properties.
For the most part everything is OK? After validationg the username and
password it forwards to the Welcome page, however, in LogonAction if I use
LogonForm userform = (LogonForm) form;
...
session.setAttribute("user", userform.getUservo());
then in Welcome.jsp the following works:
Welcome to XXX: <jsp:getProperty name="user" property="username"/>
and correctly displays the username.
However, in LogonAction if I use
LogonForm userform = (LogonForm) form;
...
session.setAttribute("user", userform);
then I would expect the nested syntax to work in the Welcome.jsp...
Welcome to XXX: <jsp:getProperty name="user"
property="uservo.username"/>
I get the following error:
org.apache.jasper.JasperException: Cannot find any information on property
'uservo.username' in a bean of type 'LogonForm'
Is this converting to getUservo().getUsername()? Saw similar posts and
usually wrong method capitalisation etc... These methods are present with
correct capitalisation as I can println as a test and username has correct
value? Any ideas what I am doing wrong?
Cheers,
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]