Solved

Global variable with cookies disabled

Posted on 2006-07-16
4
247 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Let's take a look back at the commercialization of the internet to understand why keeping it open and neutral is in our best interest as a society.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

628 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