How can I have a default servlet and an index.html?

Hi,
I writing a small webapp to test/understand the 2.2 Servlet Spec. I am deploying this as a WAR to Orion, Tomcat and Silverstream.
The app's name is: "myapp"
My application has an index.html, which is listed as the sole welcome-file in the welcome-file-list element in the app's web.xml.
The interesting thing is that, after adding a default Servlet (<url-pattern>/</url-pattern>), I can no longer access the app's index.html either implicitly or explicitly:
1. Implicit:
- http://localhost/myapp
- http://localhost/myapp/
2. Explicit:
- http://localhost/myapp/index.html
- http://localhost/myapp/index.html/
All of these invoke the Default Servlet in all 3 app servers.
Question: How can I have both a default Servlet and an index page?
Thanks in advance.
Miles

you can define it in the web.xml file
look at the dtd, element "welcome-file-list"

Similar Messages

  • How can I have both genius playlist and regular playlist on my new 160g ipod classic. The list of songs are there, but when I click playlist, I only get the genius playlists.

    How can I have both genius playlists and regular playlists available on my new 160g classic ipod. I can see my entire song list, but no playlist other than the 3 genius playlist I just made.  Also how can I delete a genius playlist. Made the same playlist twice by mistake. Thanks.

    This was not a simple task.  Got it handled.  Had to call Apple support. Apparently, the 160g only syncs the genius playlist.  You have to go in and "tell it" to sync the entire playlist as well as the genius playlists. There is also an option for only syscing certain songs. On itunes, there is two sections; one for the stuff that is synced on your ipod and another separate list for the stuff in your library!  This is exciting for me as I am not computer savvy to say the least. 

  • How can u have lock rotation off and mute feature off at the same time

    How can u have lock rotation off and mute feature off at the same time

    Maybe this will help. The link at the bottom is the same one that was posted above.
    System sounds can be muted and controlled two different ways. The screen lock rotation can be controlled in the same manner as well.
    Settings>General>Use Side Switch to: Mute System sounds. If this option is selected, the switch on the side of the iPad above the volume rocker will mute system sounds.
    If you choose Lock Screen Rotation, then the switch locks the screen. If the screen is locked, you will see a lock icon in the upper right corner next to the battery indicator gauge.
    If you have the side switch set to lock screen rotation then the system sound control is in the task bar. Double tap the home button and in the task bar at the bottom, swipe all the way to the right. The speaker icon is all the way to the left. Tap on it and system sounds will return.
    If you have the side switch set to mute system sounds, then the screen lock rotation can be accessed via the task bar in the same manner as described above.
    This support article from Apple explains how the side switch works.
    http://support.apple.com/kb/HT4085

  • How can i upload files in servlets and also using jsp

    means that uploading files(.doc) or any files by using servlets and jsps

    yawmark wrote:
    saichand wrote:
    means that uploading files(.doc) or any files by using servlets and jsps
    [http://www.google.com/search?q=How+can+i+upload+files+in+servlets+and+also+using+jsp]
    ~Good topic titles are indeed brilliant search keywords. It's sad to see that it won't even come in the mind of the topicstarters to Google it before posting the topic.

  • How can I change the default fill and stroke colors for new shapes?

    As you can see in the following screen recording, after I change the stroke and fill color, all my subsequent rectangles are created respecting these new colors. But then when I delete all the rectangles, choose the rectangle shape tool once again, and start creating new rectangles, they start getting created with another color I had used some time ago (and I don't know how did it become the default color).
    http://tinypic.com/r/64jrwp/6
    So how can I change the defaults, so that the fill color is say #ddd, and the shape has no stroke at all?
    Thanks.

    When you have the shape tool selected you will see in the tool bar below - file edit etc a fill and stroke. This is where you can change the colours.
    You can keep drawing your shapes like you did in the video but then select the rectangle and change the colour from this tool bar. The reason it changes will be because you changed the colours you were using (foreground / background) that display in the left side tool bar.

  • How can I have Acrobat Pro v8 and v7 installed but have v7 as default?

    I just re-formatted my hard drive and reinstalled CS3 Design Standard.
    I need the better quality voice to read pdf docs to me. The voice in Version 7 is very much better. Yet when I select a pdf file and go to info, where it shows what will open it -- it WILL NOT let me specify Acrobat 7 permanently. It keeps popping back to Acrobat 8. Same problem before I reformatted the drive and re-installed everything. so the issue is within Acrobat.
    How can I get it to do what I'm asking short of zipping the version 8 file and leaving only Acrobat 7 in my Applications folder?
    This is annoying having to keep Acrobat 8 hobbled.
    Thanks.
    I have OSX 10.4.11 PPC.

    Gosh wish I could proof read what I write and can catch mistakes.
    I'm going to try again. correcting mistakes and I will bold face corrections:
    Try the following This *doesn't* work for the MSOffice2008 but usually does for others.
    On OSX.4.11.
    choose a group of PDF's (more than 5).
    now either control-click or right click on the group and wait for context menu to open up.
    select get *Summary Info* on the group.
    now when get info window is open look for default application.
    If acrobat 8 is selected click on button and locate acrobat 7. release when mouse when 7 is selected.
    Below That will be another button That says make default for all files of this type. click on That button.
    close get *Summary Info window*. Test.
    Now if you need a PDF opened in 8 either open 8 first then choose desired file or if you have the Acrobat 8 icon in the Dock drag and drop document on the icon of Acrobat 8
    IF you retry then Acrobat is like Office2008 setting this has no effect.
    In this case you can highlight the File go to finder menu File and choose open with. you have to wait for a list to be created of applications that will open. Choose desired version of Acrobat or Reader from there.
    Or if you have icon of both Acrobat 7 and 8 in the dock, drop the file on the icon of Acrobat 7.
    See if I did better this time.

  • How can I have Firefox 4.0 and a 64 bit version of Minefield installed and make them use separate profile folders?-thanks

    I have been using Minefield, the beta version of Firefox 4 , in a 64 bit version. Since the final Firefox 4.0 doesn't seem to have a 64 bit version, I want to keep Minefield, but still would like to try Firefox 4.0. FF4 uses after installation automatically the Minefield profile folder, which leads to problems , mainly because both browsers are not compatible with the same versions of Add-ons. How can I keep them both but make each use its own profile folder?

    Thanks. I tried this and it actually works for the desktops shortcuts but when I pin the modified shortcut to the task bar and try to start either of the two firefox versions from there, the profile manager shows up and asks which profile I wanna use.
    Is there a way to fix this?

  • HT204053 How can I have 3 iCloud accounts and keep all pictures, contacts, messages separate ?

    I have one Apple account and would like to use iCloud. I would like to have 3 iCloud accounts. One for each person in my family. One person has an iPhone3gs, one has a iPhone 4, and I have a iPad and an iPhone 4s. I would like all pictures, contacts, messages to stay separate for each user.
    Can this be done?

    Welcome to the Apple community.
    To begin with, I would like to try to explain Apple's confusing nomenclature in regard to iCloud.
    Apple have called the whole cloud thing iCloud, there are a number of features under the iCloud umbrella, some of which require their own login. iTunes is one of these, another is what Apple have unfortunately also called iCloud.
    You can use the same Apple ID (account) to login to both iCloud and iTunes, but you don't need to and often users will login to each service using a different ID.
    The part that you need to remember is that the services available when you log into iCloud are completely different and unrelated to those when you log in to iTunes. Your iCloud login enables mail, contacts, calendars, find my phone, Back to My Mac, Documents & Data sharing and photosstream, it does not affect any of your iTunes services.
    To avoid confusion when discussing your problem, when I mention iCloud, I am referring to the services under the iCloud login, Whereas I will refer to the whole cloud thing as The Cloud.
    I suspect what you are wanting to do is all share the same account for iTunes and each use your own accounts for iCloud.

  • How can I have C++ 4.2 and C++ 5.8 installed on the same box?

    I am involved in porting C++4.2 code to C++ 5.6 and I would like to know if I could have both compilers sitting side by side on the same machine.
    While using one compiler against the other, do I have to set any environment variables to tell the compiler which set of include files it needs to use? Or are these configured during installation? (I have used the compiler for a long time but I have never thought about how the installation works)

    You should not a problem with this as long as you install each version on different uniqe directory. But please make sure the OS platform is supported by both versions. There are an issue with multiple releases on the same system with Solaris 10, but I don't think you use Solaris 10 because C++ 4.2 is not supported on Solaris 10.
    Yes, you need to set environment variables to tell the compiler which set of include files, binaris or libraries it needs to use. It is not configured during installation.
    -Ngoc

  • How can I have a new handsfree and charger. My original ones are wrecked down!

    My new original charger and headset broke down after couple of month. I spent a lot of money to buy another iPhone5 headset which unfortunately didn't last. Also my new charger It really anoys me to see how unreliable are the aple accessories. What should I do?

    They are covered by the iPhone's warranty.  Apple should have replaced them for free.

  • How can I have ONE bookmark folder and no tool bar/option, but alphabetized?

    i don't want bookmark tool bar, all I want is "show all bookmarks" alphabetized

    Usually if you choose Show All Bookmarks, Firefox opens a separate window called the Library. Is that what you meant?
    As far as I remember, Firefox doesn't have a setting to keep your bookmarks alphabetical as you add them, but you can alphabetize them in the Library dialog. In the left column, right-click Bookmarks Menu, then Sort by Name.
    And you can close the Bookmarks Toolbar. Right-click a blank area of the tab bar (or the new tab "+" button on that bar) and "uncheck" Bookmarks Toolbar.
    To access your bookmarks without the toolbar, you can use any of the following:
    * Bookmarks menu on the classic menu bar (Alt+b) or on the compact menu behind the orange Firefox button
    * Bookmarks button (drop-down list) on a toolbar ''(if the classic menu bar is not displayed)''
    * Bookmarks Sidebar (Ctrl+b)
    Does that help?

  • How can I have my iCloud account and my wife's synchronizing photos in the same PC?

    I have only one PC at home, but I have my iPhone and my wife has yours.
    We want to have our iCloud shared photos in the same PC, but iCloud control center just allow to configure one account.

    iTunes only keeps one normal backup, per device. Thus, there are no previous backups from 1 or 2 days ago unless you restored your phone & backed up before you restored. Restore point backups are time/date stamped & are not overwritten.

  • How can we change the default folder location (avoiding problems with Temporary Internet Files)

    (Environment in question: Windows 7 secure desktop (running as user not admin), Office 2010)
    Hello,
      As has been touched on in various forums (such as here: http://forums.adobe.com/thread/797451), when one opens a PDF attachment in Outlook, Acrobat and Reader store the file in the "Temporary Internet Files" folder (f/k/a OLK folder in previous versions of Outlook.  There are two major problems with this:
      First, as Microsoft has documented in http://support.microsoft.com/kb/817878, attachments end up here staying here under certain conditions (go checks your now, you'll find some!), which ends up being a file attachment no man's land, and that can present security risks (e.g. if data we thought was deleted still lives in that folder).
      Secondly, the first time you open an attachment in Acrobat and do a Save As, Acrobat is defaulting to the Temporary Internet Files location.  This folder (as noted in the thread linked above) is ridiculously hard to get to for the average user, so they can end up storing a file and then losing it.
      We've found that if we open Acrobat once, do a save as, and change to the users Documents folder, the change sticks.  But how can we have Acrobat default to Documents instead of that temporary location? 
      Any help is greatly appreciated.

    Have you check to see if Acrobat sets a registry entry or file preference for the first Save As?  That's where I would start looking.  Process Monitor is a good tool for this.

  • HT201150 How can I turn off this "feature" and have the power button bring me the shut down / restart / sleep dialog by default again?

    How can I turn off this "feature" and have the power button bring me the shut down / restart / sleep dialog by default again?
    With the position of the power button on the Retina MacBooks, any mistake turns off the screen in the middle of a presentation or any activity using a projector or big screen — a huge waste of time to wake up the display, enter password, have the projector sync back, watch audience disconnecting from what was being discussed, etc.
    This is very annoying, and seems to add to the increasing collection of options Apple decided to make by itself instead of allowing the user to choose.
    Come on Apple guys, I'm using my Mac because I want options and lots of preferences to tweak to my needs.
    If I needed the lobotomized version I'd be using my iPad!
    Any way (official or hack) to change this button back to its proper funcionality?
    Thanks!

    cterra wrote:
    How can I turn off this "feature" and have the power button bring me the shut down / restart / sleep dialog by default again?
    Not what you want, but you can get the shut down / restart / sleep dialog by holding the power button

  • How can I have links within emails read with Seamonkey open on the default Firefox browser and not the Seamonkey browser?

    I use the SeaMonkey 2.0 mailer for my email client and Firefox 3.6 for my default browser. A link embedded in an email (read with SeaMonkey) opens the SeaMonkey browser and not Firefox. How can I have it open on Firefox?
    (SeaMonkey is not set up as the default browser and Firefox is.)

    See here
    *https://support.mozilla.org/en-US/kb/how-make-web-links-open-firefox-default

Maybe you are looking for

  • Error while testing a sample web dynpro

    Hi All,   When i try to test a web dynpro sample program it gives me below error message  "Data no longer available when SALV_WD_TABLE GET_MODEL called ". can you please let me know what the exact problem is? Thanks, Mars

  • Get Message Notification in BPM 10G from External JMS Provider

    Hello, Can anyone provide me the steps how to get a message from the queue (external JMS provider) in BPM 10G. I have been looking into this for couple of days now and I'm not able to figure it out. Any input on this would be greatly appreciated. Tha

  • IPad doesn't recognize iTune password

    The issue occur again when I tried to update my iPad with iOS 8. I thought upgrading bu connection to laptop would solve this but after completed it seems to get worst now cause I couldn't change my password or restore my device via iTune anymore. I

  • Inventory of Supplies

    Hi Guru's, We would like to retain the inventory of supplies in SAP for one of our plants,  but we do not want to cost the supplies in the BOM.  Our goals are as follows: 1.  Receive the supplies into inventory, primarily for tracking purposes, but d

  • Upgrade to APEX 4.0

    Hello to everybody, i have a problem and i dont understand why. This problem is very popular but all solutions will not work or better i say i dont understand the solutions. I wanted to upgrade my apex to 4.0. At the moment i use Oracle 10g Express E