i am having a servlet in which i am fetching datas from a search jsp page(search jsp page contains text boxes and other options on the basis of which user is searched from databse.) all the data from search page are fetched in my servlet by request.getParameter(&amp;amp;amp;quot;parameter&amp;amp;amp;quot;). then the database is searched and aray of objects are prepared in same servlet class ..since for searching on the basis of one field there could be more than one user. So an araay is prepared
by EmpJavaBean empJavabeanObjectArray=new EmpJavaBean;(say)..and in this object fetched fron database are put in.
now i am passing this array into a jsp page through request dispatcher as
there these results are displayed in table with a radio button against each table. user having an option to select any one user and if user select any one user , whole info as object is set in sessssion in that jsp page
alert(&amp;amp;amp;quot;you must select a radio Button&amp;amp;amp;quot;);
and in &amp;amp;amp;lt;form name&amp;amp;amp;quot;something&amp;amp;amp;quot; action=&amp;amp;amp;quot;same servlet &amp;amp;amp;quot;&amp;amp;amp;gt;
ie passed again back to servlet . Here only one object is set into session instead of whole array.
i am receiving that object in servlet just nxt to above code of request dispatcher (where i forwarded to 1st jsp page)
note that rd.forward(request, response); is repeated twice in my servlet.
now my moto is that i know how to set the object in session in a jsp page and how to retreive back in servlet.
and from there i want to go to updateUser.jsp page after clicking the radio button (means selecting a user)and pressing submit button. obviously in between it should again comeback to servlet before getting me to updateUser.jsp.
but iam not getting the result and after selecting the radio button and pressing submit button i remain at searchedEmpPage.jsp.
can any one help me please.
i hope iam clear to you guys. my directory structure is ok.
hoping for the response.
Firstly, please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.
You can go back and change your post to add code tags by clicking the button on your post.