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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:32:13+00:00 2026-05-25T02:32:13+00:00

The entry point to my JSF application is EntryPoint.jsp . We are using JSF

  • 0

The entry point to my JSF application is EntryPoint.jsp. We are using JSF 1.2. The user may call EntryPoint.jsp with a number of different URL parameters. I woud like to parse these parameters, load up a session bean with some state, do all this before the page loads and either continue processing/display EntryPoint.jsp or foward/redirect to another page in the application. Can anyone recommend the best design for this?

I’ve tried in my EntryPoint.java backing bean (exception handling removed):

@PostConstruct
public void init() {
    HttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
    companyName = request.getParameter("companyCode");
    //process parameters...
    if (someCondition) {
        FacesContext.getCurrentInstance().getExternalContext().dispatch("/other.jsp");
        return;
    }
 }

but I get an IllegalStateException: Response already committed.

I’ve also tried

FacesContext.getCurrentInstance().getExternalContext().redirect("/other.jsp");

but also get an IllegalStateException (with no message). Clearly this isn’t the appropiate way or place to do this. Can anyone recommend a better way to achieve what I am looking for?

This post seems to suggest a servlet filter might be a good choice. If so, would the session scope JSF backing bean be available in the servlet filter?

  • 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-25T02:32:14+00:00Added an answer on May 25, 2026 at 2:32 am

    This is indeed not going to work for JSF 1.x. As you found in the other question, a Filter is indeed a more appropriate place for this job. This answer has not been changed since then. A session scoped JSF managed bean is stored in the HttpSession with the managed bean name as session attribute name. So yes, it’s accessible in the Filter. Even more, the Filter could precreate it and put it in the session. JSF will then use it instead of autocreating one.

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

Sidebar

Related Questions

I want to setup a WPF Application. But instead of using the entry point
I'm porting an existing (mostly) cross-platform application to WinCE 4.2. The current entry point
I am getting time out from using JsonpRequestBuilder. The entry point code goes like
I have a DLL which provides an entry point to an ASP.MVC application. Let's
// Sparse Array Assignment.cpp : Defines the entry point for the console application. //
I'm trying to understand an old classic Mac application's entry point. I've disassembled the
// InternalTemplate.cpp : Defines the entry point for the console application. // #include stdafx.h
So I'm using a single entry point found in a previous question of mine:
I have my application entry point like this. /app/index.php <-- this is the main
consider this: // set_iterator.cpp : Defines the entry point for the console application. #include

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.