aspose file tools*
The moose likes JSF and the fly likes JSF and JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF and JSP" Watch "JSF and JSP" New topic
Author

JSF and JSP

Moniphal Say
Ranch Hand

Joined: Aug 11, 2004
Posts: 48
Dear author(s),

I'm quite new to JSF, I've used to work with JSP with other technologies such as Servlets and EJB with framework Struts.
Could you tell the differences between the two (JSF and JSF)?
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by Moniphal Say:
Could you tell the differences between the two (JSF and JSF)?


These two are exactly same. Its quite visible.

I guess you asking the difference b/w JSF and JSP. So, there is no comparison between these two because JSF is a framework like Struts, Spring, Tapestry, etc. whereas JSP is a server-side technology. Hope this will clear your doubt.
Moniphal Say
Ranch Hand

Joined: Aug 11, 2004
Posts: 48
Originally posted by Adeel :
These two are exactly same. Its quite visible.


I'm sorry, it was typing mistake .

Thanks alot for your prompt reply, it's cleared my doubt. So JSF uses JSP as its display tecnology.
[ September 12, 2006: Message edited by: Moniphal Say ]
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by Moniphal Say:
So JSF uses JSP as its display tecnology.


Not necessarily. It has its own tag.
Fintan Conway
Ranch Hand

Joined: Apr 03, 2002
Posts: 141
Originally posted by Moniphal Say:

So JSF uses JSP as its display tecnology.



Hi Moniphal,

JSF can use a number of display technologies (JSP or WML or xHTML or ...). One major advantage of JSF is that the display technology is pluggable. You can plug a different render kit into the same page to change its display from html to wml, i.e. the page itself remains coded the same, but way that page is converted to a display has changed.

HTH,

Fintan
Moniphal Say
Ranch Hand

Joined: Aug 11, 2004
Posts: 48
Thanks alot Fintan and Adeel for your reply .
Chris Schalk
author
Ranch Hand

Joined: Aug 31, 2006
Posts: 62
Fintan,

You got it exactly right. Chapter 10 provides examples on how to build custom components that generate markup other than HTML.. It shows how to build a WML inputdate component as well as an SVG chart example..

-Chris
Anthony Karta
Ranch Hand

Joined: Aug 09, 2004
Posts: 342
Originally posted by Moniphal Say:


I'm sorry, it was typing mistake .

Thanks alot for your prompt reply, it's cleared my doubt. So JSF uses JSP as its display tecnology.

[ September 12, 2006: Message edited by: Moniphal Say ]


Does that mean we don't need to use (know/understand) JSP at all for JSF-based application?


SCJP 5
Jim Harris
Greenhorn

Joined: Jan 10, 2005
Posts: 10
Here's an example:

Using IBM Rational Software Architect, a large, very capable and quite expensive Plug-In to Eclipse providing GUI JSF development (and much more) capability, I have built an entire JSF application, with Oracle back-end, without ever _seeing_ even a single line of code, let alone writing one, and not knowing or caring how it displays anything. I haven't the foggiest of notions how it does anything, though I know (from my expert associates) that it generates absolutely standard JSF.

The application works perfectly, though I have not put any security/login process in it.

I took me a while to learn how to do this, but now I can build such an application, with three or four screens, pretty much from scratch in a day or so, and it's both stable and maintainable.

IHTH

Jim


I'm slow but I'm good.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF and JSP