Solved

Global variable with cookies disabled

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help with LDAp login using jsp 6 118
iterator example remove 8 75
doubleChar java challenge 7 129
oracle fusion vs MQ 2 128
Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. This article shows how to create one of these functions to write directly to Azure Table Storage.
This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read https://technet.microsoft.com/en-us/windows-server-docs/security/securing-privileged-access/s…

756 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