Differences between JSF & JSP?

Hi tecs,
I m workin on JSF since last 1 month.
Can u tell me some functionality that can only b performed by JSF & cant be done by JSP.
In this 1 month , i realized tht in JSF everything is automatic i.e u do some thing on UI and the changes are automatically reflected in bean & viceversa, v dont have to write any explicit code.
But this can also be done in JSP by writing getters & setters and using getParameter & setParameter.
Can u tell me some strong features of JSF tht cant b implemented any how usinf JSP?
Thnx in advance

I see.
Well, it enforces MVC patterns, where J2EE doesn't.
JSF focusses less on request parameters, and puts a greater emphasis on the backing bean. Which isn't to say that JSF does not use request params, it just covers it up more by pushing those values into the model at the apply request values phase.
Hmm... That's about all I can think of that I would consider "significant". There is of course other things, like the faces-config.xml file, renderers, validators, converters, and components. They are much more streamlined and modular in JSF than in J2EE. In a lot of ways, JSF forces you to follow some good practices when it comes to web development.
Well, I hope that helps a bit. Good luck with your seminar!
CowKing

Similar Messages

  • JDev 1014 JSF: difference between JSF JSP Page and JSF JSP Document ?

    Hi all here ;)
    I've been using the new JDev 1014 for some days now, find it very useful, but still... the help docs are not very helpful in one (minor) point: when you create a new JSF JSP item, you have to select either "JSP Page" or "JSP Document". Now, I see the difference in the created code, but what's the difference in it's usage?
    thanx in advance
    Thomas Nagel

    Thomas,
    there is none. Its just that the document has an XML format and the page is a typical JSP page. Its nothing specific in JDeveloper and just a matter of taste I guess.
    Frank

  • Difference between jsf and jspx

    Hi
    We can develop a adf page in either jsf or jspx. What is the difference between jsf and jspx?
    which is more compatible in adf and why?

    Hi.
    The main difference in the version of JSF you are running on. In JSF 1.2 and lower, you built JSP pages. The JSPX extension means it was a JSP page using XML markup. This was (and still is) the default option in JDeveloper 11gR1.
    JSF pages, introduced in JSF 2.0, use another view declation language called « Facelets ». They are the default in JDeveloper 11gR2 and will be in 12c as well.
    Both standards are compatible with ADF. If you are building a new application, JSF is the way to go as it will offer you more flexibility and represents the best option going forward.
    Best Regards,
    Frédéric Desbiens.

  • Difference between JSF and JPF from WebLogic workshop

    Hi i am new to JSF , currently i am working on JPF and i got a chance to work on JSF..
    I feel that event drivent programming as same as JSF and In JPF.
    Can any body explaine in detail difference between JSF and JPF
    Thanks in Advance
    Suneel.

    JSF is Sun's MVC framework for web applications.
    I've never heard of JPF, so it might not be part of Sun.

  • Difference between JSF API and RI and EL API and EL RI?

    Im just looking into using facelets and in the dependency list I see this:
    JavaServer Faces RI
    The reference implementations of JSF 1.1 and JSF 1.2 are available for use with your
    application
    JavaServer Faces API
    JSF 1.2 API that works with the new EL specification. (Optionally, MyFaces Core API
    could be used.)
    EL API - The stand-alone EL utilized by both JSP and JSF.
    EL RI - The reference implementation that is used by Facelets for handling EL.
    This isnt a question about facelets but more about what the differences are between the JSF API and RI versions and likewise the EL versions.
    Its much appreciated if anyone can explain this for me.
    Jon
    Edited by: JonJackson on Jul 27, 2009 2:29 PM

    Oh, your topic title contradicts (difference between API and RI) with the actual question in the topicstart (difference between the versions).
    If the topic title represents the actual question: the API is the application programming interface, which is just an abstract specification. The RI is the reference implementation, which is the vendor's (in this case Sun) own concrete implementation of the abstract specification. In fact everyone can build an own implementation of the API which might be or not be better than the RI.

  • WLP 7.0.4: Difference between 3 JSP Tags

    hi all
    what is the difference between:
    portlet:createWebflowURL
    portal:createWebflowURL
    webflow:createWebflowURL
    Thanx and Regards
    Nitin

    Hi Vivek,
    Please search before you post any thread, as this is very basic question.
    The answer is, using 3.5 Infopackage you can load data in PSA as well as in target. But using 7.0 Infopackage you can load data only till PSA.
    I don't think there is any other difference than this.
    Regards,
    Durgesh.

  • Sync Performance difference between AWT & JSP MI application

    Hello,
    I would like to know, if there are any performance differences, when I sync from AWT Smart Sync MI application compared to JSP Smart Sync Mi Application?
    Thanks & regards,
    Purnima

    Hi Purnima,
    the sync logic for the MI AWT client and the JSP client is identical, so the performance is expected to be equal.
    During the sync the "sand clock" page is displayed. This is done in the corresponding UI technology and here a slight differnce of resource consumption is there between AWT and JSP (JSP --> Browser rendering, periodic pull;). The resources consumed by this user interaction (processor time, memory) can not be used for inbound data processing etc. and therefore a slight difference in synchronization performance could come up. Though I do not expect recognizable differences (from an end user perspective...) due to this.
    Rgds Thomas

  • Difference between jsf and jsf fragment

    hi all,
    now i am working with layout and menu framework.
    our page have main menu and side menu then in the middle there is main area.
    so far i use dynamic region and jsf fragment for main area.
    because i can only use jsff in dynamic region. So when user click on main menu or side menu, i change dynamically in dynamic region.
    So all of my functional pages become jsff.
    is there any disadvantages for using like this?
    is it anti design patterns?
    With Regards,
    WP

    Hi,
    I am having UI which includes 5 tabs.
    The tabs present separate functionalities and are independent of each other.
    I am not sure, whether to make 5 .jsff fragments and put them into one .jspx or make 5 different .jspx files.
    Please comment on which approach to follow, or any general UI design guidelines to be looked into.
    Thanks !

  • JSF & JSP

    DEAR SIR/MADAM,
    can u tell me what is major difference between jsf & jsp?
    because i need to planning develop web application.
    which is a best for design/deploy/performance.
    i don't know how to choose which one ?
    best regards
    boris

    DEAR SIR/MADAM,
    can u tell me what is major difference between jsf &
    jsp?
    because i need to planning develop web application.
    which is a best for design/deploy/performance.
    i don't know how to choose which one ?JSP is a page description language that enables you to hook up server side java code to the request/response lifecycle of a web page. JSP has an extension facility, called "custom tag libraries", that allows one to write java classes that get exposed to the page author as HTML tags.
    JSF uses the JSP custom tag libraries feature to provide HTML tags that represent UI components which page authors can include in their pages. In addition, JSF many features that go far beyond JSP, such as page navigation and better back end integration.
    Ed

  • What's the difference between *.JSP and *.DO?

    Hi. I'm new to JSP programming and noticed that form actions call something like pageName.do -- what's the difference between the .JSP and .DO? When do you call one vs. the other? Thanks.

    A request including the jsp extension usually refers to a single JSP file on disk that will be loaded and rendered directly.
    A request including the do extension usually refers to a call into a special servlet that will redirect the request to another "controller" class which will in turn do some processing, and then load one or more JSP files to render the response.
    The commonest form of the latter is the usage in the Struts framework. The do extension is not mandatory, it just presents a convenient way to distinguish calls that should be handled by Struts from requests for JSPs and other content that are mostly handled by the container (e.g. Tomcat) directly.

  • Difference between JSP Scopes

    Hey people,
    My name is Lucas Abrao, 22, Brazil. I'm a Java Programmer and now, I'm starting learning JSP. I' ve been having some easy doubts 'cause the books I have boght are a little bit advanced for that. I wanna know if you could tell me the differences between the JSP Scopes Pages. I mean, I wanna know the difference between application, session, request and page scopes and when do I utilize each one of them. Could you give four simple code example with each one of them at work?
    Thanks you all.

    Page Scope is the smallest scope, and is a representation of the PageContext object for your JSP. Each JSP has it's own page scope, so objects in the page scope of one JSP are not accessible to other JSPs. This is sorta like making a private variable in Java.
    Request scope is the next smallest scope, and is represented with the JSP's request object. All JSPs and servlets that share a request share the request scope. For example, if I have a JSP that forwards to another page, and that second page includes a third JSP page, then all three pages are in the same request, and can share objects through the request scope. A special note here, is the response.redirect(), will create a new request, unlike forwards and includes. Also note, a new request is made every time the user gets a new page, be it by clicking a link, a button, or some JavaScript call.
    Session scope is the next lowest scope, represented by an HttpSession object. All requests from the same user are in the same session (unless you or they make it otherwise). Each user has his own session. If you want data to be referred to through multiple pages, after each page is displayed and the user requests a new page, then store the information in the session. Note, in order for sessions ot work, the user must have cookies on, or you must re-write the URLs. Take a look for maintaining sessions for more help on that.
    The widest scope is the application scope, represented by the ServletContext object. All users share the same values of the application scope, as there is only one made for the web application. If you have some static material that all users should be able to access, then put it in the application, but be carefull. Each user will see the changes other users make, and certain threading issues can occur if not handled properly. So application scope is usually best used for Read-Only data.

  • Difference between jsp forward action tag and response.forward()

    hi guys
    i have just started programming using j2ee technology.
    could anyone please tell me what is the difference between the jsp forward action tag and froward method using the response object?

    There really isn't one. The JSP forward tag is a convenience tag for JSP, that uses the response method.

  • What's the difference between jsp and jsf?

    who can tell me what's the difference between jsp and jsf?
    I'm puzzled when I found some of the technology in jsp is so similar to the ones in jsp( javaserver page)

    Hi,
    Find the difference between JSP and JSF
    1. A developer has more control with JSP, but (should) get easier development with JSF
    2. Event handling is done differently in JSP (HTTP) and JSF (Java)
    3. The UI is designed differently (or should be at least) with JSP (markup) and JSF (components).
    4. The end product should also be defined differently - JSP page versus a JSF application.
    Is this the only thing that is need to make a decision for either or? Probably not. There are other pieces that need to be taken in account when deciding which technology to use - tools support, enough components, type of application etc.... At this point there are not enough JSF components (although there are some interesting projects underway - Ajaxfaces, Myfaces, ADF Faces, and WebChart 3d) and enterprise tools support is still limited to a few tools vendor. Looking at our ADF Faces components they are currently available as early access (not production) and demands for these components are stacking up, literally, outside my office doorstep. Although I would love to make them production - now! - it is not a viable solution since we are still checking features and fixing critical bugs.
    All this combined - not enough enterprise level components in production, lacking tools support etc... - leave customers in a vacuum where the decision is either to continue with JSP, since it is mature and has a wide developer base, or move forward with JSF not sure if the support, or the developers will be there. This is particularly sensitive to customers that need to get started now and be production by summer.
    If you are in this vacuum here are some key points promoting JSF:
    1. Fundamental unit is the Component
    2. Built in event and state management
    3. Component sets can be provided by any vendor
    4. Closer to ASP.Net or Swing development
    5. Choice of UI technology
    6. Scale up (rich clients)
    7. Scale down (mobile devices)
    8. Built into J2EE containers in J2EE 5.0 (tentative)

  • Difference between JSP and JSF

    What is the difference between JSP and JSF?
    Is it necessary to learn JSP before starting with JSF?

    JSP is a view technology providing a template to write plain HTML/CSS/JS in. JSP supports Java based taglibs to generate output and/or control the page flow dynamically. A well known example is JSTL. JSP also supports access to backend data with help of EL (Expression Language).
    JSF is a component based MVC framework which provides taglibs for use in JSP, the JSF core tags in <f:xxx> and the JSF HTML tags in <h:xxx>. Those tags generate HTML output and are tied to JSF component tree in the server memory so that the FacesServlet can work on them to gather request parameters, validate/convert them, update the model values (javabean properties), invoke some actions (javabean action methods) and render the response.
    You can use JSF on top of either JSP or Facelets. Facelets is another view technology. JSP is ancient and has its shortcomings when JSF comes into picture. Facelets is designed with JSF in mind and much more well-suited for it and provides great templating/composition capabilities to reuse specific groups of components without the need to wrap them in another custom component (so that you don't duplicate the same code over and over, e.g. label+input+message.

  • Whats the difference between *.jsp and *.jspx

    Hi
    When I create a new jsf page the first step prompts me for the "type". I am wondering what is the difference between JSP Page and JSP Document? Which should I be using? Are there any white papers or documents that explain the advantages of each?
    Also, someone suggested that I use Facelets, has anyone else used these from inside jdeveloper? Any thoughts / tips would be appreciated.
    Thanks
    troy

    JSPX uses an XML doument for you page code - it is the way we recommend you build your page. Makes for cleaner code and easier customization.
    JSP uses HTML with embedded JSF tags in it.

Maybe you are looking for

  • Beats Audio Software and On Screen Volume and Brightness Icons Not Showing

    Hi, I have a HP Envy 6 Ultrabook 6-1010ea, It had to have a new hard drive due to hardware failure and now I have it back I can't find the beats audio symbol and the associated software, also the on screen displays of the volume control and broightne

  • How do I delete my Visa gift card from iTunes?

    So I got a visa giftcard and put it in my iTunes to get some music. But now I have used it all, and it will NOT let me download free apps, or even update apps. It keeps saying "Theres a billing problem with your previous purchase.Please update your p

  • Use iMac as monitor for MacBook Pro

    I have a 15" MacBook Pro and a 21" iMac, both early 2008. I'd like to use the iMac as a second monitor for the MacBook. Is this possible?

  • Deleting main EAN (MEAN-HPEAN = 'X') in retail material master data

    Hello experts, I have a customer (IS Retail) that realized, after data migration from legacy system, that many EAN including the main ones were obsolete or wrong. They asked me to clean all the EANs for a set of items, before deciding the new ones to

  • Re: canon EOS digital camera..

    Transferring pics to imac some pics import and others show up as wrong format on the same import. I also used image photo to transfer to iPhoto same problem.