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

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

Ads