Difference between JSTL and JSF

Hi
I am little bit confuse between JSTL and JSF. can one tell me what is difference between JSTL and JSF ?
Thanks & regards,
Ben

from suns site
The JavaServer Pages Standard Tag Library (JSTL) encapsulates as simple tags the core functionality common to many Web applications. JSTL has support for common, structural tasks such as iteration and conditionals, tags for manipulating XML documents, internationalization tags, and SQL tags.
http://java.sun.com/javaee/javaserverfaces/overview.html

Similar Messages

  • 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.

  • 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 struts and jsf

    hi
    which one you have to prefer and why?
    Please helpon this
    Thanks,
    Vijay

    Hai Vijay.
    Struts is liek dosa and JSF is liek alooparantha.
    okey?Now I'm not making fun of our brown friends here, but
    can someone recast that explanation, using only items
    that can be purchased at a Kentucky Fried Chicken, so
    that I can understand it better?Brown friends? I prefer to think of myself as "melanin-enhanced" and others as "melanin-challenged." Nonetheless, Struts can be thought of a Kentucky Fried Chicken whereas JSF is one pound of fresh, boneless chicken and a bottle of barbeque sauce.
    How's that? ;-)

  • Difference between JSTL and struts

    Hi all...
    I am using struts in project. Some of them using JSTL for create JSP. Wat is advantage of JSTL over STRUTS.
    Is any Extra Functinalities available in JSTL over struts?

    hi,
    yes JSTL has some advantages over Struts tags.
    JSTL tags really help you write 0 scriptlet code.
    Also, the JSTL tags are more readable and easy to understand.
    e.g. <c:if> is much simpler than <logic:equal>
    In fact logic:equla just allow you to compare for equality/inequality. Whereas in c:if you can specify
    any condition just as in any backend language.
    It also facilitates many mathematical operations.
    e.g. consider example, where you want are dispalying list (html table) and you want to use alternate CSS for even and odd row. How can you do it with strutsWITHOUT using scriptlets.
    but with JSTL you can do so,:
    Put the following code inside <logic:iterate> or i'll suggest <c:forEach> tag..:))
    <c:if test="${rowIndex%2 == 0}">
                    <c:set var="cssClass" value="datacelltwo"/>
               </c:if>
               <c:if test="${rowIndex%2 != 0}">
                    <c:set var="cssClass" value="datacellone"/>
               </c:if>
               <c:set var="rowIndex" value="${rowIndex+1}"/>

  • Differnce between jstl and struts

    hi friends
    Can anyone one tell me the difference between struts and jstl.
    Let me know which one is most suitable to use.
    thanks in advance

    Is google not installed on your machine?
    Struts and JSF are both web application development frameworks. Both have advantages/disadvantages. Google around for comparisions. There are many around the internet.
    JSTL is a library of useful custom tags for JSP. It enables you to avoid using scriptlet code in JSPs.
    Struts and JSTL are not mutually exclusive. In fact they work quite well together.
    JSF and JSTL don't play so well together. That may have changed with the JSP2.1 unified expression language, but if you're writing JSF, you normally don't need JSTL tags.
    Cheers,
    evnafets

  • Difference between value and binding ?

    hello
    I am afraid I am not clear on difference between value and binding of a component?
    I will appreciate if you supply an explanation.
    kind regards

    Binding? Aren't you talking about JSF? That term doesn't occur in JSP world.

  • Difference between binding and value

    Hi
    I am new to JSF
    Can you tell me what is the difference between binding and value attribute of a
    JSF component ?
    Many thanks.

    Hi,
    the binding is the component association to a managed bean (or backing bean). This allows you to manipulate the component in Java code stored in a managed bean.
    The value is what the actual component value is.
    Frank

  • What the difference between getRequestMap() and getRequestParameterMap() ?

    ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext();
    Map requestMap = ec.getRequestMap();
    Map requestParameterMap = ec.getRequestParameterMap();
    What the difference between getRequestMap() and getRequestParameterMap() on earth?
    I have read the spec but I did not quite catch it.
    Thanks a lot!

    With the getRequestMap() you are operating with request "attributes". (with the getRequestParameterMap() with parameters)
    See the JSF API:
    http://java.sun.com/j2ee/javaserverfaces/1.1/docs/api/javax/faces/context/ExternalContext.html#getRequestMap()

  • Difference between facelets and jsp xml in Document Type

    I want difference between facelets and jsp in Document Type in JDeveloper 11gR2 (11.1.2)
    Thanks
    Edited by: Amr Ahmed on Jun 8, 2011 7:46 AM

    Let's see.
    Facelets creates a facelets page
    JSP creates a JSP page
    {noformat}:){noformat}
    Facelets is the "official" view language for JSF 2.0
    http://www.realdevelopers.com/blog/development/facelets-vs-jsp should give you some more insight as well.
    John

  • Difference between Null and null?

    What is the difference between null and NULL?
    When is each used?
    Thanks,

    veryConfused wrote:
    There is a null in java, but no NULL. null means no value. However, when assigning value, the following is different:Although the empty String has no special role. Null means, the referential type is not assigned (doesn't refer) to a specific object. The empty String is just another object though, so seeing it or pointing it out as something special when it actually isn't at all (no more special than new Integer(0) or new Object[0]) just adds to the confusion.

  • Difference between GUI_UPLOAD and WS_UPLOAD

    Hi,
    Please make me clear about the difference between GUI_UPLOAD and WS_UPLOAD. In which cases we need to use these modules...??
    Thanks,
    Satish

    I would suggest to always use the GUI_UPLOAD.  I say this because this is the function module which is used in the GUI_UPLOAD method of the class CL_GUI_FRONTEND_SERVICES.   Really, you should probably use the class/method instead of the function module.
      data: filename type string.
      filename = p_file.
      call method cl_gui_frontend_services=>gui_upload
             exporting
                  filename                = filename
                  filetype                = 'ASC'
             changing
                  data_tab                = iflatf
             exceptions
                  file_open_error         = 1
                  file_read_error         = 2
                  no_batch                = 3
                  gui_refuse_filetransfer = 4
                  no_authority            = 6
                  unknown_error           = 7
                  bad_data_format         = 8
                  unknown_dp_error        = 12
                  access_denied           = 13
                  others                  = 17.
    Regards,
    Rich Heilman

  • Difference between char and varchar, also the difference between varchar2

    Hi,
    Can anyone explain me the difference between char and varchar, and also the difference between varchar and varchar2...

    Varchar2 is variable width character data type, so if you define column with width 20 and insert only one character to tis column only, one character will be stored in database. Char is not variable width so when you define column with width 20 and insert one character to this column it will be right padded with 19 spaces to desired length, so you will store 20 characters in the dattabase (follow the example 1). Varchar data type from Oracle 9i is automaticlly promoted to varchar2 (follow example 2)
    Example 1:
    SQL> create table tchar(text1 char(10), text2 varchar2(10))
    2 /
    Table created.
    SQL> insert into tchar values('krystian','krystian')
    2 /
    1 row created.
    SQL> select text1, length(text1), text2, length(text2)
    2 from tchar
    3 /
    TEXT1 LENGTH(TEXT1) TEXT2 LENGTH(TEXT2)
    krystian 10 krystian 8
    Example 2:
    create table tvarchar(text varchar(10))
    SQL> select table_name,column_name,data_type
    2 from user_tab_columns
    3 where table_name = 'TVARCHAR'
    4 /
    TABLE_NAME COLUMN_NAME DATA_TYPE
    TVARCHAR TEXT VARCHAR2
    Best Regards
    Krystian Zieja / mob

  • The difference between Lion and Mountain Lion

    Can some one explain to me the difference between Lion and Mtn Lion? I'm currently 10.6.8 Is it beneficiall for me to upgrade?

    Mountain Lion is an enhanced version of previous OS X and so that is Mavericks.
    About upgrading it all depends on what your needs are and if your hardware supports it.
    System requirements for OS X Lion
    System requirements for OS X Mountain Lion
    OS X Mavericks: System Requirements
    Please check also applications compatibility. From Lion onward, you cannot run PPC application.

  • The difference between N80 and N80IE ?

    What is the difference between M80 and N80ie?

    02-Jan-2007
    07:45 PM
    korngear wrote:
    The Nokia N80 Internet Edition is a new version of this handset with the same hardware as the normal N80. It is due for release in Q4 of 2006 and will be available in Patina Bronze or Pearl Black, and has the following additional software included.
    Yahoo Go! for Mobile
    Flickr
    Some Amazon Branded Software
    'Download!' App management
    Internet Telephone - SIP VOIP Frontend
    WLAN Wizard
    Gizmo VOIP - Gizmo Project VOIP Frontend.
    \\en.wikipedia.org//
    @Korngear
    Thanks.
    Could N80 be upgraded to N80IE?

Maybe you are looking for

  • Java code to perform the erosion operation on the image

    hi friends I want to perform the morphological erosion operation on an image can u help me how to write code for this operation? waiting for your reply....

  • Timeline completely disappearing

    Hello, While animating in Flash CS5 I have had all sorts of strange things happen, which never occurred in CS3 or CS4. Most recently, after drawing an image inside a movieclip symbol, I returned to the root timeline to noticed i had lost my entire ti

  • Nikon D600 Nef files

    Hi, I am unable to read teh NEF files from my Nikon D600 in Elements 9, I have tried installing patches to get this working. I then tried installing a trial of Elements 11 but still no joy Dave

  • Getting data from tables

    Hello All,     I have a scenario where I have two different software systems (SAP and xyz systems), where a intermediate table will be created between the two systems that is shared. Data will be updated by the xyz systems into this shared table. Now

  • Time Machine not recognizing full space available on NAS.

    I recently purchsed and set up an Iomega Storcenter ix4-200d NAS with Time Machine support.  The NAS has 8 TB storage total, with ~4.6 TB available. I have TIme Machine support turned on in the Storcenter, assigned to a folder called "Time-Machine."