File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF and JSP

 
Moniphal Say
Ranch Hand
Posts: 48
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2874
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2874
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Moniphal Say:
So JSF uses JSP as its display tecnology.


Not necessarily. It has its own tag.
 
Fintan Conway
Ranch Hand
Posts: 141
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks alot Fintan and Adeel for your reply .
 
Chris Schalk
author
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 342
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Jim Harris
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic