Thanks !!!
It runs at the "ROOT"!!!!
thank you very much

2006/12/29, Steve Shucker <[EMAIL PROTECTED]>:
When I install tomcat, I usually remove or rename webapps/ROOT to
something else.  If I want to deploy an app to the root context, I just
name the war file ROOT.war and let tomcat autodeploy it.  For maven's
tomcat plugin, I provide a context.xml file that specifies the root
context.  Tomcat's autodeployer doesn't honor that paths in context.xml,
though.

To get a default page without needing the /app in your URL, add the
following to your web.xml

  <welcome-file-list>
      <welcome-file>app</welcome-file>
  </welcome-file-list>

You can put either your application path (app) or a friendly url to a
page (Home.page if you've got a <servlet-mapping> for *.page)

-Steve

Mahmut Izci wrote:
> Huang Gehua schrieb:
>> Always our project is run under the path with a context path ,For
>> example:
>> http://someHost:8080/prjectName/app
>>
>> If i want use url like this [http://someHost:8080/app] to visit my app
>> ,How to do?
> Tomcat always defines a default context named "ROOT" under webapps
> folder. Normally you can find the tomcat documentation in it.
> You can override this default context.
>
> <Host><Context path="" docBase="projectName" debug="0"/></Host>
>>
>> i have try to build a Virtual host in my tomcat like this
>>      <Host name="10.0.0.201" appBase="E:\project\cnbrn"
>>       unpackWARs="true" autoDeploy="true"
>>       xmlValidation="false" xmlNamespaceAware="false">
>>
>>       <Context path="" docBase="." debug="0"/>
>>       </Host>
>> i can visit my app use ugly url like this
>> http://someHost:8080/app?service=page&page=somePage
>> But i cant visit page use friendly url!!!!
>> How to resolve the problem???
> Did you try "http://someHost:8080/somePage.html"; ?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to