Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JSP-Servlet How to carry multiple values from a Servlet to a JSP?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Munikumar
How to carry multiple values from a Servlet to a JSP?
1 Answer(s)      3 years and 10 months ago
Posted in : JSP-Servlet


By using the below code I am able to carry the username to a JSP (single value).

----response.sendRedirect("index.jsp?uname="+username);----

But I want multiple values needs to be carried from my servlet to a JSP. How do I do that?


Advertisement
View Answers

February 28, 2011 at 3:21 PM


You can use the following code:

response.sendRedirect("/examples/jsp/index.jsp?uname="+username+"&&pass="+password);


Related Tutorials/Questions & Answers:
Advertisements
 

 

 

DMCA.com