Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 255
  • Last Modified:

Global variable with cookies disabled

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
cool_baba
Asked:
cool_baba
2 Solutions
 
KuldeepchaturvediCommented:
you can use application context to save the value there, it can be accessed by any page after you save it..

0
 
gops1Commented:
Why can't you store the value inside a hidden text box and sent it as a request object
0
 
Weiping DuSenior Web DeveloperCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now