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

Similar Messages

  • 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}"/>

  • Basic differnce between 000 and 001 clients.

    what is the basic differnce between 000 and 001 clients?
    why do we use client 000 as source client while client copy?

    Hi Kumar
    The basic difference between Client 000 and Client 001 is that Client 000 is client independent instace while Client 001 is Client dependent.
    Client 000 is SAP source client while Client 001 doesn't exits for every installation.
    Regards
    Shashank

  • 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

  • Differnce between unicode and non unicode

    Hi every body i want to differnce  between unicode and non unicode and for what purposes this ulities are used explain me little brief what is t code for that , how to checj version, how to convert uni to non uni ?
    Advance Thanks
    Vishnuprasad.G

    Hello Vishnu,
    before Release 6.10, SAP software only used codes where every character is displayed by one byte, therefore character sets like these are also called single-byte codepages. However, every one of these character sets is only suitable for a limited number of languages.
    Problems arise if you try to work with texts written in different incompatible character sets in one central system. If, for example, a system only has a West European character set, other characters cannot be correctly processed.
    As of 6.10, to resolve these issues, SAP has introduced Unicode. Each character is generally mapped using 2 bytes and this offers a maximum of 65 536 bit combinations.
    Thus, a Unicode-compatible ABAP program is one where all Unicode checks are in effect. Such programs return the same results in UC systems as in non-UC systems. To perform the relevant syntax checks, you must activate the "UC checks" flag in the screens of the program and class attributes.
    With TC: /nUCCHECH you can check a program set for a syntax errors in UC environment.
    Bye,
    Peter

  • Differnce between portal and collaboration

    Hi All
    What is differnce between portal and collaboration & uses as well?
    Thanks in advance
    Raja.S

    Periodic billing is used when you want to bill the customer at different points of time based on the periodicity or progress of the work. Milestone billing can be used for this type of billing purposes when you want to have billing control from the project.
    Resource billing is based on the resource consumption for the particular activities. Dynamic Item Processor (DIP) profile is used for the resource related billing.
    Further information acn be had from the link
    [http://help.sap.com/saphelp_47x200/helpdata/en/aa/96853478616434e10000009b38f83b/frameset.htm]
    Hope this is of some help
    Venu

  • Differnce between MMPV and OB52

    Wat is the differnce between OB52 and MMPV,
    Thanks
    Ramki

    Hi Ramki,
    This question has been answered already in several threads before.
    Please use the search before posting new threads.
    Hi Priyanka,
    Sam has already answered the question.
    Why are you replying with same answer and requesting points for that please do not do that.
    Thank you

  • Differnce Between /n and /BEND

    Hi,
    Differnce Between /n and /BEND?
    thanks and regards
    sarath

    Hi ,
    /n ends the particular transaction .
    /bend -  This means batch end .
                 This comes only in BDC concept .This is where you transfer data from the legacy system to sap R/3 system .When you are performing recording process and you dont want to continue any more you give /bend .

  • Differnce between periodic and Resourse billing.

    Differnce between periodic and Resourse billing, and how to do it in sap?..
    Can anyone suggest me step wise
    Thanks in advance

    Periodic billing is used when you want to bill the customer at different points of time based on the periodicity or progress of the work. Milestone billing can be used for this type of billing purposes when you want to have billing control from the project.
    Resource billing is based on the resource consumption for the particular activities. Dynamic Item Processor (DIP) profile is used for the resource related billing.
    Further information acn be had from the link
    [http://help.sap.com/saphelp_47x200/helpdata/en/aa/96853478616434e10000009b38f83b/frameset.htm]
    Hope this is of some help
    Venu

  • Juggle between jstl and jsp!

    I have a list of items and whose size is obtained by jstl as follows:
    <c:set var="num" value="${fn:length(form.namesList)}"/>I have to find the number of blocks using jsp and I am trying as follows which is giving jspException.
    <%int numCols = (int)Math.ceil( num / 10.0);%>Can anyone tell me the problem over here?
    I need to use numCols to display my results using jstl as follows:
    <c:forEach var="y" begin="${1}" end="${numCols }">
    </c:forEach>Can juggle between jstl and jsp like this?

    This depends on the version of JSP you are using:
    If you are using JSP 2.0 (like Tomcat 5), make sure you have downloaded and installed JSTL 1.1 and set the web.xml up to use the Servlet 2.4 specs. Then the code you wrote should work.
    If you are using JSP 1.x (like Tomcat 4 and below), make sure you have JSTL 1.0. Then you can only use EL (the Expression Language used to translate ${...} expressions) inside JSTL.
    If you want to use EL inside your custome tags, look through the Apache Jakarta sight. Somewhere they have an ELExpression translator (a couple of classes actually - whose full names I forget). These classes will let you take the ${...} expressions in as strings, pass them through the translators and get the correct objects back out.
    Or you could go a simpler root:
    <mob:whatever object="test" name="newname" />
    then in your custom tag:
      MyType test = (MyType)pageContext.findAttribute(object);
      test.setName(name);

  • Difference between MVC2 and Struts

    hi,
    can anyone tell me the difference between MVC2 and struts.
    pl tell me what has been eliminated in struts. and what has been added in struts etc..
    thanks
    ram

    hi,
    can anyone tell me the difference between MVC2 and
    struts.What is the difference between a Skyscraper and the Empire State Building?
    >
    pl tell me what has been eliminated in struts. and
    what has been added in struts etc..Please look up the Struts web page and read their documentation
    >
    thanks
    ram

  • What's the replationship of JSTL and Struts

    I found the JSTL and Struts are similar,both provied some defined tag libaray,is JSTL defined base on Struts?

    The two were developed somewhat independently of each other, and duplicate a lot of functionality. It's probably a "Good Thing"(&#0153;) to use JSTL where possible in order to promote future use.

  • Differnce Between OBIEE and BO And Cognos

    Hi experts.
    I would like to know the differnce between OBIEE , BO And Cognos. Is there is any white paper regarding this.
    Thanks in advance
    Regards
    Frnds

    Hi Friend ;)
    Check out this.. http://www.forumtopics.com/busobj/viewtopic.php?p=543325&sid=21c3e9a1b9dd85679d5e51c335b8a74e
    also http://oracle.ittoolbox.com/groups/strategy-planning/oracle-projectmanagement/what-is-obiee-1681803
    Thanks & Regards
    Kishore Guggilla
    Edited by: Kishore Guggilla on Nov 20, 2008 11:52 AM

  • STO DIFFERNCE BETWEEN UB AND NB

    HI all
    can someone plz tell me the differnces between po type NB and UB
    and y do we use UB for Intra Company and NB for Intercompany
    where exactly is the contrl\ol
    olz clarify

    hi
    UB: If the supplying plant and Receiving Plant belong to the same company code. then we use UB document type.
    If you use own document type you should ensure transport control field.
    NB : If the Supplying plant and Receiving plant belong to different company code then use document type NB.
    difference : IF the company need billing document for stock transfer use NB document.
    else use  UB document for the stock transfer  . 
    regards
    murali

  • Differnce between exception_init and init_exception

    I have declared an usernamed exception and wanted to call...
    I came to know that these can be called by using two of the below -
    Pragma Exception_init
    Pragma Init_Exception
    What is the differnce between[b] exception_init and init_exception ? And where they can be used ?
    awating for your rresponse ..!

    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0:
    SQL>declare
      2     my_exception exception;
      3     pragma exception_init(my_exception, -20101);
      4  begin
      5     raise my_exception;
      6  exception
      7     when my_exception then
      8        dbms_output.put_line(sqlerrm);
      9  end;
    10  /
    ORA-20101:
    PL/SQL procedure successfully completed.
    SQL>declare
      2     my_exception exception;
      3     pragma init_exception(my_exception, -20101);
      4  begin
      5     raise my_exception;
      6  exception
      7     when my_exception then
      8        dbms_output.put_line(sqlerrm);
      9  end;
    10  /
       pragma init_exception(my_exception, -20101);
    ERROR at line 3:
    ORA-06550: line 3, column 11:
    PLS-00127: Pragma INIT_EXCEPTION is not a supported pragma

Maybe you are looking for