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 hashmap and map?

0 Answers  


what is difference betwwen hashmap and hashtable ?

7 Answers   Fidelity,


What is the is a and has a relation ship in oops concept in java?

9 Answers   BearingPoint, TCS,


What is difference between path and classpath in java?

0 Answers  


What is a methodologist?

0 Answers  






Which is the best sorting technique in java?

0 Answers  


how we can make a read-only class in java?

0 Answers  


explain the collection in java

1 Answers   WDC,


If I will write String s=new String("XYZ"); String s1=new String("XYZ"); if(s.equals(s1)){ sop("True"); } else{ sop("False"); } This program will give me "True". But When I am creating my own class suppose class Employee{ public Employee(String name); } Employee e= new Employee("XYZ"); Employee e1 = neew Employee("XYZ"); if(e.equals(e1)){ sop("True"); } else{ sop("False"); } Then it will give the output as "False". Can I know what is happening internally?

5 Answers  


can anyone explain me the concept of autoboxing?

3 Answers  


Can a serialized object be transferred via network?

0 Answers  


What is arrays fill in java?

0 Answers  


Categories