i just wanted to know if there is a way to pass parameters from servlet to jsp without using the attributes.Please let me know if the answer is yes and do explain with an example
Request parameters will automatically be carried along on the request and you don't have to do a single thing.
That assumes, of course, that you are forwarding the request from the servlet to the JSP. If you are performing a redirect, a new request is generated and the parameters will be lost.
Customarily, if these data values need to be kept around, scoped variables in session scope are used.
But other ways could be to store them in cookies, write them to a database, write them to files, and so on.
What's your beef with scoped variables? [ September 16, 2008: Message edited by: Bear Bibeault ]
sir Imagine i have a form where in i enter the username and password.Now i have passed them on to the servlet.Further I would like to know is there a way to pass the same request parameters from the servlet to another jsp without using set and getAttributes.I hope the scenario is clear now. Thanks [ September 16, 2008: Message edited by: ramanuja varun ]