Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7089161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:53:17+00:00 2026-05-28T07:53:17+00:00

I have a J2EE/JSF-based web-app. It consists of an form-input, a text display and

  • 0

I have a J2EE/JSF-based web-app.
It consists of an form-input, a text display and a visualization rendered through Google Visualization API with a custom servlet datasource.

The page is rendered in an <iframe/> in a page that I can control partially at best.

On Chrome, Firefox, the application works well. They accept the JSF-generated session cookie and return the session id to the server with each request.
On IE, we had to fiddle a bit, but all in all it works as well.

On Safari (5.1.2/Windows XP) however, the session id is sent as a non-standard URL-parameter (;jsessionid=...). As a consequence, the Query to the servlet datasource does not include the session id, and a new session is created for every request to the datasource.

This leads to the visualization being stuck at the initial state.

I suspect the cause in the browsers’ different JavaScript engines, but that suspicion is of little use.

Can I somehow get Safari to add the session ID to all requests? Even better, can I get it to use the cookie for all requests somehow?

Update: I have tried to append the session id to the call executed by Google’s “Query” object, but failed.
When called like this

new google.visualization.Query('chartdata?randomBitToBypassCaching='+random+";jsessionid="+jsessionid);

the URL requested is that

http://localhost:8083/myapp/chartdata?randomBitToBypassCaching=1327312516149;jsessionid=9fdb20a75d30f000c063317997b5&tqx=reqId%3A0

Note that Query appends a tqx-parameter to the URL, which renders my attempt to transfer the ID moot.

Update 2: The recommended way to transfer a jsessionid in the URL is to add it before the parameters.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:53:18+00:00Added an answer on May 28, 2026 at 7:53 am

    In the end, I transferred the session id as a URL parameter and implemented a Servlet Filter that redirected the request using the standard notation ;jsessionid=...?...

    Unfortunately, just appending the session id to the query string – before any other parameter – did not work:

    new google.visualization.Query('chartdata;jsessionid="+jsessionid?randomBitToBypassCaching='+random+");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a J2EE web app with a form where I upload a file
I have J2EE web application which uses JSF framework. Now I am trying to
I have a J2EE based web application. In one of the pages there is
I have apache web server installed as frontend and I have j2ee SAP Netweaver
I have a J2EE-based system which is running currently on Apache Tomcat. We are
I have a J2EE web-application running on Sun hardware with OpenSolaris/Glassfish stack. We're starting
I have a J2EE app deployed as an EAR file, which in turn contains
We have a J2EE app built on Struts2+spring+iBatis; not all DAO's use iBatis...some code
we have a J2EE app on which we're still working. It runs on Oracle
I have a J2EE application with a web service which goes like http://servername/service?task=getFile&id=25 How

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.