Diff betwn JSP 1.0, 1.1 and 2.0

Hi all,
Could anyone ellaborate on the diff between JSP 1.0, 1.1 and 2.0/2.1?
Rgds,
Seetesh

You will find that the conepts or approach is different. The direction appears to be to NOT put java code in the JSP, but rather use EL (expression language) tags to address common functions. You can read about them in various locations around the Internet if you do a google search for them.
The JSTL (JSP standard tag library) is a huge step in the right direction to simpliyfing JSP code. It provides a level of abstraction to the things like XML parsing, XSL transformations, getting access to the "core" request and response contexts in a page and database access. If you are not using that tag library, it will save you TONS of time and is well worth investigating.
You can still use Java code in your pages just as always. It's just the design philosophies have changed a bit. And in some ways, for the better.

Similar Messages

  • What is the diff between jsp and servlet

    is thr any other difference betwwen jsp and servlet, tht: jsp is automatic generated servlet and jsp has different types of tag, due this we have write less amount of code.any other technically difference between these two?

    As you mentioned JSP automatically gets converted into a Servlet and then compiled. From the server's perspective other than the transformation process, there is no real difference.
    However, in coding there are some minor differences such as additional access to pre-defined variables and different syntax for some minor things such as imports and etc.
    Perhaps somebody else more knowledgeable can fill you in further.
    Hope that was helpful.

  • Opening a jsp directly in source view and not design view

    I'm using JDeveloper 10.1.3.0.4, and everytime I double click in Application Navigator onto a .jsp file, it is opened directly into design view. Instead I'd like it to be opened directly into source view. Is it possible ? Thanks.

    In menu Tools -> Preferences...
    Select File Types on the left
    Click tab 'Default Editor'
    Select the File Type (JSP Source in your case) and change the default editor.
    Hope this helps,
    Didier.

  • I want to translate output of JSP from English to HINDI and other language.

    hi frens !!
    i want to translate output of JSP from english to HIndi and other languages.I need the class which could traslate the Output in other languages.
    Thanks and Regards
    Allwyn

    hi frens !!
    i want to translate output of JSP from english to
    HIndi and other languages.I need the class which
    could traslate the Output in other languages.
    Thanks and Regards
    Allwynit looks like your translator is not working correctly. read up on internationalization.

  • Same JSP/Servlet is executing again and again

    Hello,
    We have some JSPs which do a lot of processing and is 'alive' for a long period
    of time. If we use the JSP with small amouts of data, it is fine. But when we
    use the JSP with lot of data, it seems to 'go in a loop'.
    It is processing the data again and again and again and brings down our server.
    We do not think it is the code that is wrong - as it processes perfectly if the
    data is small or when our server is not busy. This problem happens if the data
    is lot and the server is also busy. The JSP seems to be executing again and again.
    Is there some type of 'refresh' logic in weblogic that refreshes the JSP/servlet
    and makes it 'execute' again and again.
    We are using WL 6.1
    Thanks,
    Oleg.

    Hi Oleg,
    Could you tell us how you find out that there is an additional request?
    Regards,
    Slava Imeshev
    "Oleg" <[email protected]> wrote in message
    news:[email protected]...
    >
    Thank you Varad and Slava,
    We don't use plagin for iplanet,
    but our problem is very similar:
    Weblogic generate additional request if the previous request toservlet/jsp is
    taking long time.
    Where I can configure JSP timeout to fix this problem?
    Thank you very much.
    Oleg.
    "Varadharajan" <[email protected]> wrote:
    Hi Oleg,
    Are you using weblogic plugin for iplanet webserver ?
    In weblogic server 6.1 sp3 there is a problem with this plugin. It would
    generate
    additional request if the previous request to servlet/jsp is taking more
    than
    the configurable timeout set in the obj.conf file of iplanet webserver.
    This plugin problem is fixed in wls6.1 sp4.
    Rgds,
    Varad
    "Slava Imeshev" <[email protected]> wrote:
    Hi Oleg,
    See my answers inline.
    "Oleg" <[email protected]> wrote in message
    news:[email protected]...
    Hello,
    We have some JSPs which do a lot of processing and is 'alive' for
    a
    long
    period
    of time. If we use the JSP with small amouts of data, it is fine.But
    when we
    use the JSP with lot of data, it seems to 'go in a loop'.I guess you need to figure out if "seems" really "does".
    It is processing the data again and again and again and brings downour
    server.
    How do you know that a JSP goes into a loop?
    We do not think it is the code that is wrong - as it processes
    perfectly
    if the
    data is small or when our server is not busy. This problem happensif the
    data
    is lot and the server is also busy. The JSP seems to be executingagain
    and again.
    What load is considered to be high/low for you
    application? Are you running a load test?
    Is there some type of 'refresh' logic in weblogic that refreshes
    the
    JSP/servlet
    and makes it 'execute' again and again.Normally Servlet/JSP enters service() method when
    there is an incoming request. It should not be happening
    at JSP's will.
    Regards,
    Slava Imeshev

  • Diff betwn Substitution and Dynamic Variable

    Hi All,
    As I'm new in hyperion planning I'm not able to figure out the difference between Substitution and Dynamic user variable. does anyone have any explanation with an example.. :(

    Hi,
    Substitution variables act as global placeholders for information that changes regularly.
    Each variable has a value assigned to it that can be set and changed centrally on the Analytic Services server at any time. When you are creating a substitution variable it depends on the requirement that variable is going to used for all application and its database or for particulaer apllication and its databases.
    Substitution variables are especially useful when you are developing and reporting on rolling forecasts.
    You can also use substitution variable in web form , business rules.
    Substitution variable is created in Essbase but from 11.1.2.2 we can create substitution variable from workspace.
    There is nothing named as Dynamic User variable. If i am not wrong you are asking about user variable.
    User variables act as filters in data forms, enabling planners to focus only on the members they are interested in, such as departments in a particular division. Before you can associate a user variable with a data form, you must create the user variable.
    User variable can increase performance by helping planners focus on certain members.
    It is available in the File -> New -> User variable. It is also available in the Administration -> Manage -> User Variable.
    Hope this helps.
    Regards
    SST.....
    Edited by: ss1988 on Mar 1, 2013 2:14 AM
    Edited by: ss1988 on Mar 1, 2013 2:16 AM

  • Diff Betwn BW3.5 and BW7.0

    Hi Experts
    Please help me with the differences in the BW3.5 and BW7.0 version
    Thanks
    puneet

    hi puneet,
    Some features of BI 7 are
    1. In Infosets now you can include Infocubes as well.
    2. The Remodeling transaction helps you add new key figure and characteristics and handles historical data as well without much hassle. This is only for info cube.
    3. The BI accelerator (for now only for infocubes) helps in reducing query run time by almost a factor of 10 - 100. This BI accl is a separate box and would cost more. Vendors for these would be HP or IBM.
    4. The monitoring has been imprvoed with a new portal based cockpit. Which means you would need to have an EP guy in ur project for implementing the portal !
    5. Search functionality hass improved!! You can search any object. Not like 3.5
    6. Transformations are in and routines are passe! Yess, you can always revert to the old transactions too.
    check these link's
    http://help.sap.com/saphelp_nw04s/helpdata/en/a4/1be541f321c717e10000000a155106/content.htm
    In this one - check out slides 28-34
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4487dd91-0b01-0010-eba1-bcd64196ec6b
    Check this link to get PDF doc on SAP BI
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5ee3725b-0401-0010-e381-ac323362ce91
    Here is a powerpoint overview with illustrations of the differences between NW2004s (BI 7.0) and BW 3.5.x
    http://csc-studentweb.lrc.edu/swp/Berg/Articles/NW2004s_what_is_new.ppt
    check the presentaion
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46376d-0601-0010-83bf-c4f5f140e3d6
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5ee3725b-0401-0010-e381-ac323362ce91
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46376d-0601-0010-83bf-c4f5f140e3d6
    http://csc-studentweb.lrc.edu/swp/Berg/BB_index_main.htm
    http://csc-studentweb.lrc.edu/swp/Berg/articles/NW2004s_what_is_new.ppt
    Web Blogs & Threads in SDN
    /message/502929#502929 [original link is broken]
    /people/sap.user72/blog/2006/01/27/sap-netweaver-bi-versus-sap-bw-the-sequel
    Follow these links , which will show you what is enhancement of BI7.0 form BW3.5 and also what is new functionalities added in BI7.0 over 3.5
    http://help.sap.com/saphelp_nw2004s/helpdata/en/57/a21f407b402402e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/da/c91b42d10b5633e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/a4/eb1442be645133e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/31/ec1342eb11de2ce10000000a1550b0/frameset.htm
    Hope this helps.
    Regards,
    partha

  • Diff betwn Manual field in Pricing Proc(V/08) and in Condition type Screen

    Hi,
    Can anyone please help me in knowing what is the difference between "Manual" field maintained in Pricing Procedure(V/08) and "Manual" field maintained in V/06.
    Thanks in advance.
    Regards,
    Rianka.

    Hi,
    Let me explain with some cases.
    Case 1:  I need a pricing condition type to get the value from condition records and at the same time user can be able to modify it
    Keep manual indicator in V/06.  There is no need to keep manual indicator at V/08.
    Case 2:  I'm having a manual header condition type for which user will enter the value at document
    Keep it as manual in both the places.
    Case 3:  I'm getting a value from EDI such as customer expected price which should not be edited inside the conditions.
    Keep it as manual in V/08 and restrict manual entry through V/06.
    You dont need to keep access sequence for condition types which are marked as manual in V/08.  It should get value either using routines in Altcalc type or manual entry inside the document by user.  And all the header conditions are set as manual in V/08.  Hope now it clarifies.
    Regards,
    P Gomatheeswaran.

  • Need help in using SQL in a jsp file to compare date and time

    hi every one,
    Actually I am doing a project using JSP. I need to compare a date field in the database (MS Acess) to the current system date and time. I have to do this in a select statement.
    I have alredy defined a variable of type Date in the JSP file and I am comparing this variable to the date in the database through a select statemant.
    Here is what I am doing
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-mm-dd hh:mm:ss");
              java.util.Date today = new java.util.Date();
              String myDate=sdf.format(today);
    query = "SELECT Car_ID, Model_ID, Year, Ext_Color, Price from Cars where EDate <= "+myDate+" ;";
    EDate is the feild in the database and it's format is (5/12/2008 5:29:47 PM) it is of type Date/Time in MS Acess.
    when I execute the query it gives the following error
    SQL error:java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'EDate <= 2008-10-16 08:10:07'.
    I hope any one can help me with that error and answer my question, I've tried too many things but nothing helps
    Thanks in advance :-)

    Hi,
    When the comparision is needed to be done with the current date , we don't need to send in Java
    Date then format it and compare with MS Acess Date.
    In MS Access we have Date() function which will give you the current date.
    So you can try rewriting your query as following :
    query = "SELECT Car_ID, Model_ID, Year, Ext_Color, Price from Cars where EDate <= Date() ;"; ---------------------
    Hope this helps.
    Thanks

  • How to call a jsp file from an servlet and access the jsp file objects??

    Hi everybody
    I have an jsp file where it contains a vector object with some data and I have a servlet that needs to access this vector object . How can my servlet call for this jsp page and get the vector object. ?
    then an applet will be calling this servlet to get some other object created with the data contained within this vector object...so each time Applet ask the servlet for the object the servlet need to call for this jsp page somehow
    My main question is the communication servlet-jsp
    please if u have any clue I will appreciate it
    thanks

    Hi
    There are several ways to share objects between JSPs/Servlets.
    You can share objects by putting them in the request-in which case the objects lifetime is limited by that of the request, Another way is to store them in the session, againg the lifetime is limited by the lifetime of the session. To have objects that have to persistent over the application life-span use the servletContext to store the objects.
    Any good tutorial should help you get started. Please see the link below for a tutorial on Servlets/JSPs
    Note: Local variables in the JSP cannot be shared with other components as their scope is limited to that particular Page/Servlet.
    Link: http://java.sun.com/docs/books/tutorial/servlets/
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun microsystems inc
    http://www.sun.com/developers/support

  • JSP works in IE 7 and Opera 9.1 but not Firefox 2.0

    Hi everyone,
    I have a JSP with a form and a list box. When the user selects a value in the list box the form is submitted:
    <form id="ampForm" method="POST" action="AMPSearch">
        <fieldset>
            <p>
                <label for="amp">
                    Actual Medicinal Product Search Result:
                </label>
                //Here is where I think the problem lies the "onchange" method does not appear to be recognised by Firefox.
                <select size="10" name="amp" onchange="ampForm.submit()" class="listbox">
                    <c:out escapeXml="false" value="${requestScope.ampList}" />
                </select>
                <input type="hidden" name="ampList" value="<c:out escapeXml="true" value="${requestScope.ampList}" />" />
                   </p>
            <p>
                <label for="ampp">
                    Actual Medicianl Product Pack Sizes:
                </label>
                <select size="10" name="ampp" class="listbox">
                    <c:out escapeXml="false" value="${requestScope.amppList}" />
                </select>
            </p>
            <c:if test="${!empty requestScope.amppList}">
                <p>
                    <label for="quantity">
                        Quantity:
                    </label>
                    <input type="text" name="quantity" value="" />
                    <input type="submit" value="Add Order" name="addOrder" />
                </p>
            </c:if>
        </fieldset>
    </form>This all works fine in IE7 and Opera 9.1 and Netscape 8.1 when it is set to display like IE, but not in Firefox 2.0 or when Netscape is set to display like Firefox.
    Does Firefox not recognise the "onchange" method? What should I use instead? Any help would be much appreciated.
    Tom

    Not to worry people, I have done it again.
    For some reason when I post on here a few minutes later I figure the problem out even though I have been struggling with it for ages.
    The form should have had name="ampForm" not id="ampForm". Stupid thing.

  • Diff in IAS 9i Form Service Version  and Developer 6i Rel 2. Version

    Dear all,
    I have noticed that Form Server version which comes with the Oracle 9i Application Server (Forms Service Module) is higher than then Oracle Developer 6i Tool Rel. 2 Form Complier version.
    It Creates a problem, Form which is complied in Developer 6i Rel 2. gives blazzing result when it deployed it on Oracle 9i Form Server because of the version diff.
    Oracle 9i Form Server Version is always higher than Forms Compiler comes with the latest Developer 6i Rel. 2.
    Because of this reason we cannot install Developer 6i Rel. 2 and
    Oracle 9i Application Server with Form Service on the same machine.
    How to solve this.
    Best Regards,
    Darshan Desai

    If you look in metalink, you can get patches for Forms 6i to patch it up to higher levels than rel 2. Any patch from 4 through to 9 will be newer. Choose which patch you want to bring yourself in line with 9iAS. The patch documentation tells you what version it will bring the forms up to.
    Each patch superceeds the last so just pick one and apply it.
    K

  • JSP Documents (JSP pages in XML format) and Namespaces

    I have 1 set of XSLT stylesheets that takes XML and outputs JSP documents.
    This 1 set of XSLT supports numerous clients (customers).
    I have a new customer that uses a new namespace, let's call it "xyz".
    This namespace is the TLD for xyz custom tags.
    So, it would look something like this in the resulting jsp:root tag --> xmlns:xyz = "/xyzTagLib".
    Where /xyzTagLib has a corresponding entry in web.xml that points to the xyz.tld that is delivered in WEB-INF/TLD.
    However, most customers do not have the xyz application installed.
    Thus, I added the exclude-namespace-prefixes="xyz" in the xsl:stylesheet tag to conditionally add the xmlns:xyz only if an xyz tag exists. However, this does not add it to the jsp:root tag, but only to each individual xyz tag in the resulting document.
    However, the resulting JSP does not work in the runtime environment because it does not recognize the xyz tags.
    Is there a known bug with jsp documents declaring namespaces "in line" instead of at the jsp:root level? Is there a way around this?
    Thanks,
    Brian

    Hi Tridib,
    the XML content is stored in the .xml file. You'll have to access it in a way that doesn't cause the XML-to-HTML transformation to take a peek at the format. You could probably do this by accessing the repository in question via WebDAV. If you're on a later SP, you should be able to go to /irj/go/km/docs/ in your browser to access the repository via WebDAV. Otherwise, take a look in the details pane of the folder that contains the .xml file in question. Under properties, there'll be a URL to access the folder via WebDAV.

  • JSP (no java code), taglibs and dynamic list boxes

    Hi,
    Can anyone recommend a few examples of JSPs using Tag Libraries to represent a dynamic dropdown box in a form? We are trying to learn how to incorporate tag libs into our pages so we have no code on the JSPs. We currently have a JSP that uses dynamic dropdowns, but the all the code is in the JSP. Most examples we find use either static data or just output data into a table with taglibs. But our pages use many dropdowns, inputs, etc... for updates and inserts. We are using JSPs, servlets, and tags which will get data from EJB's (stateless and entity). (We are also using WEblogic Server 7.0 if that makes any difference) If you know of some good examples or tutorials that show how to accomplish this, it would GREATLY help us out!!
    Thanks!

    Check out Struts, they have an HTML taglib that does exactly what your talking about. http://jakarta.apache.org/struts

  • Diff in invoice qty. in standard report and z report

    Dear All
    pl. tell me how to find out the difference in between standard report and zreport. In our sales report and in MCTA there is diff in invoice qty. I have updated the LIS still there is diff. pl. help me
    rewards
    nikhil deshpande

    Hi Nikhil
    Check in MB51 by giving the material number and movement type. It will list out all despatch details made delivery document number wise.
    Hope this is useful for you to arrive at a solution.
    Thanks
    G. Lakshmipathi

Maybe you are looking for

  • How do you combine audio and video files?

    I've brought in a video file and an audio file, but can find no way to specify that they are a single source that should be compressed together.  The documentation was of no use.  How do you identify video and audio files as being one source? Thanks!

  • XSL Transformation (XSLProcessor) doesn't work on WebSphere 3.5.4

    XSL-1013: (Error) Error in expression: '/' I have encountered this problem. The problem seems to be the same as running the oraxsl in the command line using java. I tried using jre instead of java and including the -nojit (Disable JIT Compiler) and i

  • Question about htmlLoader.userAgent

    I am working on an app that detects its first run, creates a GUID and stores that in encrypted local store. On subsequent runs it simply retrieves the GUID from the store. My question is, what is the best way to communicate the GUID back to my web se

  • How to get list of Roles assigned to each User

    Hi, I have to create a list containing Roles assigned to each user in xMII 11.5. Need your help ! Thanks in Advance ! Regards, Alok

  • Launching PS CC

    I have downloaded the PS CC and am a new member.  However, the only place I can find the PS CC is in the install/uninstall part of the control panel.  Where can I find it to launch??  It's not in programs etc.