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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:43:24+00:00 2026-05-27T07:43:24+00:00

I am used to work in Struts Framework. The things there are pretty straight

  • 0

I am used to work in Struts Framework. The things there are pretty straight forward. The Action classes use the information received from Action Form (which represented a main entity in my project) classes and then they continue their work calling different methods from some Service Classes of some sort.

Now I’m trying to learn JSF but I can’t understand the exact logic which sits behind this framework. I red some tutorials and followed some examples but they all focus on the request processing life cycle and they use managed beans and backing beans (one for each page) which handle validations, database updates and so on. No action handling of any sort.

I red hear in another post that struts is an Action Framework while JSF is a Component Framework but it seems to me that JSF is a little bit more messy than Struts.

Am I missing something in this whole JSF structure?

  • 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-27T07:43:25+00:00Added an answer on May 27, 2026 at 7:43 am

    they use managed beans and backing beans (one for each page) which handle validations, database updates and so on. No action handling of any sort.

    It are those methods which are bound as action attribute of <h:commandLink> and <h:commandButton> which are the real action methods.

    E.g.

    <h:form>
        <h:inputText id="foo" value="#{bean.foo}" required="true" />
        <h:message for="foo" />
        <h:commandButton value="Submit" action="#{bean.submit}" />
    </h:form>
    

    with

    @ManagedBean
    @RequestScoped
    public class Bean {
    
        private String foo;
    
        public void submit() {
            // Here, you're inside the action method!
            // Save foo in DB or something: someService.save(foo);
            // Navigate to a different view if necessary.
        }
    
        // Getter+setter.
    }
    

    Note that validation is supposed to be done by Validator classes, not in action methods.

    See also:

    • Our JSF wiki page
    • Design Patterns web based applications (some info about action vs component based)
    • What are the main disadvantages of Java Server Faces 2.0?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I used to work in a place where a common practice was to use
I am trying to use the struts iterator to write some data from a
I used to work with eclipse for nearly all the languages I need. I'm
I used to work with VWD and now I try to install the new
Cocoa used to work on CS3 with the trick of putting a Cocoa bundle
I used to work in JavaScript a lot and one thing that really bothered
The company I used to work with has two developers working fulltime, and a
I'm used to work with Java where large amounts of examples are available. For
Linus Torvalds used to work for a processor company called Transmeta. The processor they
This code used to work but doesnt any more. i used a breakpoint, and

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.