Then the answer depends on how you have your app configured.  Post the
<servlet> and <servlet-mapping> snippets, from web.xml.


On 9/8/06, liner_zhao <[EMAIL PROTECTED]> wrote:


no typing error, my context path is C:tomcat/struts_project/x.html,  the
file
is stored in the path

http:localhost:8080/struts_project/x.html,
is not displayed.







David Friedman-2 wrote:
>
> Normally a person maps *.do as the extension for a Struts servlet so it
> will
> not interfere with the display of regular files.  What are all of your
> mappings for the webapp with the "/struts_project" context path.  Also,
> you
> list .html files in your example urls but your next line states a .htm
> (not
> ending in the letter L) file.  Is that a typing error or are you really
> typing a .html URL for a .htm path.  In that case you need to remember
the
> file extension must match.
>
> Regards,
> David
>
> -----Original Message-----
> From: liner_zhao [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 08, 2006 7:10 AM
> To: user@struts.apache.org
> Subject: why an arbitrary html page can not be displayed in struts
>
> in a normal servlert project, an  arbitrary html  page can be dsplayed,
> when
> i click on the link http:localhost:8080/servlet_project/x.html
>   but in struts project  it can not be dipayed,  if when i click on the
> link
> http:localhost:8080/struts_project/x.html,
> although the x.htm file exists in the both projects, why? how can make
the
> x.htnl diplay in struts project?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context:
http://www.nabble.com/why-an--arbitrary-html-page-can-not-be-displayed-in-struts-tf2238437.html#a6212919
Sent from the Struts - User forum at Nabble.com.


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


Reply via email to