Solved

Global variable with cookies disabled

Posted on 2006-07-16
4
236 Views
Last Modified: 2010-05-18
Hi,
    I have two pages "abc.jsp"  and "xyz.jsp" and a header page "header.jsp"
Header page is added as <jsp:include page="header.jsp" /> in both pages.
now a variable that is passed to abc.jsp how can i pass it to header.jsp as header.jsp has a function which uses it. once variable passed to header.jsp it should be there even if i try to use it through xyz.jsp.
Cannot use cookies at all .. including session cookie (Session Variables).

Thanks in advance.
0
Comment
Question by:cool_baba
4 Comments
 
LVL 2

Accepted Solution

by:
vikrant4u2 earned 300 total points
ID: 17120176
0
 
LVL 19

Assisted Solution

by:Kuldeepchaturvedi
Kuldeepchaturvedi earned 200 total points
ID: 17121166
you can use application context to save the value there, it can be accessed by any page after you save it..

0
 
LVL 17

Expert Comment

by:gops1
ID: 17121745
Why can't you store the value inside a hidden text box and sent it as a request object
0
 
LVL 9

Expert Comment

by:owenli27
ID: 17122648
I agree with Kuldeepchaturvedi. You can use context variable to store value.   Your "abc.jsp"  and "xyz.jsp" will be translated to abc_jsp.java and xyz_jsp.java and both classes have header.jsp function and variable declaration content.  But they are in different java class.  Your header.jsp will not be translated to java.

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now