www.webdeveloper.com
Results 1 to 2 of 2

Thread: struts to jsf

Hybrid View

  1. #1
    Join Date
    Jan 2003
    Location
    PA
    Posts
    1,898

    struts to jsf

    I have an existing struts demo application that I need to convert to jsf. I have a login page, that called and action (login.do) in my struts app, but how do I call this using jsf? Do I need to have this in my faces-config.xml file? Second, in my struts app, I was using custom error messages for errors and I'm not sure how to do this using jsf. Below is the code I used in my struts app to tell the page which error to show:

    Code:
    errors.add("password", new ActionError("login.jsp.password.not.matched"));
    I can give more code for any part of this request.

    Thanks!!

  2. #2
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    I haven't used JSF yet, just seen a little, but my understanding is there are pretty much analogs in JSF for each aspect of Struts. So I suspect there is an XML configuration file like the Struts config where you put the JSF equivalent of each of the Struts action mappings like your login.do.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles