Hi
I've been working for a long time with
JSF, and now that I have to work with JSP/Servlets, I can't figure out how to perform basic things I was easily doing before.
Basically, I have a
jsp that displays a form; the user types in data, and when submitting the form, a
servlet is invoked to separate business logic from presentation.
In my jsp, I have included the bean:
<jsp:useBean id="expert" scope="session"
class="....Expert" />
I have tried adding:
<jsp:setProperty name="expert" property="*"/>
right below the bean declaration, without success.
I have declared the input field:
<input id="firstname" type="text" class="form-control"
placeholder="First name" value="${expert.firstName}" />
When clicking on 'submit', I would expect the servlet to find a session variable named 'expert' (which it does) with the value entered by the user in the fields.
Unfortunately, this does not work and fields in the servlet are always null.
I'm probably missing something here, but I'm running out of idea, so would appreciate some help... Am I trying to do something impossible?
Thanks
/jnc