I have scenario like this.
After submission of JSP page request goes to servlet. In the servlet I have requirement like need to send the an object to same JSP page to fill the form text fields.
User will enter id value in the form and we need to fetch the data from database and need to fill the rest of the fields in the same page
I have used these lines in the process
//In servlet
//1 request.setAttribute("student",student);
//2 request.getRequestDispatcher("/Student.jsp").forward(request, response);
//In JSP
used getAtttibute here
input type="text" name="name" value=<%=name %>
I have done with coding and it is working fine but it looks very clumsy!!
Please do refer any other ways to do this task efficiently.
Just Suggest me how to proceed and I can work on it :)