Welcome to Java ranch !!
First of all , no question is stupid question .. every question is equally important ..
every question or query has only aim - to give a chance to Person to increase his knowledge ...
feel free to ask any query/question related to Java in this forum ..
related to your question, have you set your object in HTTPSession in your servlet class?
Jean Noel wrote:Well, I guess that if the value in the jsp need to be initialized, this has to happen in the bean, hasn't it?
Not like you are doing. The useBean action and its ilk like setProperty are pretty much obsolete goop.
If you want to initialize the values in the JSP, its page controller should create a scoped variable (bean) and put it in request scope prior to forwarding to the JSP. Then (without the need for useBean goop) the EL can be used to provide the value of the value attribute.
For example, if the page controller creates a scoped variable named myValues with a bean that contain the various properties, it could be used as such:
Easy as that. No useBean, no setProperty, no goop.
If the value can contain quotes, it'd be best to wrap it using <c:out>.
I understand I can do a getParameter for each field, but it would be much more convenient if the bean members would get all populated at once... Would save me a lot of line of codes...