If I remember correctly, from looking at the source code, Struts determines
what extension (or prefix) to add to the request. If /* is used I could see
how it could screw things up.  You don't want images and things like that
going through Struts anyway, I wouldn't think.

Why do you want to do /* (at least for Struts URL pattern)?


-----Original Message-----
From: Paul Yunusov [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2003 11:05 AM
To: [EMAIL PROTECTED]
Subject: Mapping Struts controller servlet to webapp root: trouble

I was wondering if anyone has heard of issues arising when the contoller is 
mapped to a webapp's root.

I am talking about this:

<servlet-mapping>
  <servlet-name>action</servlet-name>
  <url-pattern>/*</url-pattern>
</servlet-mapping>

where "action" is the Struts controller.

Struts seems to return a 400 error with such mapping when it tries to make a

forward from an Action instance saying that "the request was syntactically 
incorrect".

<url-pattern>/struts/*</url-pattern> or <url-pattern>*.do</url-pattern> are 
commong but I was wondering about the "/*" mapping. Anyone heard of any 
issues with this?
Thanks,

Paul


---------------------------------------------------------------------
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