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

  • Home
  • SEARCH
  • 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 269597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T23:51:44+00:00 2026-05-11T23:51:44+00:00

I am working on converting the functionality of some JSP pages to GWT. I

  • 0

I am working on converting the functionality of some JSP pages to GWT. I noticed that javax.servlet.http.HttpServletRequest request is an implied object in JSP, and one can obtain the client’s refresh count by calling request.getParameter(“refreshCount”). I noticed that one can also access this request object in GWT in the service implementation class (extends RemoteServiceServlet) for the client making an RPC call to this service class by calling getThreadLocalRequest(). However, I noticed that the request object has no parameters. How may I possibly get the refresh count of the calling client (through HttpServletRequest or otherwise)?

  • 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-11T23:51:44+00:00Added an answer on May 11, 2026 at 11:51 pm

    I don’t think getParameter(“refreshCount”) is an automatic function of servlets. It looks like it is just getting the value of a refreshCount parameter in your query string (URL). Most likely, some other part of your code is setting that value.

    Even if it is being tracked automatically by the Servlet class, that would require maintaining session state for that client. GWT RPC calls don’t have any built in session functionality. So if you want to do this, you have two options:

    • You can maintain a “refresh count”
      variable in the client, and pass it
      to your RPC method as a parameter.
    • You can pass some kind of session ID
      into each of your RPC method calls,
      and track the refresh count on the
      server side. This might require
      storing the session in a database, or
      in some global memory structure.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on converting a CVS repository that has the following symbols (among
I'm working on converting some NSURLConnection code over to AFNetworking and I'm seeing a
I'm working on a project that involves converting a large amount of HTML content
while working on an application that requires converting strings to long numbers the atol()
i'm working with an existing client-side legacy database that we're converting to MySQL for
I'm working on some stuff related to converting files, and I'm trying to find
I am working on a project where I am converting some VB.Net class libraries
I'm working on converting an RSS feed from an old shopping cart to a
I am currently working on converting an existing web application to support an additional
I am presently working on converting a 32-bit application into a 64-bit application in

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.