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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:49:49+00:00 2026-05-20T15:49:49+00:00

I want to implement some form of (GWT 2.1 MVP) pre-Activity checking that ensures

  • 0

I want to implement some form of (GWT 2.1 MVP) pre-Activity checking that ensures the user has complied with various things before an Activity can be presented (e.g. logged in, agreed to t&c’s, read the description, etc.) These checks would take the form of Activities also.

Regardless of the specifics, I’m looking to keep my Activity’s clean and not implement this checking in each one. So far, the best place I’ve seen this is ActivityMapper, where I can perform the checks based on the requested place, and return a different Place than requested. Perhaps FilteredActivityMapper might be a better way even.

Ideally, I’d like to preserve the originally requested Place, either by not updating history when showing these intermediate (checking) Activities, or caching the original Place object inside the intermediate Place object, and if the user accepts the agreement, then lauching the original Place.

Has anyone done something similar, or has a cleaner approach to this?

  • 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-20T15:49:50+00:00Added an answer on May 20, 2026 at 3:49 pm

    If you don’t insist on having login, t&c and description inside GWT module, and can use jsps for these three things I’d suggest to:
    * Create security constraint in web.xml and protect whole GWT module via standard web container features. Each access to unprotected resource will be redirected to login form.
    * Use servlet filter to check whether user has agreed to t&c and read description and store information about it in http session.

    By the way it’d be quite elegant to use ActivityMapper for second thing, but for login I’d definitely use server-side, proven mechanisms.

    Hope it helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Microsoft has announce that WindowsLiveID become a OpenID provider . I want implement it
I am creating a signup form in my website. I want to implement some
I want to implement some code in excel macro to group some data for
I want to implement a simple script to do some boring housekeeping on my
I want to implement a LocationListener . Checked some tutorials and found this: /**
We want to implement a sitemap.xml feature in out CMS system. There is some
I've got an asp.net page that has c# code-behind that does some stuff in
I want to implement a web text editor able to recognize when the user
I'm developing an blog using ASP.NET , and I want that the user can
I recently ran across this problem while trying to implement a service that has

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.