What is web.xml and why it is used?

hi,
am new to servlet technology, i tried to find a topic like this in this fourm also in google but didn't get a exact one. can anybody explain me or suggest me some resource about this.
thanx in advance.
Max

hi stevejluke,
thanx for the correct link.
nx for the correct link. but what i in doubt with is
why we should use web.xml? may be my question is very
silly, may be too basic, forgive me for that...
Thanx & Regards,
SaikatAt the most basic level:
There are several versions of the Servlet specification, You need the web.xml to tell the server which version of the spec your application conforms to so the server knows how to deal with different things.
If you have a servlet, you also need the web.xml to define what URL signals a request that should be handled by your servlet.
At this point, you need to sit down and read a book. Do what it says, blindly at first. Just do what it says (but do try to understand the 'what' of it, just don't question the 'why'). After you have a few applications running, go back and ask yourself this question again and try to see what you are using the web.xml for in those applications you have.

Similar Messages

  • What is "Directory Service" and why does it "use up 194%" ?

    What is "Directory Service" and why does it "use up 194%" on my istat CPU app monitor?
    Ever since I installed Leopard I've noticed this happening more and more - especially when I install an external hard drive or unplug my ethernet line - this is plainly weird and never happened under Tiger - the temperature shoots up to 84° also - I always to a restart to get rid of it but it's kind of worrying....anybody have any ideas?
    Message was edited by: Host

    Had this happen myself.
    It does have something to do with Spotlight/searching. Should go away after a while, or so I have heard from other users, 'cause it hasn't stopped driving me and my fan mad yet.
    Am going to have my MacBook index and follow-up on indexing and whatever else it feels is necessary to finally allow me to search in peace over the weekend while locking it away where I can't hear it.
    Hopefully that does the trick.
    If it wasn't for things working better/faster and most things looking better I might actually consider taking Leopard off again ...

  • What is kernel_task? And why does it use so much memory?

    I have an iMac 27 inch late 2009 purchased new in July 2010. It has a 3.08 Ghz Intel Core 2 Duo Processor and 4 GB of Memory. I recently upgraded to Yosemite and just now was unable to save an Excel document to an external hard drive with plenty of space with the warning I did not have enough memory. I went to my activity monitor and indeed there is very little memory and at the top of the usages of memory is kernel_task?  I don't know what that is and why it requires so much system memory.
    Also, there is an installation I aborted for an app I realized I didnt need and for some reason something it out there still taking system memory and I get a message when I shut down that it can't install. How do I delete that.

    DNS (Domain Name Service) is the Internet "address book" of web sites. Whenever you go to a site such as http://apple.com your browser must make calls to the DNS server specified in your Network Settings to translate "apple.com" into Apple's IP (Internet Protocol) address of 17.178.96.59. Any time you access any Internet resource (such as sending or receiving email, playing multi-player games, using a browser, Using any app that accesses data on the Internet such as news, weather, stocks, etc) one or more DNS lookups must be made. Many web sites have content from several different sites. Each site referenced on the page must also be looked up. Each query is small (~100 bytes), but they can add up.

  • What is feed.xml and why does it open as PBEM Game File in iweb?

    When going through files in my web site I came across a .xml file, being not very computer savvy I don't know where this came from, if it's necessary, can I delete it or is it opening in a wrong program? Why is a game file attached to my web site?

    Could it be possible that the default program to open .xml files on my computer is this PBEM Program? It seems to open the BigBang 4 In a Row that I think came with my MacBook. Is it possible that it should be opening in a different program?

  • What is DNS Services and why does it use so much data?

    I have 300MB to use a month on my iPhone 4S (most recent iOS) and I'm normally pretty good with it because I'm connected to WiFi a lot. All of a sudden, my data usage spikes and my DNS services usage has gone up to 40MB. What is this and how do I keep it from spiking like this? It's incredibly annoying.
    Also, any other tips on saving data while connected with the 3G? As mentioned before, I only have 300MB so I like to stretch it for the month.

    DNS (Domain Name Service) is the Internet "address book" of web sites. Whenever you go to a site such as http://apple.com your browser must make calls to the DNS server specified in your Network Settings to translate "apple.com" into Apple's IP (Internet Protocol) address of 17.178.96.59. Any time you access any Internet resource (such as sending or receiving email, playing multi-player games, using a browser, Using any app that accesses data on the Internet such as news, weather, stocks, etc) one or more DNS lookups must be made. Many web sites have content from several different sites. Each site referenced on the page must also be looked up. Each query is small (~100 bytes), but they can add up.

  • What is Iterator? and Why is it used?

    Hi,
    I am newbie to BSP and ABAP, and came across iterator while going through some topic.
    I used iteration process to display the values in the view in a table,
    Is it some way similiar to it with different approach?

    Hi,
    Iterator is to design each and everycell in your table in different format and to design your table that and end your can change what ever he wants in the table and saves the data changed.
    You can disign your tableview like it has a dropdown in one column, input field in one column and image in on column and link in one column like that.
    Check the below links..
    http://help.sap.com/saphelp_nw04/helpdata/en/28/4bae407e69bc4ee10000000a1550b0/frameset.htm
    /people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator
    http://help.sap.com/saphelp_me21sp2/helpdata/en/f7/faec246c2d184191bea02f703fc830/frameset.htm
    /people/thomas.jung3/blog/2004/09/15/bsp-150-a-developer146s-journal-part-xi--table-view-iterators
    Thanks,
    Sreekanth
    <i>*-- Please reward if it helps u</i>

  • What is "Bash"?  And why is it using 15-20% of my CPU?

    I went to the apple store today and they expressed concern about "Bash" in my Activity monitor taking up so much CPU (and causing my fan to run all the time).  They didn't know what it was.  Does anyone know what it is and how to get rid of it?
    Thanks! Kate

    bash is the standard shell under OS X – meaning it is the standard program to interface with the operating system’s Darwin underpinnings (technically, /bin/sh is the standard shell, but that has been a copy of /bin/bash since OS X 10.3). It is the process that is launched when you open a Terminal.app window – an interactive shell.
    bash can also be launched without a terminal window – a non-interactive shell –, for instance to execute shell scripts, often denoted by the file suffix .sh. That is the case here – bash is running the script /usr/bin/stkLaunchAgent.sh, and something in this script is keeping your system busy.
    Now, /usr/bin/stkLaunchAgent.sh is not part of an OS X install – it is some kind of third party addition and as such is not present on my system, meaning I can only guess, but I’d say:
    from its name part “LaunchAgent” and the fact it starts with your system, that it is triggered by a LaunchAgent – a small definition file used by OS X’ launchd, the system mechanism for starting scripts and non-interactive programs on schedule, boot or other events. That part I‘d qualify as an educated guess.
    from the fact your troubles began with the installation of your Vertex SSD, and the fact that the crucial difference between SSDs and HDs is the first do not take kindly to defragmentation and similar low-level interventions into their structure, that the script launched by the agent in question might be trying to do some operation on the drive the Vertex SSD does not accept – which keeps the script running and bash busy. Now, that part is only a wild, wild guess, but…
      How to find out what the script does:  Open a Terminal window and do open -e /usr/bin/stkLaunchAgent.sh to have a peek into the shell script (that command will open it in TextEdit – terminate it in Activity Monitor first) – that should give you the means to see what exactly is running.
    How to get rid of it:
    You’ll have to get rid of the LaunchAgent, if it is indeed one. launchd LaunchAgent files are in plist format and found in
    ~/Library/LaunchAgents – for the current user account only
    /Library/LaunchAgents – for all user accounts
    /System/Library/LaunchAgents – system level agents (should not by rights be found here!)
    They are usually named in reverse domain notation (tld.domain.process.plist). Depending if the user account of your runaway bash is yours or not, you should look in one of the first two locations above for a likely plist (if you have Xcode installed, you can QuickLook them easily). The correct procedure to stop it is to remove it from launchd’s process list through
    launchctl unload tld.domain.process
    which will unload and stop the process (note you omit the plist suffix).
    There is also a GUI for handling launchd files, Peter Borg’s Lingon (make sure to get “Lingon”, not “Lingon 3”, which is a dumbed down version safe for vanilla use), which might be more convenient than manually rooting through the file locations.

  • What is Google Services and why is it using 50% of my battery?

    This is far and away the biggest user of my battery capacity. I've been watching battery usage closely since I deferred this latest update and then my battery longevity went way down and it took a long time to charge. But I also remember in the past that Google Services has always been a pretty big user.

    DNS (Domain Name Service) is the Internet "address book" of web sites. Whenever you go to a site such as http://apple.com your browser must make calls to the DNS server specified in your Network Settings to translate "apple.com" into Apple's IP (Internet Protocol) address of 17.178.96.59. Any time you access any Internet resource (such as sending or receiving email, playing multi-player games, using a browser, Using any app that accesses data on the Internet such as news, weather, stocks, etc) one or more DNS lookups must be made. Many web sites have content from several different sites. Each site referenced on the page must also be looked up. Each query is small (~100 bytes), but they can add up.

  • What are Layers? And why do I need them?

    WHAT ARE LAYERS? AND WHY DO I NEED THEM?
    Layers are an essential part of Photoshop. With Layers you can separate pictures or design elements from each other, as if they are stacked on pieces of glass. With all elements separate, you can move or change them independent of each other.
    Layers are used for many tasks, including improving your images' color or tone; merging two or more images in one Photoshop file; and creating Web designs and animations.
    LAYER BASICS - VIDEO 06:41 min.
    WORKING WITH LAYERS - VIDEO 11:16 min.
    KEY CONCEPT: LAYER
    PHOTOSHOP/ LAYERS BASICS - Reference Guide

    After creating the mask and applying adjustment, you can also adjust and change layer mask using selection tools or, the most common way, using brush tools.
    To have a more accurate preview of what are you doing, Alt + click on the layer mask thumbnail to show the mask in the image area.
    At this point, you will have a layer mask on your screen in large view, so it is easy to fine tune it, but you wont see how that affects your image.
    To seean  instant preview how changes on layer mask affects the adjustments, use New Window for (name of your image) from Window > Arrange.
    Here is a more detailed tutorial on the topic: New Window for.. Command in Adobe Photoshop.

  • What is application memory and why does my macbook pro keep running out of it?

    what is application memory and why does my macbook pro keep running out of it?

    There is excessive swapping of data between physical memory (that is, the memory chips on the logic board) and virtual memory (one or more files on the startup volume.) That activity is relatively slow and causes the whole system to be less responsive. It can happen for two reasons:
              A long-running process with a memory leak (a kind of bug)
              Not enough memory for your usage pattern
    Please note that if the cause is a memory leak, installing more memory will not help. That's likely if you already have more than 4 GB of memory. Tracking down a memory leak can be difficult, and it may come down to a process of elimination.
    These instructions are for OS X 10.9 and later. Some details may be slightly different for earlier versions of OS X.
    When you notice the swap activity, open the Activity Monitor application and select All Processes from the View menu, if it's not already selected. Select the Memory tab. Click the heading of the Real Mem column in the process table twice to sort the table with the highest value at the top. If you don't see that column, select
              View ▹ Columns ▹ Real Memory
    from the menu bar.
    If one process (excluding "kernel_task") is using much more memory than all the others, that could be an indication of a leak. A better indication would be a process that continually grabs more and more real memory over time without ever releasing it. Here is an example of how it's done.
    The processes named "Safari Web Content" render web pages for Safari. They use a lot of memory and may leak if certain Safari extensions or third-party web plugins are installed. Consider them prime suspects.
    Another process often implicated in memory leaks is "inkjet4" or "inkjet8," which is a component of the HP printing software. If it's present, force-quit the process in Activity Monitor to solve the problem temporarily. Empty the print queues in the Printers & Scanners preference pane (which has a slightly different name in each recent version of OS X.) If you don't use an HP printer, reset the printing system. Otherwise, if the problem is recurrent, update the software (which may not help) or contact HP support.
    "Wired" memory should be a small part of the total. That memory is not swapped, but it makes less physical memory available which may then result in swapping. If you have a lot of wired memory, that's usually an indication of a memory leak in a third-party program that modifies the operating system at a low level. Ask for guidance in that case.
    If you don't have an obvious memory leak, your options are to install more memory (if possible) or to run fewer programs simultaneously.
    The next suggestion is only for users familiar with the shell. For a more precise, but potentially misleading, test, run the following command:
    sudo leaks -nocontext -nostacks process | grep total
    where process is the name of a process you suspect of leaking memory. Almost every process will leak some memory; the question is how much, and especially how much the leak increases with time. I can’t be more specific. See the leaks(1) man page and the Apple developer documentation for details.

  • HT201250 What is Airport Utility and why do I need to access this in order to backup my iMac using Time Machine...PLEASE??

    What is Airport Utility and why do I need to access Airport witeless devices in order to backup my iMac using Time Machine...HELP!!! PLEASE??

    AirPort Utility is required to configure an Apple AirPort Base Station or Time Capsule.
    Time Machine can use a Time Capsule or a locally connected volume. You only need to use AirPort Utility if you are using a Time Capsule.

  • What are smart mailboxes and why do i need both smart and "normal" ones?

    What are smart mailboxes and why do I need both smart and "normal" mailboxes?

    Hi Kingoftypos,
    Thanks for that clarification. So, now it appears that the ultimate purpose of a Smart Mailbox is to point to all emails that meet the criteria in a single place, so if they are spread among several mailboxes, you will be able to see them all together. Here is an article from Apple that describes it:
    A Smart Mailbox displays in one location messages that are stored in other mailboxes, so you don’t have to move messages between mailboxes. The messages displayed by a Smart Mailbox are based on criteria you define, and are automatically updated to include new messages that match your criteria. For example, you might create a Smart Mailbox that displays all messages found in all mailboxes from a specific sender.
    If you change a message in a Smart Mailbox, such as marking the message as read or unread, or moving or deleting the message, the change is reflected in the mailbox where the message is actually stored.
    So, adam, I would think that, if you had mail going to a lot of different places, and wanted to be able to see a particular set of those in a single place, you would use a smart mailbox. Maybe use the rules to direct your mail to different places to start with, but a smart mailbox to bring a set of common ones all together into a single smart mailbox?
    Maybe you have Rules move your Amazon mail to an Amazon folder and your Apple mail to an Apple folder, but then you have a Smart Mailbox that contains any mail that has the word "Receipt" in the Subject line?
    Just a thought....
    Cheers,
    GB

  • When I click on a picture or a link, to take a closer look, I get a blank screen and it says at the top search bookmarks and history, at the bottom it says 'stopped' - what is this problem and why is it happening

    when I click on a link to complete a form, or a link to take a closer look at a picture, I get a blank screen and it says at the top 'search bookmarks and history', at the bottom it says 'stopped' - what is this problem and why is it happening ?

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • What Is Memeo Backup and why is it on my MacBook Pro w/ Snow Leopard?

    What Is Memeo Backup and why is it on my MacBook Pro w/ Snow Leopard?  Does it slow down my Mac? Seems like someting has slowed down my Downloads, Updates, Backups, etc. & I don't know how to locate the source or how to fix. Any Wizards avail to share some Wisdom? I am using Ethernet Cable/Port for Internet Connection, I Use a Seagate  FreeAgent Go Flex Ultra-Portable Drive w/ Seagate's Firewire Adapter Cable.

    If this is really Memeo Backup and you want to get rid of it for a better backup program like Carbon Copy Cloner the the following shows all the stuff that Memeo Backup installer installs (based on Memeo Backup 2.5.141 which I found with a google search and downloaded):
    The primary file to disable Memeo Backup would be that file in LaunchDaemons.  Remove it and reboot and the rest is just taking up disk space. 

  • Mime-type tag in web.xml and attachment download

    i have set a mime-type in web.xml as below:
    <mime-mapping>
         <extension>xls</extension>
         <mime-type>application/vnd.ms-excel</mime-type>
    </mime-mapping>
    And i have a simple jsp that only shows a table and i am making this jsp to get downloaded as an excel attachment. To make it possible i have written the following line in the JSP:
    response.setHeader( "content-disposition", "attachment; filename=myexcel.xls" );
    But i am not setting the content type first by writing:
    response.setContentType( "application/vnd.ms-excel" );
    since i have already mentioned the appropriate mime-type for excel files in web.xml.
    I am using both mozilla and IE. Both are showing file download dialog. But IE is able to correctly identify the type of the attachment and opens it up with Microsoft Excel whereas mozilla fails to identify the type, assumes it to be an HTML document and opens it up in a new window of IE.
    mozilla works fine only when i set the content type in the JSP itself. But IE works in all conditions even without having the mime-type tag in web.xml.
    If i have already specified the mime-type for particular type of file in web.xml, is there any requirement to set the content type again in the JSP/servlet?
    Please help. I even changed the mime-type for .xls (excel) files in web.xml and made it text/plain, but still the same thing is happening. IE is always showing the correct file type where as mozilla is taking it as an HTML document.
    i am using weblogic server 8.1.

    the web xml mime type setting are for static files served by the server...
    if you print a file directly to the output of the servlet, you must set the mime type, so DO write :
    response.setContentType( "application/vnd.ms-excel" );
    IE "works fine" because it also uses the file extension to decide the mime type... but in the absolute, it's a wrong behaviour

Maybe you are looking for

  • Remote access vpn clients, access to Internet resources

    Hello, we currently have a remote access vpn set up terminating on an ASA 5520.  Remote access users connect into this ASA and are able to access resources inside of the firewall- the public IP of the ASA is 1.1.1.135.  We need these users to be able

  • IPad 2 is having connectivity issues since I updated to 8.0.2

    My IPad 2 had connectivity for about 6 hours after I downloaded 8.0.2 last Saturday.  Sunday morning I was back to NO SERVICE in the upper left hand corner.  Yesterday I went to the Apple Store and they showed me how to reset the cellular data, and a

  • Adding a domain name to BC site results in Error. Cannot locate Adobe support.

    "Error. Domain name already exists..." Have 3 sites not working right now. Sorry to post multiple times, but Adobe support is non-existent, and Live Chat and Open a Ticket are both circular links that never go anywhere, nor let me contact Adobe. Past

  • Can I use my E71 as a tethering device?

    Hello all, I have an unlocked E71 which does not conform to the 3G bands in the US - I bought the E71 in Hong Kong. Disappointment aside, I always have a laptop and an ipod touch with me. Even my E71 cannot access the internet, can I use it as a mobi

  • Exporting text without the background?

    Hi all, I am working on an awards project using keynote and Livetype, I would like to export specific text livefonts without the generic background. For example, after exporting, being able to drag them onto a keynote slide without the black backgrou