How do u pass data from one jsp to another jsp?

Answers were Sorted based on User's Feedback



How do u pass data from one jsp to another jsp?..

Answer / shaik syed basha

You can pass parameter names and values to the target file
by using a <jsp:param> clause. An example of this would be
passing the parameter name username (with name="username")
and the value scott (with value="scott") to a servlet login
file as part of the request. If you use <jsp:param>, the
target file should be a dynamic file that can handle the
parameters.

Is This Answer Correct ?    19 Yes 3 No

How do u pass data from one jsp to another jsp?..

Answer / soumyojit chakraborty

This can be done by using an implicit object in jsp, called
session. Sessions are set using Session.setAttribute() and
retrieved in another jsp using Session.getAttribute().

Is This Answer Correct ?    13 Yes 0 No

How do u pass data from one jsp to another jsp?..

Answer / sreedhar

In that jsp we can pass the values one page two another
page four ways:

1)Hidden form fields
2)session
3)query String
4)request Object

Is This Answer Correct ?    10 Yes 1 No

Post New Answer

More Core Java Interview Questions

What is multithreading ???? How to stop multithrading in java????

1 Answers   Cognizant,


Why is it called a string?

1 Answers  


System.out.println("somestring"); It will create any object or not

5 Answers   CSC,


What is the difference between object oriented programming language and object based programming language?

1 Answers  


Why does java have two ways to create child threads? Which way is better?

1 Answers  


What is a concrete classes? Is Java object class is concrete class?

1 Answers   Infosys,


When is the garbage collection used in Java?

1 Answers   BirlaSoft,


How do you use, call, and access a static method in Java?

2 Answers  


when asub class inherits a super class and overrides a public method of super class in sub class(public method in super class). why these methods needs to be public in sub class. (otherwise compile time error).

3 Answers  


Why is stringbuffer thread safe?

1 Answers  


What are virtual functions?

2 Answers  


Which sorting is used in arrays sort in java?

1 Answers  


Categories