Hi everyone, and sorry if it isn't the right zone to explain my problem.
I need to see database informations in the
jsp but i don't know how.
(i 'm not allowed to use
java code on the jsp)
For example after the login action i want to see the message welcome "user" in the other pages, where user is his name saved in the db.
Now in my ActionClass i m calling a method
User user = daoFactory.userDAO().checkLogin(loginform.getUserName(), loginform.getPassword(),connection);
and it 'll return a object user with all the information i need.
Then in my jsp :
<jsp:useBean id="Mrbean"
class="it.tbr.action.LoginAction" />
welcome<jsp:getProperty name="Mrbean" property="name" />
where
name=request.getParameter(user.getFirstName()); (in the ActionClass)
but in my jsp i got a null name.
i miss something but i don t know where.
can someone help me?
thanks