In what cases servlets are used?

why i am asking this is we can do everything with jsp what is need of servlet?

In JSP java code is mixed in with HTML. This is probably anacceptable solution for experienced Java developers, but Web designers won't want to have to mess with Java code, nor should they. For small projects, maybe only one person does everything; but for large projects (or Web sites) with hundreds of Web pages, responsibilities are generally divided into Web developers and Java programmers then there is a need of servlets.
Problem 2.
Because JSP pages are translated into servlets, the declaration element is essentially translated into class variables. Thus they have global scope, which is probably not a good thing.
Problem 3.
Database-specific code is in the JSP pages. What happens if the database table is changed to add a column? Someone will now have to go in and modify the JSP pages appropriately. There has to be a better way. i.e.,
not servlets but jsp + servlets.
Message was edited by:
AmitavaDey

Similar Messages

  • HT4759 what hardware is/are used in order for the Apple: iCloud to run?

    what hardware is/are used in order for the Apple: iCloud to run?

    Apple - iCloud - Learn how to set up iCloud on all your devices.
    More Info Here  >  http://www.apple.com/support/icloud/

  • What exact metals are used in the iPod 5 and what for?

    what exact metals are used in the iPod 5 and what for?

    Hey Connor and Josh, The same kind of metals that are found in pretty much all electrics. Aluminum, Gold, Copper, Solder, (I would guess lead free). You will also find plastics and resins, glass and Li-ion, carbon, and silicon. Why do you ask? If your thinking of stripping one down for the metals, it's not worth it, there so little in there it will cost you more to separate the metals than there value by weight.  Cheers.

  • What port numbers are used when creating temporary queues

    Using the following code as an example, what port(s) are used when creating temporary queues? Is it a range of ports? Is it random? And is it configurable? If you have any insight on this, please let me know. Thanks.
    QueueConnection con = connectionFactory.createQueueConnection();
    QueueSession session = con.createQueueSession(true, Session.AUTO_ACKNOWLEDGE);
    TemporaryQueue replyQueue = session.createTemporaryQueue();

    The only ports I know about are the defaults ports:
    JMS 7676
    IIOP 3700
    Are these the only ports that are used, even for temporary queues?

  • What defaults Ports are used by UCM?

    Hi All,
    Could anyone please let me know what all ports are used by UCM and their purpose. Appreciate you help on this. Thank you
    Thanks & Regards,
    Ashok

    UCM:16200, IBR:16250, IPM:16000
    You should be able your ports easily if your run the WLS console (server:7001/console), search under Environment - Servers
    What's their purpose?
    Each application is a separate J2EE application deployed on an app server, listening on a different port. UCM is the content repository, IBR is a conversion server, IPM is a module designed for imaging

  • What TCP ports are used in Dataguard

    Hi Team,
    what TCP ports are used in Dataguard, Dblink or SQL statement
    Thanks
    Aj

    hello,
    i am a Jr. DBA, but from what i can think its the same port as the listner would. 1521 or it would be the same at ur entry in TNS entry in tnsnames.ora

  • What the steps are useful for us while designing the database by Performanc

    Dear Experts
    Plz tell me.
    What the steps are useful for us while designing the database by Performance point of view.
    Like Proper indexing and table assing to specific tbalespace etc

    Oracle manuals would do the best for you. There is no step by step rules for tuning the database , had this be true , then Oracle must've write a programme , application or sql script to achive it . I would advise you to go through oracle performance and tuning guide .
    Hare Krishna
    Alok

  • What encode setting are used when sending to Encore from Premiere?

    Hi All,
    I have a an HDV 1440x1080 30p video and sequence in Premiere CS4. If I export it to AME, i can set the output format and presets to whatever i want. In my case, I set AME to Format: "MPEG2-DVD" and Preset: "NTSC Progressive Widescreen High Quality" and leave the other settings alone.
    However, when I send the sequence via Dynamic Link from Premiere CS4 to Encoder and press on the build button, what default settings is Encore CS4 using to create the DVD?
    I am assuming that i can bring up "Export Settings" in Encore prior to building to alter the default export settings and in my case i would use the Encore Export Settings:
    Format: MPEG2-DVD
    Preset: Progressive High Quality 7Mb VBR 2 Pass
    and leave the other Encore export settings alone.
    BTW, i think its interesting that the default export settings for MPEG2-DVD, Progressive (Standard and Widescreen) High Quality in AME from both Premiere and Encore have different basic video, bitrate and GOP settings.

    The 'Automatic' transcoding setting is dynamic - it changes whenever you add or subtract from the project. One of the main benefits of using it is that Encore will automatically calculate the bit budget for your disc.
    But if it's somehow not working out, you need to reconsider using it.
    Normally, I do my own bit budget (there are several online bit budgeting apps out there). But then, I'm a 'manual' kinda guy...

  • What IP Ports are used for continuity?

    In my company WLAN the IP Adresses are seperated. With IP/UDP Ports are used to communicate within the continuity functions?
    Thanks

    Great, actually, I found this information, and would like to re state my question. Now that I know what ports I should be using (this is described in detail in the hardware manual for the E series), I would like to see some definite information about what I must do in my external device to make use of these signals.
    I'm a little confused by some comments in the documentation that some of the facilities of Port C (on the 8255) are only avialable if I use register level commands (as if using the parallel port). If I use the DIG_Prt_Config and set to handshaking (input) on a port, then I assume I set up my external hardware as if Port C was in Mode 1(input), and then follow the timing described in the E Series manual.
    It's just a shame that everything o
    n the PC side is well described, but there are no application notes that I can find about building an external device that can use the handshaking signals.
    If 'you' (anyone) can confirm what my assumptions, or point me in the right direction, I would appreciate it greatly.
    Thank you.
    Joshua

  • How do I find out what all devices are using my Apple ID

    I need to know how many devices are using my Apple ID. Where do I go to do that?

    Rui C wrote:
    You also can check your support profile.
    https://supportprofile.apple.com/
    Definitely a good place to start. However, in my case (probably through my own carelessness) it's not even remotely accurate. It has my previous iPhone (which was removed from iCloud in front of the person I sold it to) still listed by not my current phone. Also a couple of iPods that I know were no longer attached to my Apple ID when they were last working (a couple of them are not).
    But, you've encouraged me to go in and do some house cleaning. I think I'll live my original iPod on there just for the nostalgia.

  • What PDF settings are used when creating DPS articles?

    When you create a PDF file using Acrobat Distiller or InDesign you can modify settings such as font subsets, image down-sampling and compression which will have an impact on the final file size. Does anyone know what settings are used when articles are rendered in PDF format in DPS and can the settings be modified? Specifically, what type of compression is applied to images? If I were to place two images on a page, a png and a jpg with medium quality, would they be embedded in the PDF as is or re-compressed in another format and/or level of quality?

    Thanks for your help.
    So images placed in an InDesign retain their original file format and are unzipped when the article is loaded in the app.
    I'm assuming that if compression is applied to the original image files it can have an impact on performance. If you were to use jpeg files in a document they would need to be unzipped and decompressed. I've read other forum posts that suggest the iOS jpeg decompression engine is too slow to present a fluid user experience in a DPS app. The combined processing time of unzipping and decompressing jpegs files may steer me towards the png format.

  • What TCP ports are used by Push notifications

    I believe my Firewall is blocking Push Notifications on my iPod touch. So, I wanted to discover what the TCP Ports are that are used by Push so I could open those ports to pass packets (info) to my iPod.

    See:
    http://support.apple.com/kb/HT3576
    "If you are still unable to receive notifications and you are using a Wi-Fi connection, verify that the network or firewall is not blocking access to port 5223."

  • What Version you are using ?

    Hello All,
    Please suggest how can I find what version of SAP I am using, I have been told it ECC 6.0 but still would like to view by myself and there are couple of things which I have to navigate, but cannot see.
    Just for example : Implementation Guide (IMG): Supplier Relationship Management > SRM Server Technical Basic Settings >Define RFC Destinations >
    But I cannot find this ? Please help.

    Hi nishandev,
          you can do this by two ways if you have proper permission.  first you can logon to ECC system and click on System  Tab then click on Status then you see what component Version your using or click on the "componnent information" it's look like a Magnifying Glass click on their it will give you detail information of the system and component.
    Please give points if helpfull.
    Thanks,
    Mohammed

  • What program filenames are used to create PDFs?

    We are in school where we restrict what type of programs the students can access by filenames (e.g. Word.exe, Excel.exe), using the Windows 2003 Group Policy "Run only Windows Applications" policy.
    I've added all the programs I can in the Adobe folder into the policy(e.g. Acrobat.exe and so forth).
    However, whenever the students try to create a PDF from an application, say Word 2003, the restrictions kick in "This operation has been cancelled due to restrictions in effect on this computer. Please contact your systems administrator."
    Printing to physical printers works fine. It's only when I try to print to Adobe PDF does the error message occur. I can't find out what program adobe is trying to use to create the PDF.
    I've tried process tracking and the registry to find out what uses it and I can't find it.
    When I try as a student going into Adobe Acrobat 8 Professional and try to Create PDF....from file.... the "Starting the application which created the selected document. Please wait" appears then states: "Acrobat could not open xrd.doc' because it is wither not a supported file type or because the file has been damaged (for example, it was sent as an e-mail attachment and wasn't properly decoded).
    To create an Adobe PDF document, go to the source application. Then print the document to Adobe PDF."
    Which, of course, I've tried as the first step.
    The clients are running Windows XP Service Pack 2, with Office 2003 as the program they are trying to create from.
    The software being used is Adobe Web Premium CS3.
    Server Enviorment: Windows 2003 Server Service Pack 2
    Client Spec: Pentium 4, 512Mb-1024Mb of memory, 40 gig hard disk
    Can anyone help? Some students need to create PDF documents as part of their coursework and time is looming.

    That worked!
    Now getting the error message "Adobe PDF Creation cannot continue because Acrobat is not activated," but looking at the KB for a solution for that. It still prints out the PDF fine.
    Many Thanks.

  • What cast type are used for?

    In the example attached to this question is a simple VI application that cast, using type cast of LabVIEW, one value to different other type. My understanding of type cast, in C, C++ and to my best knowledge, was an implicit adaptation of a numerical value in a specific format to an other format. The value should remain the same. Unless the type in which the value is assigned is not enough large or adapted to contain such a number ex:
    I8 = 500;
    U32 = -1;
    But in my example all the assigned indicator are large enough.
    I have the same problem in LabVIEW 5.1.1 and 6.1
    If someone could only tell me what it is used for?
    Best regards,
    Nitrof
    Attachments:
    Type_cast.vi ‏26 KB

    The type cast function is really helpful for typecasting "unusual" data to a more convienient data format. It can also be used to coerce data, like in your example, but coercion is usually not always a good thing because it can cause bad values.
    There are lots of good examples of typecasting.
    For example, I use the typecast function to change refnums to unsigned 32 integers (U32), just so I can pass the refnums between VI's easier.
    Another VERY common typecast is if you want to display the ASCII value of a character. Run the string character "A" into a typecast, and set the output type as a Unsigned 8 bit number (U8), and you will see 0x41. Take a look at my example VI's to see what I mean.
    David
    Attachments:
    Type_cast_Example5.vi ‏16 KB
    Type_cast_Example6.vi ‏18 KB

Maybe you are looking for

  • Templates in Tcode SOLAR_PROJECT_ADMIN

    Hi! I would like to use the templates from Tcode SOLAR_PROJECT_ADMIN --> Project --> Projectstandards --> Documentation types --> Project templates for the documents in Tcode SOLAR01, SOLAR02. The problem is that many of them are empty. <b>How can I

  • Poor quality when exporting to MOV (H264/AAC) with CS5 and CS5.5

    Hi there, I need to export my HDV sequence (1440*1080 Pixel 1,33 25fps) using HDV footage only to MOV format (with H264 / AAC codecs). I'm using 1024*576 (1.0) SD preset with a correct video bitrate CBR 6mbs and the Quality is awful. When I use the H

  • IPhone 4 Bumper

    Which is the slimmest, least obtrusive case of those offered by Apple?

  • Error message when upgrading iTunes

    When I get a notice for Software Upgrade for my eMac (10.4.8), it works for everything except iTunes - I get a message "Please quit iTunes before beginning this update" even though iTunes is closed. I have to reboot the computer or this message recur

  • 802.1X Re-authentication Question

    Hello, I have a switch-C960X version 15.0 (2r) EX, and I was looking at the securit config guide for 15.0(2) EX.There's suppose to be a command to force a port to re-authenticate itself as I'm trouble shooting 802.1X issues. The command is "dot1x re-