Solved

Global variable with cookies disabled

Posted on 2006-07-16
4
239 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
method inner class 6 81
getting Http 404 error in jsp forms 8 73
constructor overloading 2 79
doubleChar java challenge 7 102
When converting a physical machine to a virtual machine using VMware vCenter Converter Standalone or vCenter Converter Enterprise, if an adapter type is not selected during the initial customization the resulting virtual machine may contain an IDE d…
If your vDisk VHD file gets deleted from the image store accidentally or on purpose, you won't be able to remove the vDisk from the PVS console. There is a known workaround that is solid.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

930 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

11 Experts available now in Live!

Get 1:1 Help Now