Question: How to send / pass the data/values between the Source JSP program and the destination JSP Program?
==============================================
Approach 1: If the source and destination JSP program resides in the same webapplication
----------
a) Use request attributes (When source and destination JSP program uses same request object)
b) Use session attributes (When source and destination jsp programs get request from the same browser window)
c) use application attributes (in any condition)
d) use pageContext attributes (Allows to create request attributes, session attributes, application attributes)
Approach 2: If the source and destination JSP program resides in two different web apps
-----------
a)
Append the query string to the URL of the response.sendRedirect(-) method
response.sendRedirect(url?p1=val1&p2=val2&p3=val3.....);
Download
0 formats
No download links available.
64 How to send / pass the data values between the Source JSP program and destination JSP Program | NatokHD