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.

Similar Messages

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

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

  • What is the diff between replication and streams

    Hello,
    Can some one tell me the difference between replication and Oracle streams, When I look into the documentation, it says to use the Oracle EM Console to setup the Replication.But I am not sure how do I download the Oracle EM Console.
    Thanks for all who replies for this.

    Replication is a Neolithic, perhaps Paleolithic, technology that slightly improved replication over what we did back in the days when we lived in caves and spoke only using grunts and hand motions.
    Replication is hard to set up, hard to maintain, and essentially guaranteed to give you full-time employment and loss of hair due to gaps created by transactions that do not replicate correctly and network issues.
    Streams is far from perfect but is vastly superior in terms of flexibility, gap resolution, and performance.
    When looking at Streams also look at Change Data Capture (CDC). If CDC will do the job don't do Streams directly. Use the simplified API.

  • What's the relationship between JSP and Java?

    hi,dear friends here.......^_^ I'm a graphic/web designer,
    cause the needed of internet web design, I started to learn html and Java server page.But I never have experience of JAVA programs. It's kind of hard for me to know and use JSP now.Should i need to learn Java first? Or can anyone tell me what's the good way for me to
    learn JSP?
    I also want to learn how do make a web page as the first page of java.sun.com about "Industry News ".
    Thanks !!grace from Taipei,Taiwan

    Hi! JSPs allow Java code together with HTML in one document. The servlet engine "compiles" a JSP into a servlet prior to executing it. So, one must know Java prior to dealing with JSPs.
    IMVHO, "Thinking In Java" by Bruce Eckel is a very good book for introduction to Java. You can download the electronic version at no charge from http://www.bruceeckel.com.
    After you get a good handle on Java, "Professional Java Server Programming" (Wrox Press) can give you good information on servlets and JSPs, along with some other related topics.
    Hope this helps!
    Cheers!

  • I want to know what exactly the diff between script and smart form?

    wherther script is version dependent?langauge dependent?
    where can we  maintain script styles?

    Hi,
    Script is Language Dependent & Client Dependent.
    U can create styles ie., paragraph format , character format using transaction <b>SE72</b>.
    <b>DIFFERENCE BETWEEN SMARTFORMS AND SAPSCRIPTS ARE:</b>
    1).Smartforms are client independent and Sapscripts are client dependent.
    2).Multiple page formats are possible in smartforms which is not the case in SAPScripts
    3).It is possible to have a smartform without a main window .
    4).Labels cannot be created in smartforms.
    5).Routines can be written in smartforms tool.
    6).Smartforms generates a function module when activated.
    Multiple page formats are possible in SmartForms which is not the case in SAPScripts
    It is possible to have a SmartForm without a main window.
    Labels cannot be created in SmartForms.
    Routines can be written in SmartForms tool.
    SmartForms generates a function module when activated.
    Regards,
    Padmam.

  • What is the diff between OK_CODE and SY-UCOMM

    Dear All,
    I am trying to develop on module pool program using push buttons to pass the data to input/out filed. When I do the debugging the sy-ucomm is showing the data but not OK_CODE in case statement.
    Case OK_CODE.
    When 'one'.
    num = '1'.
    call function 'ZCA_INPUT_OUT'.
    Import
    numz = num
    export
    number = inputi. " input/output field in screen painter
    end case.
    Can you pls give me a solutions what is the main mistake I did here.
    I could not able to pass the data through push button to input/out field.
    Regards,
    Chandra.

    Hi all,
    still I have same problem.
    below is my program code.
    REPORT  ZCA_CALCULATOR_DEMO.
    DATA INPUTI TYPE string.
    Data num type string.
    DATA: OK_CODE TYPE SY-UCOMM,
          save_ok like ok_code.
    call screen '100'.
    INCLUDE ZCA_CALCULATOR_DEMO_STATUS_O03.
    ***INCLUDE ZCA_CALCULATOR_DEMO_STATUS_O03 .
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'GUI100'.
      SET TITLEBAR 'ZCHAR'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    INCLUDE ZCA_CALCULATOR_DEMO_USER_COI01.
    ***INCLUDE ZCA_CALCULATOR_DEMO_USER_COI01 .
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
    save_ok = ok_code.
    clear ok_code.
    CASE save_ok.
        WHEN 'one'.
          num = '1'.
          CALL FUNCTION 'ZCA_CAL_INPUT'
            EXPORTING
              NUM    = num
            IMPORTING
              NUMBER = inputi.
        WHEN 'two'.
          num = '2'.
          CALL FUNCTION 'ZCA_CAL_INPUT'
            EXPORTING
              NUM    = num
            IMPORTING
              NUMBER = inputi.
        WHEN 'three'.
          num = '3'.
          CALL FUNCTION 'ZCA_CAL_INPUT'
            EXPORTING
              NUM    = num
            IMPORTING
              NUMBER = inputi.
    WHEN 'FOUR'.
          num = '4'.
          CALL FUNCTION 'ZCA_CAL_INPUT'
            EXPORTING
              NUM    = num
            IMPORTING
              NUMBER = inputi.
    WHEN 'FIVE'.
          num = '5'.
          CALL FUNCTION 'ZCA_CAL_INPUT'
            EXPORTING
              NUM    = num
            IMPORTING
              NUMBER = inputi.
    WHEN 'SIX'.
          num = '6'.
          CALL FUNCTION 'ZCA_CAL_INPUT'
            EXPORTING
              NUM    = num
            IMPORTING
              NUMBER = inputi.
    WHEN 'SEVEN'.
          num = '7'.
          CALL FUNCTION 'ZCA_CAL_INPUT'
            EXPORTING
              NUM    = num
            IMPORTING
              NUMBER = inputi.
    WHEN 'EIGHT'.
          num = '8'.
          CALL FUNCTION 'ZCA_CAL_INPUT'
            EXPORTING
              NUM    = num
            IMPORTING
              NUMBER = inputi.
    WHEN 'NINE'.
          num = '9'.
          CALL FUNCTION 'ZCA_CAL_INPUT'
            EXPORTING
              NUM    = num
            IMPORTING
              NUMBER = inputi.
    WHEN 'ZERO'.
          num = '0'.
          CALL FUNCTION 'ZCA_CAL_INPUT'
            EXPORTING
              NUM    = num
            IMPORTING
              NUMBER = inputi.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    function zca_cal_input.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(NUM) TYPE  STRING
    *"  EXPORTING
    *"     REFERENCE(NUMBER) TYPE  STRING
    data: nextnum type string,
          currnum type string.
    loop at screen.
    if screen-name = 'inputi'.
    nextnum = num.
    concatenate currnum nextnum into currnum.
    number = currnum.
    endif.
    endloop.
    endfunction.
    this is my entire program code. 
    now I have mention OK_code type ok in screen painter attribute also.
    but still haveing sample problem .......
    can you pls some one will explain what need to be done in this case.
    Regards,
    Chandra V

  • What's the diff between ThreadPoolRuntime and WorkManagerRuntime?

    I'm trying to get a better understanding of the metrics I can retrieve from the JMX MBeans deployed by default. Can someone tell me what the difference is between the only instance of a weblogic.management.runtime.ThreadPoolRuntimeMBean in our managed server and the various weblogic.management.runtime.WorkManagerRuntimeMBean instances for each of our EARs (as well as for weblogic.system.Kernel)?
    Does the ThreadPoolRuntimeMBean represent all of the JVM-level threads that each of the WorkManagers use? If so, would I be safe in assuming that the value of the 'CompletedRequests' attribute on a WorkManagerRuntimeMBean could NEVER be greater than the value of the 'CompletedRequestCount' attribute on the ThreadPoolRuntimeMBean at any given time?
    Using an example, let's say that I have WorkManagerA, WorkManagerB and the weblogic.system.Kernel WorkManager. If I got the following values:
    WorkManagerA.CompletedRequests = 5
    WorkManagerB.CompletedRequests = 6
    WorkManager[weblogic.system.Kernel].CompletedRequests = 4
    then should I have a ThreadPoolRuntimeMBean.CompletedRequestCount >= 15 ?
    Any tutorials would be greatly appreciated.
    Cheers!

    FYI, I have been testing this theory for the past week and my assumption appear to be true.

  • What's the diff between Excluding and Removing?

    The Help docs don't seem to mention this. In Sys Prefs > TM > Options, in the first window you can select a folder and click to remove it from the list. Or you can click which brings up a find window where you can go to a folder or file and Exclude it. Anyone know the difference and if one is preferred over the other?
    You can also Show Invisible Items. If you want to limit your disk usage, should we Exclude things like mach_kernal, private, sbin, tmp, usr, etc?

    Steven Shmerler wrote:
    The Help docs don't seem to mention this. In Sys Prefs > TM > Options, in the first window you can select a folder and click to remove it from the list. Or you can click which brings up a find window where you can go to a folder or file and Exclude it. Anyone know the difference and if one is preferred over the other?
    sorry, don't really understand the question. + is for adding items to the TM exclusion list, - is for removing them from that list.
    You can also Show Invisible Items. If you want to limit your disk usage, should we Exclude things like mach_kernal, private, sbin, tmp, usr, etc?
    you could. when you exclude one system file TM will offer to exclude all system files which includes all the files you mention so you don't have to do it one by one. However, due to incremental nature of TM backups this will save you about 10GB TOTAL on the TM drive. Entirely not worth it IMO given that this will make it impossible to restore your entire system from backups.

  • What is the difference between TECO and Order settlement?

    What is the diff. between TECO and order settlement and what is the use of both?

    Hi,
    Technical completion means ending a production order from a logistical viewpoint. This function is usually used, if the execution of an order has to be stopped prematurely or if the order could not be executed in the required manner and open requirements for the order (reservations, capacities) should be deleted.
    Where as Settlement of an order is carried out periodically to settle the costs related to the order to a settlement receiver.
    for more details read
    http://help.sap.com/saphelp_46b/helpdata/en/a9/ab7422414111d182b10000e829fbfe/frameset.htm
    and
    http://help.sap.com/saphelp_46b/helpdata/en/a3/664a3397e311d1b5a70000e8359890/frameset.htm
    Regards,
    Sumeet

  • What is the difference between thread and task

    hi ,this is guruvulu bojja
    what is the diff between thread and task .
    can u give me the example for distinguish a thread and a task .
    How can i know thread is better than a task .
    please tell me what is the task in o/s level and task.
    <b>how the o/s distinguish a therad and task.</b>

    Hi Guruvulu,
    <b>Threads</b> enhance performance and functionality by allowing a program to efficiently perform multiple <b>tasks</b> simultaneously.
    In the case of <i><b>common memory</b></i> <b>threads</b> naturally have shared data regions while it has to be specially created and initialized for <b>tasks</b>.
    Simply put, a <b>thread</b> is a program's path of execution. It allows execution of two or more sections of a program at the same time.
    Regards,
    Pooja.

  • What is the difference between jsp :include and server side include

    what is the difference between jsp :include and server side include(request dispatcher include method)????
    i understand that both request dispatcher include method and jsp:include take dynamic data,so when would one use request dispatcher include and when jsp:include.
    Is the usage interchangeable?i believe jsp include is used only for jsp/html but include directive can be used to include servlets ,jsp and html....correct me if i m wrong and
    do suggest if u hav ny other diff in this context...

    The difference really is: in what format do you want your inclusions? If your environment has many Java developers and only a few designers that focus mainly on, say, Flash, that might push you more towards the server-side include() directive. Or, if you have a large set of pages that receive dynamic content that is displayed in a consistent fashion (such as a workflow header area on a page).
    If, on the other hand, you have more web designers, there may be a greater desire to deal in markup rather than Java code. Java developers themselves might prefer to view markup (JSP) that more resembles the eventual output than something occuring in Java code.
    Finally, there are considerations of tiering. While it is totally possible to (and I have previously) implement 'view classes' that render markup or generate layout templates, JSP's offer, IMO, a subtle, psychological advantage. By forcing a developer to work in a different format, markup versus Java source, the separation on view from controller and model becomes a bit easier. It is still possible to make mistakes, but if a developer at some point notices, "Wait, I'm in a JSP, should I be importing a java.sql class?", then the choice to use JSP includes has paid off in spades.
    - Saish

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

  • What is the Diff Between tcodes WE19 in XI and WE19 in r/3 sys

    Hi all,
    Can anyone tell me
    What is the Diff Between tcodes WE19 in XI and WE19 in r/3 sys?
    one more question I have a File>XI->IDOC scenario
    the file is picked up from the sender sys
    but not posted the IDOC to the receiver sys
    I need to post that particular record to r/3 sys can any tell me how to post the record.
    Thanks
    Sai.

    SAP PI  alo have ABAP stack part of PI server, so we will have all trasaction codes in PI too(ECC trasaction codes),the use of WE 19 in ECC to reprocess IDoc to external partner system.
    WE 19 tx in PI also same purpose if you are using PI ABAP stack for creating and processing IDoc's,but we never use it.
    You hav to build mapping logic to suppress unwated data and create IDoc in ECC.
    Regards,
    Raj

  • Whats the diff between express and pro??

    Just wondering what the main diff between the two are. I've used pro at school, but cant afford to get it at home. Will i still be able to use the same audio instruments like the same synths and plug ins??? Also, would i be able to run the program on a mac mini (top of the line)?

    Matt Mac 63, "Whats the diff between express and pro??" #5, 10:33pm Oct 18, 2005 CDT
    All I was saying is that if a person can afford to get Pro, they definitely should. The difference in features adds up to at least the difference in price, if not very much more.
    Having said that, Express is good value compared to most other DAW software at that pricepoint, but it is only intended as a 'Lite' version.
    Some examples, off the top of my head, of differences not made really clear in the comparison list.
    Input Objects:
    In Pro you can use Input Objects to monitor incoming signal without rec-enabling a track. That doesn't sound much, on the face of it, but what it means is you can use external FX units (hardware) as inserts in tracks (or busses) just like plugins, and bounce them with the mix. it also means you acn monitor what you are playing into Logic Pro with plugin FX applied, but record dry so you can hear your guitar with the reverb, or whatever, but still have the recorded dry signal so you can change the FX settings later.
    Pro has some very handy environment objects. The main one being the Trabsformer object. But also another extremely useful object is TouchTracks.
    If you've ever played with Ableton Live you would have noticed you can triger clips with the keyboard in all different ways (loop, gate loop, one shot etc.) Well TouchTracks does that with MIDI regions.(I have a feeling that feature in Live was modeled after Logic's TouchTracks' as it is incredibly similar.)
    They are only a few examples of a whole range of differences. If all the differences were itemized in the 'comparison chart' it would be about 3 pages long.
    All I am saying is, don't take the comparison chart as the definitive list of differences.
    yes, Express is a good basic tool and you can do a lot with it, with some imagination.
    The SOS author's claim that:
    you're paying less than a third of the price of Logic Pro and getting over 90 percent of the functionality."
    is not true in totality.
    It may be true to someone who has never dabbled in audio software before, because it takes literally years to become fully conversant with every function in Logic Pro, and no-one uses absolutely everything.
    But for serious users, who have big demands, in my opinion, Express is less than 30% of Pro's functionality.

Maybe you are looking for