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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:24:06+00:00 2026-05-23T13:24:06+00:00

I have an unusual requirement for Wicket. I chose Wicket because I will make

  • 0

I have an unusual requirement for Wicket. I chose Wicket because I will make my website design-centric and it’s URL-mounting features are simply the best for SEO. Unfortunatelly, I found a bump.

I want to create a site with different designs for different hosts. This site will have some host aliases (let’s say: “abc.com”, “abc.com.br”, “abc.com.pl”) – all pointing to the same codebase (i.e. the same tomcat host instance). That part is already up and running, thanks to Tomcat and a custom ResourceStreamLocator.

Now, I want different mounts for different hosts. This means “abc.com/page1”, “abc.com.br/pagina1” and “abc.com.pl/strona1” must point to the same “Page1.class” page. Users from “abc.com” cannot see “abc.com/pagina1” or “abc.com/strona1”.

How can I do this “dynamic host-based mount”?

Please notice I’m NOT talking about i18n. I’m using this example because it’s simple to explan.

  • 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-23T13:24:07+00:00Added an answer on May 23, 2026 at 1:24 pm

    Isn’t your solution give you multiple webapp instances backed by the same codebase though? If it is, I don’t think there’s anything you should do.

    I don’t know if there’s an out-of-the-box solution to do this from within a single webapp, but if there isn’t, this is what I’d do.

    The first thing is that for this to work seamlessly you’ll need separate application instances.

    How to achieve this?

    Extend the WicketFilter class (this is the servlet filter that links the servlet container to Wicket). This class has a field called webApplication, which you’ll have to replace with a vhostname-application map. (This also means copying the entire code of the doFilter() method, so it’s not a very neat solution. It’s more of a hack. Anyway)

    This should do the trick, you’ll have one separate application instance per vhost.

    But your session variables will still be shared between the sites, which is a bad idea. (In practice your browser won’t send cookies issued by one vhost to another vhost, but if the session id is put in the url, you can cross vhosts this way.)

    To avoid sessions getting mixed up, you’ll have to change the getFilterConfig() method too, so that it returns a different config to different application instances. (Filter name is the attribute that is used for session variable prefixing.)

    I’m not 100% sure this will work, I haven’t tried it but if you can’t find a better (and more importantly, cleaner) solution, this is your only option.

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

Sidebar

Related Questions

I'm trying to shred XML files that have an unusual layout, because items are
I have a very unusual problem. Am working with python 2.6 to make API
I have an slightly unusual security requirement, and I'm looking for advice on best
I have an unusual thing happening with an RSS presenter I'm trying to make.
I'm working on a ticket system for my website and I have this unusual
I have this unusual requirement from a client, and I am not quite sure
We have the unusual requirement of a multi-step form through GET requests. So, instead
I have an unusual requirement. I have a WPF Datagrid with 5 rows. If
I am new to PostgreSQL. I have a very unusual requirement for a hybrid
I have a requirement to build a slightly unusual data model, but I'm having

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.