This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSF and the fly likes difference in: JSP / JSF and how convert JFrame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "difference in: JSP / JSF and how convert JFrame" Watch "difference in: JSP / JSF and how convert JFrame" New topic
Author

difference in: JSP / JSF and how convert JFrame

Miguel Enriquez
Ranch Hand

Joined: Mar 13, 2004
Posts: 87
what is the difference into JSP and JSF when choose JSP and when JSF?

is possible convert JFrame (swing app) to a web app?

thanks
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15629
    
  15

JSP is a simple system where page declarations are compiled to produce servlets. It allows you to define how a web page will look using display tags while still giving a mechanism for creating the page display logic.

JSF is much more complicated. It frequently uses JSP as display option, but JSF separates the logic (Model/Controller) and display (View) more rigorously. The JSF controllers connect to a plug-replaceable render kit, which is usually, though not always, one that generates JSP output.

Swing is based on a true MVC architecture. Nothing that travels over HTTP can implement true MVC, because part of MVC is that when the Model changes, those changes have to be pushed out to the View and HTTP cannot push data, only respond to requests to pull data. So the architecture of a web application is quite a bit different from the architecture of a Swing or AWT application.

Thanks to AJAX, it's now possible to better simulate the immediacy that desktop apps are known for, but there are limits to how far you can go. The only way around that would be to do true client-server, and that means no HTTP and thus it wouldn't operate in a standard web browser.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference in: JSP / JSF and how convert JFrame
 
Similar Threads
Question on JSF
Which reporting and charting framework , library u use for JSF application ?
Accessing bean data within a scriptlet
difference between JSP and JSF?
JSF Form post to external URL