Hi Gangadhar

 

 

To make that work I would complete the following two (or three) steps…

 

Step 1:

 

Mount your web application under the root rather than under a certain name. This is done as follows (in application.xml):

 

            <module>

                        <web>

                                    <web-uri>your-web.war</web-uri>

                                    <context-root></context-root>

                        </web>

            </module>

 

Notice that the <context-root> element is empty. This makes your web application available at http://xyz.com/ rather than at http://xyz.com/something .

 

 

Step 2:

 

Add your login.jsp to the list of default files as follows (in web.xml):

            <welcome-file-list>

                        <welcome-file>login.jsp</welcome-file>

            </welcome-file-list>

 

This makes sure that if you hit http://xyz.com/ in a browser the application server (in this case JBoss) returns http://xyz.com/login.jsp if such a file exists. Of course you need to make sure that the login.jsp file is available at the root of your-web.war.

 

 

The following step is unnecessary but just to give you an additional tip - Step 3:

 

In case you do not wish to place your login file in the root of your web archive you can add a welcome file called something like “automatic-forward.jsp” (in web.xml). You should then write a JSP called automatic-forward.jsp which forwards the user to the http address of the login file. This way you can put the automatic-forward.jsp in the root and have your actual login.jsp placed wherever you want it to be. This can be relevant if you have some preferred way of organizing your JSP files which does not include placing files in the root.

 

 

Hope this helps you out

 

Randahl

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Gangadhar
Sent: 9. oktober 2002
09:15
To: [EMAIL PROTECTED]
Subject: [JBoss-user] How do i Mention the welcome page

 

Hi All,

I would like to mention the welcome page as

 

How do i map it in JBOSS

 

 

Can anybody tell me how do i do it.

 

 

Thanks in Advance

Gangadhar

 

 

 
DISCLAIMER
 ---------------------------------------------------------------------------
 This email message and any attachments is confidential and intended only for
 the use of an individual or entity named above and may contain information
 that is privileged, confidential or exempt from disclosure under applicable
 law.  If you are not the intended recipient, you are notified that any
 dissemination, distribution or copying of this email is strictly prohibited.
 If you have received this email in error, please notify us immediately by
 return email or [EMAIL PROTECTED] and destroy the original message.
 Opinions, conclusions, and other information in this message that do not
 relate to the official business of SPAN, shall be understood to be neither
 given nor endorsed by SPAN
________________________________________
Mails are Scanned and Filtered for Virus
[EMAIL PROTECTED]
 




Reply via email to