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 1028245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:21:28+00:00 2026-05-16T12:21:28+00:00

I have a GWT application which I would like to run from within a

  • 0

I have a GWT application which I would like to run from within a Joomla layout. The concept seems to work fine and the application loads up correctly. Joomla uses an iFrame to achieve this and just sends off the url which will kick start the GWT application.

The issue I am having is that I require certain information from Joomla, which I pass as parameters in the url. Since a GWT application starts up from an HTML page, giving me no way to access those parameters, I am instead firing off a request to a Servlet, the idea being that I can grab those parameters, save it in the session and then serve the GWT applications HTML page.

The concept works fine. I grab the parameters, put them into a map, that map goes into a basic bean and I store the bean as a session attribute with the code:

request.getSession().setAttribute("sessionBean", sessionBean);

The Servlet then serves out the GWT HTML page, which in turn loads up the application, and the first thing it does is fire off an RPC call. The issue I am having is in my RemoteServiceServlet handling that call, I attempt to fetch my SessionBean with the following code:

SessionBean sessionBean = (SessionBean) this.getThreadLocalRequest().getSession().getAttribute("sessionBean");

I get null, and looking closer realise that it has in fact created a new session. I know this by comparing the id’s of the two sessions. Any subsequent further RPC calls all have access to the last session but the one I stored my SessionBean in is gone!

It is all one deployed war file, cookies are enabled, and it acts this way both in development and production mode.

I figure I am probably misunderstanding the way sessions are handled! Any ideas as to why the GWT RPC call creates a new session? Or maybe if I am going about this completely wrong, how to get these needed parameters into a session?

Any help or ideas will be greatly appreciated!

Thanks in advance!

Xandel

  • 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-16T12:21:28+00:00Added an answer on May 16, 2026 at 12:21 pm

    In gwt you can get the url-parameters by:

    Window.Location.getQueryString()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to have my GWT application use different constants when debugging or
I have a monolingual GWT application (English) and I would like to use localized
I have an application that utilized libraries which are published under different licences like
I was looking into GWT. It seems nice, but our software have the must
I have a GWT application that displays some charts rendered by JFreeChart. Every few
Have you tried using MVC or any other UI pattern for GWT client code.
Have just started using Visual Studio Professional's built-in unit testing features, which as I
Have you used VS.NET Architect Edition's Application and System diagrams to start designing a
Have a n-tire web application and search often times out after 30 secs. How
Have you managed to get Aptana Studio debugging to work? I tried following this,

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.