Confused what exactly Java Servlets are?

Hi,
I(JSP Biginner) have gone through some tutorials about JSP, Servlet and Java bean.
I'm really confused by the term SERVLET.
There are a lot of the definitions:
1.) Is a Java Class that provides special Server Side Specification.
2.) A servlet is a dynamically loaded module that services requests from a Web server.
From above mentioned definition, my understanding is, SerVlet is like an engine which is provided server service. Is the SERVLET that I mentioned same as the JSP Servlet Engine which parse the JSP file, generate and compile the servlet source code and then send it to the browser?????
3.)What about the SERVLET that created by developer and use in the JSP page? what are the differents between the servlet 1,2 and 3.
Please advice!

thanks so much...
guess I have better understand of what java servlet is when I read the article from
http://www.novocode.com/doc/servlet-essentials/
from my understanding:
1.) we said that SerVlet Provides Request and Response services is because the purpose of we creating our servlet is used to Read (Request) the data from Client and Send back (Response) the data to the Client. Of course all this can be done by code in the JSP page, but because of SerVlet technology, instead of we write the long code in the JSP page, we can modularise our code by creating servlet, why?? as servlets are web components, they can be reused easily. Moreover, java servlet is platform independent. After that at our JSP page, we just call the servlet we have created.
2.)As we can see from all the example, a SerVlet sure has
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
Are all of them only available when we installed our Web Server (i.e tomcat)???
3.)Can I say that we create servlets by Inherit all the routines and structure in those classes (q.2), as well as use their Built-In functions to create our servlets???
4.) Can I say that we create servlet by create an instance of a BIG SERVLET which served as a base (Which has all the classes we needes for creating our own servlets)
I don't know how much you can understand what I'm writting. Anyway, hope u can help.
Thanks so much.

Similar Messages

  • What exactly is wrong with iMovie 08?

    Hi there,
    I'm about to buy a new Mac Pro (first new computer since 2001... needless to say I'm very excited!) But I've been reading various threads about the new iLife and it seems that users are not at all happy with iMovie. Can someone tell me what exactly the complaints are? I plan to use my new computer for a lot of video editing (home videos, not professional use) - and I'd like to know what I'm getting myself into. I've played around a little bit with iMovie 07, and despite the fact that it's annoyingly slow thanks to my old computer, I haven't really had any issues with form or function.
    Thanks a lot,
    Mardie

    Hi
    No there is just one MAJOR Fault. It's NAME. It's nothing alike iMovie 1 to 6.
    So if APPLE just given it a proper name all this pro resp. cons would never occured.
    iMovie LE, iYouTube, iVideo or whatever just not to be mistaken for an upgrade of iMovie 1 to 6.
    It is not.
    BUT - It has some real nice features that would give Apple huge appreciation if
    it appeared in the iMovie 1 to 6 suite.
    The problem when believing it to be a futher version of iMovie is that You might
    get the idea to do eg a DVD from Your material or something more elaborate than in
    iMovie HD 6. Not so.
    But to publish on the net - GREAT !
    Apple has understood this and reacted:
    • iMovie HD 6 (6.0.4) is free as a download from Apple for iLife08 owners
    • The new version of FinalCut Express is price reduced by 33%
    I think that this is a very good reaction. My sincere hope is for a future
    development of iMovie HD 6 whom we love. Probably the most creativity expanding
    product ever made by Apple.
    Yours Bengt W

  • I am confused about Icloud. I have a 5 year old Macbook, a 2 year old macbook and a 5 year old mac mini. What exactly do I need to do to get all this connected via Icloud. I also have an Iphone 3G. Help please!

    I am confused about Icloud. I have a 5 year old Macbook, a 2 year old macbook and a 5 year old mac mini. What exactly do I need to do to get all this connected via Icloud. I also have an Iphone 3G. Help please! Also, I still don't understand exactly what the benefits are. At the moment it seems a lot of hassle to change a system that's been working perfectly well and that I'm very happy with. I'm not at all sure whether the mac mini (1.66 GHz INtel Core Duo) can be brought up to the relevant spec to run ICloud.  Any thoughts?

    There are two aspects to iCloud.  One is simply getting an account, or migrating a mobileme account to iCloud.  The second part is using the various features of iCloud to sync contacts, calendars, use music match or photo sharing, and store iWorks documents.
    First to get an iCloud account:
    If you have a mobileme account, you can migrate by simply logging onto www.icloud.com (ignore any references to Lion and just click through to complete the migration).  If you have OS X Lion or an iOS 5 mobile device, you can create an iCloud account on that device using any valid AppleID.
    Once you have an account, you can use JUST the mail account if you wishi - it is a standard IMAP account so you would set it up like any other IMAP email account you have, in whatever client program you use to read email.
    To use the OTHER feautes of iCloud, your computers will have to be running OS X Lion (10.7).  Your iPhone 3G will never be able to use iCloud as it cannot run iOS 5 (you need a min. of an iPhone 3GS to run iOS 5).
    The requirements for OS X Lion are here - http://www.apple.com/macosx/specs.html  You need a min. of a Core 2 duo processor so you mini is not capable of running Lion.
    So, in your case, the single reasons for iCloud would be if you have a mobileme account, then use the online www.icloud.com to migrate your account so you do not lose your @me.com email address.  You can use iCloud email (without using any other iCloud features) by setting it up as IMAP mail with these settings - http://support.apple.com/kb/HT4864
    If you want an iCloud account and do NOT already have a mobileme account, you will need to upgrade one machine at least to Lion in order to be able to create an iCloud account.

  • Confused. So a new mac came out? what exactly is the migration about?

    Ok so I havent been to the apple site in forever and I c that they came out with a new mac, so do the old ones need any updates or new parts?? Im confused. What is the whole migration about? I havent done anything to my macpro since I bought it last christmas.

    Hey Amanda, and Welcome to Apple Discussions.
    Great to see another Okie in here...
    What exactly are you refereeing to when you say "What is the migration about"?
    The prev responses are correct in the fact that you don't need any new parts for your Mac. Occasionally about every six months Apple as other manufactures will release a great new product that will make people water at the mouth forcing them to give in to the over powering urge to spend money, that's what they're all about... making money. Your Mac-Pro or (you probably meant Macbook Pro) will last you many years with the OS and hardware it has, but as tjk said you need to perform the Apple Software updates from time to time (the Mac is defaulted to update automatically) to ensure you have the latest and greatest software for the OS you are running.

  • Help -Confused -- WHAT Trial CE version to download (JAVA stack)

    Hi all
    I'm totally confused by the JAVA CE environment download options -- CE 7.1 with SP xxx , with EHP, the new CE 7.2 etc etc.
    All I want to do initially is trial out some JAVA web dynpro and java develpments on a stand alone laptop.
    What version do I need to download and get running. I also would need the eclipse Netweaver Development studio.
    All the install docs I've seen are a bit complex to follow and seem to want to connect this stuff to central servers. I really want to be able to test on a LOCAL stand alone workstation.
    I can connect to an ABAP server if I need to as I have the latest ABAP trial running fine on a Virtual Machine. I don't have any trouble running a number of virtual machines.
    So can somebody more knowlegeable than myself please guide me to UNDERSTANDABLE documentation
    1) What do I actually need to download
    2) How do I install it (all pieces - both server and Developer studio)
    3) PLEASE -- BECAUSE THIS IS ALWAYS THE MISSING PIECE -- WHAT DO I DO NEXT TO DEVELOP AND TEST A JAVA WEB DYNPRO ON THE WORKSTATION USING THE SOFTWARE I'VE DOWNLOADED AND INSTALLED.
    The ABAP stuff was fine  but I really want to try my hand at JAVA developments now.
    Cheers
    jimbo

    Download Java 6, the current version. Some of the stuff you mention is not part of that - you'll need to get that from the appropriate 3rd-party source.

  • What jar cover's java.servlet???

    I've messed with servlets before but now am stuck. If I bring in servlet.jar or any jar's from javaEE into my compiler's class path it see's the javax.servlet package but not the java.servlet package. Which jar file do I need to see and compile the java.servlet package?

    There is no standard java.servlet package, the only servlet package is the one that comes with J2EE, so what exactly is your problem? Also with the command:
    jar tf your_jar.jar you can see the contents of every jar file.

  • Third Party Applications? What exactly are they?

    Right,
    I've read alot about the Blue Screen that appears when Upgrading to OSX Leopard. I am intending on upgrading tomorrow when my external hard drive arrives so I can Clone my 10.4.11 onto the external hard drive and upgrade the cloned version first but would like to know if I can check in advance for any of these' Third party App's'? and what exactly are they?
    Regards,

    A third party application is anything not made by Apple. It can also include products that Apple purchased fairly recently (some of those "Pro" apps) that weren't coded to Apple's specfications and haven't been well tested. Apple doesn't and shouldn't test their software with third party applications. It isn't their job to test other people's software. They probably make exceptions for things like Office and Photoshop, but that is a short list.
    Most third party applications will be fine. The ones you have to worry about are those that ask for your password when you install them. They can then install any sort of incompatible software.
    After you clone your hard drive, verify that you can boot from the external drive and all your data is there. If so, don't upgrade the external drive. Boot using the 10.5 DVD and immediately run Disk Utility and re-partition your internal hard drive to wipe it out completely. Then install Leopard. Do not use Migration Assistant. Re-install all your 3rd party applications that are 10.5 compatible. Be very careful about copying over from backup anything in a Library/Preferences folder. You can copy any preference file from a third party application back over - those are safe. Anything from Apple may have been upgraded. Only copy over the Apple files that you absolutely have to, such as your Mail folder and Address book file, for example.
    It sounds like a lot of work but it will only take a couple of hours.

  • What exactly are the updates good for on an ipod

    I ask because mine is windows format, and im having trouble transferring all the metadata off my ipod with senuti to a back up so that i can reformat the ipod to mac and then sync in my senuti backed up library. I was wondering if anyone knows what exactly are the updates that you get. my ipod is 1.2 5thgen.
    If i were to have the latest update would i be able to see album cover art view when the ipod is plugged into itunes? I noticed that i can see that view in library mode but not in ipod mode. (my pod isnt synced)...
    so what are these updates good for?

    hey thanks for your reply.
    I do have it set to manual and i can see the art on the ipod by itself, but even with manual transfer itunes wont let me view the artwork modes unless i am playing off my computers library (which doesn't have the songs on my ipod on it). I called apple earlier today and some tech support guy claimed that itunes does not support this feature. Is this correct? can anyone out there see artwork modes on an unsynced ipod through itunes?

  • What, exactly, are 'encoded assets'? Why does removing them resolve problems? How can they be avoided in the first place?

    What, exactly, are 'encoded assets'? Why does removing them resolve problems? How can they be avoided in the first place?

    As I understand it, encoding fomats your digital video clips and photos (assets) into Standard DVD mp2 format so that it can be burned to a DVD.  If there has been an error in the encoding process, then you remove the old encoded assets and start over.  There are numberous reasons why there can be errors in the encoding process. 

  • What exactly ARE the .pkg files that collect in the 'Receipts' folder?

    Hi there all.
    Those .pkg files that collect in HDD>Library>Receipts. What exactly ARE these packages for? How do they tie in with Disk Utility's 'Repair permissions' option? Why do we need to keep them?
    It's all Unix to me ;0)

    I used to delete .pkg files after I'd installed an application. I thought i was just the electronic equivalent of throwing away the empty box after I'd bought something.
    The "cardboard box" icon encouraged me to think that.
    Then someone said you should never throw away those.pkg files.
    So I stopped.
    But the only thing that has ever happened is that during permissions repair, I get a few lines here and there that say "could not repair permissions".
    I have experienced no other problems of any kind over about the last 2 years. All applications running normally, nothing weird happening.

  • What exactly are unscaledWidth and unscaledHeight in mobile item renderers?

    Hello,
    What exactly are unscaledWidth and unscaledHeight that get passed to the measure() method for a mobile item renderer?
    I am guessing renderers start at  "default" width and height (so unscaled) which get scaled based on DPI. Is that it?
    Thank you.

    measure() doesn't take any parameters so I assume you mean the layoutContents() and/or drawBackground() methods.
    If you look at the code in LabelItemRenderer (and MobileSkin) for updateDisplayList() you'll see that it just delegates the work to the drawBackground() and layoutContents() methods:
        override protected function updateDisplayList(unscaledWidth:Number,
                                                      unscaledHeight:Number):void
            // clear the graphics before calling super.updateDisplayList()
            graphics.clear();
            super.updateDisplayList(unscaledWidth, unscaledHeight);
            drawBackground(unscaledWidth, unscaledHeight);
            layoutContents(unscaledWidth, unscaledHeight);
    This was done to make it a little bit easier for people to subclass LabelItemRenderer/IconItemRenderer by breaking the positioning logic apart from drawing the background visuals.  Check out the documentation for UIComponent.updateDisplayList and look around on Google for more information on how updateDisplayList fits into the Flex component life cycle.

  • What exactly are bezels when referring to the ipad?

    What exactly are bezels when referring to the ipad?

    In what context are you seeing this term? The only use of "bezel" in relation to the iPad I can think of is the frame, aka "bezel" that surrounds the screen.
    Regars.

  • What exactly are the cron scripts doing?

    Hi,
    Hope the subject says it all: I have searched but not found a detailed explanation as what the cron scripts (daily, weekly, monthly) actually do, and if the utilities (Onyx, Cocktail, Xupport, etc) are doing exactly the same.
    Can someone point to a site or explain?
    TIA
    Dan

    Hi Dan,
    (in addition to Barry's reply)
    Yes,
    1) running the Daily, the Weekly and the Monthly tasks manually with an utility, or
    2) running them yourself with the
    sudo periodic daily
    sudo periodic weekly
    sudo periodic monthly
    Terminal commands
    (or this one: sudo periodic daily weekly monthly), or
    3) leaving your computer running 24/7/365 so that they run automatically,
    all three ways do exactly the same thing.
    --> To see what they do exactly, the best way is to open Console, and in the /var/log section, look for "daily.out", "weekly.out" and "monthly.out".
    What exactly are the "cron scripts" doing?
    (Periodic tasks)
    In Console, you'll find a lot of different files that grow with more and more information every minute, even every second for some of them.
    The three Periodic tasks regularly rearrange them and compresses them so that they don't take too much disk space.
    They also rebuild some system database so that the data never gets unusable by the system.
    HTH
    Axl
    201

  • What exactly are Field symbols?

    Hi SDN,
    What exactly are Field symbols?
    I have read they are not pointers then what are they?
    Regards,
    Rahul

    Hi
    see this
    Field Symbols
    Field symbols are placeholders or symbolic names for other fields. They do not physically reserve space for a field, but point to its contents. A field symbol cam point to any data object. The data object to which a field symbol points is assigned to it after it has been declared in the program.
    Whenever you address a field symbol in a program, you are addressing the field that is assigned to the field symbol. After successful assignment, there is no difference in ABAP whether you reference the field symbol or the field itself. You must assign a field to each field symbol before you can address the latter in programs.
    Field symbols are similar to dereferenced pointers in C (that is, pointers to which the content operator * is applied). However, the only real equivalent of pointers in ABAP, that is, variables that contain a memory address (reference) and that can be used without the contents operator, are reference variables in ABAP Objects.
    All operations programmed with field symbols are applied to the field assigned to it. For example, a MOVE statement between two field symbols moves the contents of the field assigned to the first field symbol to the field assigned to the second field symbol. The field symbols themselves point to the same fields after the MOVE statement as they did before.
    You can create field symbols either without or with type specifications. If you do not specify a type, the field symbol inherits all of the technical attributes of the field assigned to it. If you do specify a type, the system checks the compatibility of the field symbol and the field you are assigning to it during the ASSIGN statement.
    Field symbols provide greater flexibility when you address data objects:
    If you want to process sections of fields, you can specify the offset and length of the field dynamically.
    You can assign one field symbol to another, which allows you to address parts of fields.
    Assignments to field symbols may extend beyond field boundaries. This allows you to address regular sequences of fields in memory efficiently.
    You can also force a field symbol to take different technical attributes from those of the field assigned to it.
    The flexibility of field symbols provides elegant solutions to certain problems. On the other hand, it does mean that errors can easily occur. Since fields are not assigned to field symbols until runtime, the effectiveness of syntax and security checks is very limited for operations involving field symbols. This can lead to runtime errors or incorrect data assignments.
    While runtime errors indicate an obvious problem, incorrect data assignments are dangerous because they can be very difficult to detect. For this reason, you should only use field symbols if you cannot achieve the same result using other ABAP statements.
    For example, you may want to process part of a string where the offset and length depend on the contents of the field. You could use field symbols in this case. However, since the MOVE statement also supports variable offset and length specifications, you should use it instead. The MOVE statement (with your own auxiliary variables if required) is much safer than using field symbols, since it cannot address memory beyond the boundary of a field. However, field symbols may improve performance in some cases.
    check the below links u will get the answers for your questions
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3860358411d1829f0000e829fbfe/content.htm
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/field_sy.htm
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci920484,00.html
    Syntax Diagram
    FIELD-SYMBOLS
    Basic form
    FIELD-SYMBOLS <fs>.
    Extras:
    1. ... TYPE type
    2. ... TYPE REF TO cif
    3. ... TYPE REF TO DATA
    4. ... TYPE LINE OF type
    5. ... LIKE s
    6. ... LIKE LINE OF s
    7. ... TYPE tabkind
    8. ... STRUCTURE s DEFAULT wa
    The syntax check performed in an ABAP Objects context is stricter than in other ABAP areas. See Cannot Use Untyped Field Symbols ad Cannot Use Field Symbols as Components of Classes.
    Effect
    This statement declares a symbolic field called <fs>. At runtime, you can assign a concrete field to the field symbol using ASSIGN. All operations performed with the field symbol then directly affect the field assigned to it.
    You can only use one of the additions.
    Example
    Output aircraft type from the table SFLIGHT using a field symbol:
    FIELD-SYMBOLS <PT> TYPE ANY.
    DATA SFLIGHT_WA TYPE SFLIGHT.
    ASSIGN SFLIGHT_WA-PLANETYPE TO <PT>.
    WRITE <PT>.
    Addition 1
    ... TYPE type
    Addition 2
    ... TYPE REF TO cif
    Addition 3
    ... TYPE REF TO DATA
    Addition 4
    ... TYPE LINE OF type
    Addition 5
    ... LIKE s
    Addition 6
    ... LIKE LINE OF s
    Addition 7
    ... TYPE tabkind
    Effect
    You can define the type of the field symbol using additions 2 to 7 (just as you can for FORM parameters (compare Defining the Type of Subroutine Parameters). When you use the ASSIGN statement, the system carries out the same type checks as for USING parameters of FORMs.
    This addition is not allowed in an ABAP Objects context. See Cannot Use Obsolete Casting for FIELD SYMBOLS.
    In some cases, the syntax rules that apply to Unicode programs are different than those for non-Unicode programs. See Defining Types Using STRUCTURE.
    Effect
    Assigns any (internal) field string or structure to the field symbol from the ABAP Dictionary (s). All fields of the structure can be addressed by name: <fs>-fieldname. The structured field symbol points initially to the work area wa specified after DEFAULT.
    The work area wa must be at least as long as the structure s. If s contains fields of the type I or F, wa should have the structure s or at least begin in that way, since otherwise alignment problems may occur.
    Example
    Address components of the flight bookings table SBOOK using a field symbol:
    DATA SBOOK_WA LIKE SBOOK.
    FIELD-SYMBOLS <SB> STRUCTURE SBOOK
    DEFAULT SBOOK_WA.
    WRITE: <SB>-BOOKID, <SB>-FLDATE.
    Regards
    Anji

  • What exactly are the free levels of Adobe services?

    What exactly are the free levels of Adobe services?

    Cloud Plans http://www.adobe.com/products/creativecloud/buying-guide-at-a-glance.html may help

Maybe you are looking for

  • XSLT mapping - output completely wrong

    Hello experts, I need to send an idoc to the receiver party, but they want the complete content in 1 field. So I use a graphical message mapping to map the fields and an XSL mapping to put the idoc structure into a specific field in the output struct

  • What is the exact definition of PO status "Changes transmitted" ?

    Hi' Can any one tel me what is the exact definition of PO status "Changes transmitted" ? We are using a SRM05 system. Thanks.

  • Need help to write query

    Hi I have following table structure Name Type HOSTNAME VARCHAR2(30) COL1 VARCHAR2(30) COL2 VARCHAR2(30) data inthe table is like this HOSTNAME COL1          COL2 H1               Authorized          Allowed H1               Authorized          Allowe

  • My Windows 7 Ultimate {32bit} does not install driver for my LG HDD HXD5 320GB

    My windows 7 does not install driver for my LG EXTERNAL HDD HXD5 320GB & its attached using a USB. It works perfectly on Other computers having Windows 7 & Windows XP & Windows Vista, just doesn't work on mines. I have had internet connected when it

  • Problems installing and uninstalling Java

    I am using XP as my operating system, and I was trying to install Java the other day and it starts to install, but I keep getting an error message saying that I already have have this version of JRE installed. Please uninstall the product through you