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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T09:36:55+00:00 2026-05-14T09:36:55+00:00

i want a mechanism in my web app as described below: user will enter

  • 0

i want a mechanism in my web app as described below:

user will enter mydomain.com/CompanyName , depending upon the CompanyNameit will show its logo and its customized page, and i will take that parsed parameter in session again upon each request i will compare the parsed CompanyName and one stored in session , and if they matched then application will show the requested page with user’s data.else it will be redirected to login page.
and the main thing is i want this thing in JSF arch.

i tried taking a servlet that will resolve all request and it will parse and then will dispatch the request to prefered servlet,but problem is it goes in loop as again it resolves to the same controller servlet,

  • 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-14T09:36:56+00:00Added an answer on May 14, 2026 at 9:36 am

    You can do this via a phase listener. You can define a global one in faces-config.xml (or using annotations, if JSF 2.0 is used)

    <lifecycle>
        <phase-listener>com.yourcompany.CompanyPhaseListener</phase-listener>
    </lifecycle>
    

    There you have access to the FacesContext, from which you can obtain the current request URI. Parse it and store the appropriate attributes in the request, which you can later read on your pages.

    The phase listener is executed on the specified phase(s), and perhaps you should choose RENDER_RESPONSE

    For affecting the way your URLs appear in the browser, check PrettyFaces.

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

Sidebar

Related Questions

We want to implement a overload mechanism on our axis Web Service. Basically we
I want to use blob-leasing mechanism in my Windows Azure cloud app. I am
I want to create an iphone app where the back-end will be supported through
I'm trying to design the exception handling mechanism in my web app, and got
I am using the Asp.Net Caching mechanism for a highly frequent changing web app.
I have the run-of-the-mill login-based PHPSESSID mechanism implemented for my web app. One aspect
I'd created my first web app using Ruby on Rails. And now, I want
I want to implement Find mechanism (like text editors or word) in my JTextPane.
I want to understand how the mechanism of Shadowing and Nested function work. For
i want to implement a dynamic relation mechanism with python something like: a:=10 b:=30

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.