Change welcome file for webapp

Hi,
I just installed SunOne web server 6.1 SP4, and deployed the [simple] webapp coming with the server distribution by following the steps in "Sun One Web Server 6.1 Getting Started Guide". I pointed my browser to http://my-sunone-61-server/simple, I got the index page for [simple] webapp. Easy !
I want to see if I can change the welcome page for the webapp, so I create a login.html in the root directory for the [simple] webapp, change the welcom-file from index.html to login.html in web.xml, and restart the server. Now I expect to get the login page when I point my browser to http://my-sunone-61-server/simple, I thought this should be simple and straightforward enough. But unfortunately it is not. The login page does not show up. I still get the index page.
Do I have to add the login.html to the admin server's index filenames list ? Or am I missing anything in my configuration? Please advice. Thx.

If you config the web.xml as this:
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>The <welcom-file-list/> unit must be the last unit of web.xml just like this:
<web-app>
<servlet-mapping>
<servlet-name>aa</servlet-name>
<url-pattern>/aaServlet</url-pattern>
</servlet-mapping>
<mime-mapping>
<extension>doc</extension>
<mime-type>application/msword</mime-type>
</mime-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list></web-app>
I don't know whether it is helpful with you.But try ! Good Luck!

Similar Messages

  • What can i do for change CMYK file for RGB file?

    what can i do for change CMYK file for RGB file, in Photoshop?
    I have to upload BEHANCE.. so please teach me, hurry.

    In Photoshop, you just change the image mode in the Image > Mode menu. Pretty basic stuff. You might want to spend some time reading some manuals to get the most of all the money you're paying.

  • Welcome file for desktop

    Hi all,
    I have set the welcome file - abc.portal - in web.xml. It works if we use file-based portal and doesn't work for desktop. In order to make web.xml work for all situations, how should I set the welcome file for portal? Thanks in advance.

    Thank you for your response.
    the welcome file defined like this in web.xml:
    <welcome-file-list>
    <welcome-file>abc.portal</welcome-file>
    </welcome-file-list>
    And this file can be access through http://mydomain/mycontext.
    However, after I created a desktop, the URL for the desktop becomes http://mydomain/mycontext/appmanager/streamportal/desktop, so there is no way to find the abc.portal from there.

  • Not able to change welcome file in tomcat 5?

    I use tomcat 5.0.24
    If i try to change the welcome file from /conf/web.xml its not working. why?
    <welcome-file-list>
         <welcome-file>myProject/index.jsp</welcome-file>
         <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    thank u
    joe

    What I understood from your problem is that you want the root context to redirect to your application. For example, if you open tomcat main application (which ran from ROOT context) you want it to redirect it to your application. Right?
    The safest way is already recommended in an earlier post. What you do is,
    1. Open your application (e.g. http://localhost:8080/myapplication/index.jsp)
    2. go to the tomcat ROOT folder (C:\tomcat5520\webapps\ROOT).
    3. Locat index.jsp file
    4. Edit the file and replace the complete code with <jsp:forward page="myapplication/index.jsp">
    5. Save and close the application and check the tomcat root context. (http://localhost:8080/)
    Hope it helps.

  • Is it mandatory for changing conf files for weblogic 10.1.2 to 10.3.5

    Hi Whom it may concern,
    we are going to version changing from weblogic10g to 10.3.5,is it mandatory to change the configuration files like application-client.xml,orion-ejb-jar.xml,orion-application-client.xm to weblogic-ejb-jar.xmll,please let me know.
    Thanks in advance.
    Regards,
    Venkatesh
    Edited by: 1002131 on Apr 24, 2013 1:20 AM

    Hi Venkatesh,
    WebLogic Server will not be able to understand ,orion-ejb-jar.xml, orion-application-client.xml deployment descriptors.
    I believe it is a application which you have deployed on Oc4j Container.
    You need to migrate your application using the Smart upgrade tool.
    The Smart upgrade tool helps you to migrate the application and generates the necessary weblogic specific deployment descriptors and also suggests you the configuration changes by reading your oc4j configurations, to be made compatible and deployable on Weblogic environment.
    Please check the below doc.
    http://docs.oracle.com/cd/E16764_01/doc.1111/e15878/intro.htm
    Hope this helps!!
    Thanks,
    Vijaya

  • Changing source file for file sender adapter in adapter module

    Hi guys!
    3rd party partner send us files, which are not acceptable by file adapter, so we need to implement (I suppose) adapter module in file sender adapter to correct the file format before it is taken by standard adapter. I have no experience in this development field. Could you give me:
    1, whether it is possible (changing file contents before it is taken by standard file sender adapter)
    2. any ideas, where to start with the development (pdf with info etc.)
    Thanx a lot!
    Olian

    <i>2. any ideas, where to start with the development (pdf with info etc.)</i>
    >>>>>
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c4c81
    <i>1, whether it is possible (changing file contents before it is taken by standard file sender adapter)</i>
    >>
    yes you can achieve this in the logic in a module

  • How to set two different welcome-file to different servlets in web.xml

    Hi friends,
    Can some one help with web.xml file
    I have to different servlets in applications.
    I want to set two different welcome files for my two different
    servlets in web.xml
    Please, can some one give me sample code to achieve this.
    Here web.xml code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app PUBLIC
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>     
         <servlet>
              <servlet-name>reports</servlet-name>
              <servlet-class>com.caremark.ivr.servlet.IvrReportsServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>reports</servlet-name>
              <url-pattern>/reports</url-pattern>
         </servlet-mapping>
         <session-config>
              <session-timeout>30</session-timeout>
         </session-config>
         <welcome-file-list>
              <welcome-file>reportsindex.jsp</welcome-file>
         </welcome-file-list>
         <servlet>
              <servlet-name>calldetails</servlet-name>
              <servlet-class>com.caremark.ivr.servlet.IvrCallDetailsServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>calldetails</servlet-name>
              <url-pattern>/calldetails</url-pattern>
         </servlet-mapping>
    <welcome-file-list>
              <welcome-file>calldetailsindex.jsp</welcome-file>
         </welcome-file-list>
    </web-app>
    I need this fix immediately. Your help will be really appreciated. Thanks in advance.

    First of all, my understanding is that you need to have a Servlet 2.4 complaint server to do this...Given that, you're supposed to be able to simply specify the Name of the servlet as the welcome-file to get it to work. For example:
    Your servlet section:
    <servlet>
      <servlet-name>Controller</servlet-name>
      <servlet-class>com.company.ControllerServlet</servlet-class>
    </servlet>Now you would add the following to your welcome file list:
    <welcome-file-list>
      <welcome-file>Controller</welcome-file>
    </welcome-file-list>Note that you use the servlet-name value from the servlet definition, NOT the url-mapping from the servlet-mapping section.
    Please note that I cannot verify this as I am running a 2.3 server at home. When I get to work Friday I can test on a 2.4 machine. However this shouldn't take you more than a minute to test.
    Note that I did try this on the 2.3 compliant server and it did NOT work (as I expected)...
    HTH.

  • Changing the order for printing portfolio files in adobe acrobat 9 pro

    Does anyone know how to change the order for printing pdf files that are part of a portfolio in adobe acrobat 9 pro?  The documentation seems to say that it prints files alphabetically by filename rather than by the internal sort order.  This won't work for me. Any ideas? Thanks.

    Question1: No.
    Question2: No.

  • How do i change the file preview image for mp4 files?  I replaced the image but it doesnt show in my dock, instead it shows the first still of a movie

    http://imageshack.us/photo/my-images/21/screenshot07m.jpg/
    http://imageshack.us/photo/my-images/39/screenshot04s.jpg/
    pls help. i change the file preview of a movie file, and it shows that i have changed the preview in finder but when i open the folder on my dock, it shows the still of the movie instead.
    the image shows the film the hangover as an example. the movie poster is visible in finder, but reverts to a default movie still from the dock. this only seems to occur for mp4 files.

    its nothing to do with itunes, its movies form the internet. i got the file preview by taking an image off the internet, pressing command c and pasting it on top of the small icon in the get info section

  • The backup files for my devices are saved to my internal hard drive. I have a small internal hard drive and would like them to be saved to an external drive. How can I change where iTunes automatically backs up to?

    The backup files for my devices are saved to my internal hard drive. I have a small internal hard drive and would like them to be saved to an external drive. How can I change where iTunes automatically backs up to?

    This has nothing to do with iTunes as iTunes provides no way to move or relocate the backup files.
    A search of google or the fourms would reveal ways to create a folder link to relocate the physical location where the files are stored.

  • My MacBook Pro keeps making copies of a document that I am trying to save. I don't want to duplicate the file. I only want to save it on both my hard drive and my external hard drive. I do not want to change its name for every save, which the computer see

    My MacBook Pro keeps making copies of a document that I am trying to save. I don't want to duplicate the file. I only want to save it on both my hard drive and my external hard drive. I do not want to change its name for every save, which the computer seems insistent on doing. Help!!

    11lizzyp wrote:
    can't be saved because the file is read-only.
    I did not create the file to be read-only. I created to be able to continue to add to it as I work on it.
    More on versions here:
    http://support.apple.com/kb/ht4753
    local snapshots:
    http://support.apple.com/kb/HT4878
    Sounds like a permissions problem ie read only.
    If running repair permissions from your DiskUtility.app does not sort it,
    Someone should jump in here with erudite and concise fix.

  • How to load delta, changing the name of file for every day with open hub?

    Hi gurus,
    I load daily delta data from ODS to flat file, using open hub.
    The file is located on server. Now, if I do delta load from ODS to flat file, every day the file is overwritten, because it has the same name.
    I want to load delta data everyday to different file name, for example BW_20060101 , BW_20060102, BW_2006_01_03 ....
    How do I do that?
    Best regards,
    Uros

    Hi Uros,
    This thread may give you some idea
    Changing the file name n Flat file Extraction
    https://websmp107.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700002201112003E
    Regards,
    BVC

  • I have Adobe Photoshop Elements 10 plus I create PDF files for work some are scan pdf docs. When I install Photoshop Elements 10 it DOES convert all the PDF files to Photoshop Elements-10 Docs. it even changes and shows the PSE-10 Icon. So I am alway inst

    I have Adobe Photoshop Elements 10 plus I create PDF files for work some are scan pdf docs. When I install Photoshop Elements 10 it DOES convert all the PDF files to Photoshop Elements-10 Docs. it even changes and shows the PSE-10 Icon. So I am alway installing PSE-10 or uninstalling it. If I send the  PDF file that has been automatically converted to a PSE-10 the person I send the file to can not open it because they do not have PSE-10. What can I do to stop PSE-10 from converting my PDF files? Don't tell me to upgrade PSE-10 I tried their on-line program and  it is too advance for a hobby photographer like myself and their Help Desk is impossible to reach.

    Hi,
    Can you please share the logs?
    You can use the Adobe  Log Collector tool (Log Collector Tool) and share the corresponding zip file @ [email protected]
    Thanks,
    Shikha

  • Changing "normal size" for QT file?

    I am not sure what this is but I guess it is the default size of the movie when it opens. Is there a way to change this value for a movie? I have looked at the AppleScript dictionary, but cannot see it listed.

    I come from the "old" Internet where file size is important. Big files don't work well with my dial-up so I've learned some tricks to keep my file sizes small.
    http://developer.apple.com/samplecode/samplemakeeffectmovie/samplemakeeffectmovi e.dmg
    I don't know how this app may work on an Intel machine. Rosseta is required.
    Its purpose was to combine two movie files and allow a transition (millions of combinations). Since I was using still image files I first had to give them "time". I added them "scaled" to a ten second sound file then extracted this new 10 second video. Still file sized as if a single image.
    Once I had merged two of these new files it became a new .mov file. Then it was copy/add scaled to add them all into a new file (the sound track). Last was the Texas map over the entire file.
    Try doing that with iMovie!
    And an iMovie file would have measured fifty times larger in file size.
    Tips and tricks can be found in my book.
    Terms of these Discussions require I state I may receive compensation from the link above.

  • How to change the width for adf shuttle without modify the skin file

    Dear Professionals
    I haven an ADF Shuttle component in my jsp screen , How can i change the width for the two boxes without modify the skin files.(I know i can do that by skin but what i want to change one shuttle just in one screen not change all shuttles on other screens).
    Regards
    Wish79

    Okay, I didnt try with the trinidad selectmanyshuttle, but this worked for me on the af:selectmanyshuttle..
            <af:selectManyShuttle label="Label 1" styleClass="mycustcss">
              <af:selectItem label="Label1" value="value1"/>
              <af:selectItem label="Label2" value="value2"/>
            </af:selectManyShuttle>
            <af:selectManyShuttle label="Label 1">
              <af:selectItem label="Label1" value="value1"/>
              <af:selectItem label="Label2" value="value2"/>
            </af:selectManyShuttle>        And in my css file, I have
    af|selectManyShuttle.mycustcss::content { width: 800.0px;}
    The first selectManyShuttle came up very wide and the second one came up in the default width..
    Julian.

Maybe you are looking for