How do u pass data from one jsp to another jsp?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
How many return statement are allowed in a function?
What are File and RandomAccessFile classes?
What are the two main uses of volatile in Java?
What are the differences between checked exception and unchecked exception?
Can a class be final?
What is :: operator in java 8?
String is a immutable objects . it means that string does not change........... But it will be chang......... { String s="kapil"; String s1="raj"; String s=s1; then print(.......) The String has been changed .. how it is possible and why its called immutable objects
class A { private int i; } class B extends A { private int i; } if I create an object of B class what will be the memory of that object.
What is serial version uid and its importance in java?
What is locale in java?
What do you mean by boolean?
Explain the importance of join() method in thread class?