File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Migrating my app to JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Migrating my app to JSF" Watch "Migrating my app to JSF" New topic
Author

Migrating my app to JSF

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Hey folks.
I am fresh at frameworks like JSF and I have some questions :
I have developed a simple web application based upon MVC , a controller
constructs a bean which in turn gets some data from the database and puts the data in the request scope, then the controller forwards the request to a JSP page which retrieve the data from the scope and prints the values.
I want to use JSF instead of creating my own MVC framework.
but the problem is how can I create the bean then forward the request to the JSP page ?
it seems to me that JSF is only useful for HTML forms that needs navigations rules, right ?
any ideas how to migrate my application to JSF ?
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
I'n don't know how to use JSF, but i have some tutorial of JSF.

It's will help you.

Reference Website
http://www.javaranch.com/newsletter/200404/Journal200404.jsp#a3

http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSFIntro.html


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
James Holmes
Author
Ranch Hand

Joined: Jan 06, 2004
Posts: 64
Hi John,

I've compiled an extensive set of links to information on working JavaServer Faces. You can find everything you will need to get up to speed including articles, presentations, tutorials, and software.

http://www.jamesholmes.com/JavaServerFaces/

Also you may want to peruse the Sun JavaServer Faces Forum. It is the official forum for JSF related questions.

http://forum.java.sun.com/forum.jsp?forum=427

-James
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3476

Thanks alot.
can I migrate my application to JSF, coz it seems to me that JSF is only deal with forms, correct me if I am wrong.
John Carnell
Author
Ranch Hand

Joined: Sep 27, 2002
Posts: 71
Hi John,

If you want my two cents :,) Dave Geary has put out a great book on JSF called "Core JavaServer Faces." Its very well written and has an entire chapter on integrating Struts and JSF.

Thanks,
John


John Carnell<br />Principal Architect<br /> <br />Netchange, LLC<br />1161 HillCrest Heights<br />Green Bay, WI 54313<br /> <br />john.carnell@netchange.us<br /> <br /> <br />Author of <a href="http://www.amazon.com/exec/obidos/ASIN/159059228X/ref=jranch-20" target="_blank" rel="nofollow">Pro Jakarta Struts, Second Edition</a>
John Carnell
Author
Ranch Hand

Joined: Sep 27, 2002
Posts: 71
Hi James,

I did not realize you were the same guy who wrote the Struts: A Complete Reference. I was looking through at Barnes and Noble. Congratulations on the book, I know how much work they are to write .

Thanks,
John
James Holmes
Author
Ranch Hand

Joined: Jan 06, 2004
Posts: 64
Thanks John and congratulations to you too on the new book.

-James
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by John Carnell:
I did not realize you were the same guy who wrote the Struts: A Complete Reference.

Yeah, we do have a number of authors as regulars here at the 'ranch...
So many, in fact, that we've created a place for them to socialize


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
Don't get me started about those stupid light bulbs.
 
subject: Migrating my app to JSF
 
Similar Threads
Can JSF do this for me ?
How to make MVC controller servlet the "default page"
Need to understand the Request Scope
JSF Mental Block
MVC