How to carry multiple values from a Servlet to a JSP?

Ads
 

How to carry multiple values from a Servlet to a JSP?

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?

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);

Ads









Related Tutorials/Questions & Answers:
How to carry multiple values from a Servlet to a JSP?
How to pass multiple values from a servlet to JSP?
Advertisements
How to return multiple values from a method - Java Beginners
How to return multiple values from a method - Java Beginners
how to get a values from processRecord - JSP-Servlet
how to store multiple values from drop down in database where i am using java struts 1.3
how to pass the mutiple values from <Ui:datagrid hyperlink - JSP-Servlet
how to pass the mutiple values from <Ui:datagrid hyperlink - JSP-Servlet
JSP1
JSP2
how to get a values from a multipart/form-data - JSP-Servlet
Protect JSPs from direct access
How to get the values from the Combo Box - JSP-Servlet
redirect to multiple links from servlet
how to get multiple hyperlink values from a table column to another jsp file?
retrieve multiple columns values from multiple csv files in java
calling a javascript function by passing multiple values from applet in web application
how to get a column values from a excel file after attaching it - JSP-Servlet
How servlet Handles Multiple Request - Java Beginners
how to read values from java in xml?
How to get a values - JSP-Servlet
getting values from database - JSP-Servlet
How to get a values - JSP-Servlet
how to create own tld and use it in jspx file
how to create own tld and use it in jspx file
how to insert values from jsp into ms access
select tag multiple values
how to fetch data from servlet ????
how to fetch values from .properties to a html file
How to Display values from databse into table
Facing Problem to insert Multiple Array values in database - JSP-Servlet

Ads