0

I've got 2 JSPs. JSP1 calls JSP2 to format a table in JSP1

JSP1 calls JSP2 using this code:

<jsp:include page='<%=(String)request.getAttribute("SB_Format_Path")%>' flush="true" ></jsp:include>

The problem is that JSP2 has access to variable XX, at runtime but JSP1 does not have access to it. I'd like to somehow be able to access variable XX from JSP1, but I've researched and haven't found a solution to my partiucal problem.

Thanks.

Edited by harry010: n/a

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by harry010
0

There are solutions called servlet and sessions.

What is actually your aim? What you trying to achieve by this page to page data handling?

0

There are solutions called servlet and sessions.

What is actually your aim? What you trying to achieve by this page to page data handling?

Hi,

I'm just trying to display the variable on JSP1. There is a variable for each jsp that is unique that I can only really get at runtime.

0

Hi,

Thanks a lot for you reply. I found out about the session variable you mentioned and it did the trick! Thanks a lot. Its the same feeling as writing my first hello-world programs!

See ya.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.