No can do. The two JSPs exist in separate requests so they cannot share data. The request that generates the first HTML page from the first JSP goes out of scope as soon as the response is sent to the browser. Any scoped variables created on that request go by-by with the request.
If you want to preserve some data across requests you'll either need to store it in the session, or carry it on the page as hidden values (suitable only for text strings).
request object 's scope belongs to Server and hyperlink is just a link in Client browser. So it is possible only when you pass request object's value in the hyperlink as query string .
As mentioned, hidden fields are associated with the form. So, put your hidden fields declaration within your form tag. You currently have it outside the form tag.
jacob deiter wrote:
I have tried to use Hidden Fields values outside of form bean and checked the request parameters in the next JSP page ,but I cant fins that variable,
Is the right way of using ??
Bosun (SCJP, SCWCD).
So much trouble in the world -- Bob Marley
Men call me Jim. Women look past me to this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss