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 get the values from the Combo Box - JSP-Servlet
how to store multiple values from drop down in database where i am using java struts 1.3
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
how to get a column values from a excel file after attaching it - JSP-Servlet
How to get a values - JSP-Servlet
how to fetch data from servlet ????
calling a javascript function by passing multiple values from applet in web application
JSP1
JSP2
how to read values from java in xml?
how to insert values from jsp into ms access
How to Display values from databse into table
select tag multiple values
how to fetch values from .properties to a html file
Passing java variables from JSP to Servlet - return null values
How to values from xml using java?
How to pass an arraylist from servlet to jsp?
How to retrieve image from database in Servlet?
retrieving values from dynamically added textboxes in jsp - JSP-Servlet
how to load values of html form into an excel table using java servlet?
How to create file from input values in Jframe ?
how to get the values to dropdownlist from oracle database
multiple select values
How to delete the row from the Database by using servlet
Values from servlet into dropdownlist in jsp page using ajax
How to send boolean array to servlet from java application?
how to create own tld and use it in jspx file

Ads