Hello all....
If someone could help me with this it would be GREATLY appreciated.
I have a web application that makes use of beans and jsps and servlets.
My problem is this...
I <usebean> on my initial JSP and have one user input field. My action on the Form is to go to a Process Jsp page which basically does a <set property> and then forwards to a servlet that uses the input field to look up a database record. I then fill up the bean with the setter methods and then forward to a display JSP page.
I am using the getAttribute in the servlet to get the bean and I am using getRequestDispatcher.forward for the JSPs. And when I <usebean> I am using request scope.
Problem is that as I am moving from page to page to servlet etc. I am losing my Bean data.
It only seems to be happening if I need to use two forms. I have page one is a form which processes the info and forwards to page 2 which is another form. When I process, I have already lost my bean and the information from page 1.
I just don't get it!!! I have been researching this all day and it seems like a SIMPLE THING but it is just not working for me. Is my request being lost somewhere???
All I can think of is that when I POST a form I am getting a NEW request at that time???
ANY help on this would be appreciated!!!
If someone could help me with this it would be GREATLY appreciated.
I have a web application that makes use of beans and jsps and servlets.
My problem is this...
I <usebean> on my initial JSP and have one user input field. My action on the Form is to go to a Process Jsp page which basically does a <set property> and then forwards to a servlet that uses the input field to look up a database record. I then fill up the bean with the setter methods and then forward to a display JSP page.
I am using the getAttribute in the servlet to get the bean and I am using getRequestDispatcher.forward for the JSPs. And when I <usebean> I am using request scope.
Problem is that as I am moving from page to page to servlet etc. I am losing my Bean data.
It only seems to be happening if I need to use two forms. I have page one is a form which processes the info and forwards to page 2 which is another form. When I process, I have already lost my bean and the information from page 1.
I just don't get it!!! I have been researching this all day and it seems like a SIMPLE THING but it is just not working for me. Is my request being lost somewhere???
All I can think of is that when I POST a form I am getting a NEW request at that time???
ANY help on this would be appreciated!!!