I was in the same boat... 
One of my clients use apache httpd for all static content 
and tomcat for all dynamic content... there are several 
Struts2 jars that house css and js files.  If you don't 
map everything to the Struts2 filter your Struts2 app 
won't be as full-featured as it could be.  (Javascript 
validation won't work, any themed presentation will appear 
quite plain, etc...)

If you really want to use a non-default filter mapping 
pattern, this can be worked around... You just have to 
determine the files are returning 404 status codes to the 
browser (use firebug or yslow). Find those files in the 
struts jars, and extract them (preserving path info) to 
the web server.  


> -----Original Message-----
> From: ravi_eze [mailto:ravichand...@ivycomptech.com] 
> Sent: Tuesday, July 14, 2009 10:42 AM
> To: user@struts.apache.org
> Subject: how to configure struts2 for /*.action?
> 
> 
> hi,
> 
> We have an application in jsps. Now we added new 
> functionality using Struts
> 2. 
> 
> The jsps (not struts2 jsps) have a file upload utility ( 
> where the multi
> part form posts request to /upload.jsp). Now, this upload 
> doesnt work if we
> have the struts2 filter mapping in web.xml. If we remove teh 
> mapping then
> the upload works but not the struts2 application. 
> 
> The filter dispatcher documentation tells not to try other 
> than /* i.e.. i
> cant wrtie /*.do or /*.action here. Why so? any reason? or in 
> other words if
> i want to get this then how do i proceed? 
> 
> The filter is mapped to the end of the chain as said in the 
> documentation.
> The cleanup Action context filter is placed before its execution.
> 
> Any clues/ ideas? Please help.
> 
> regards,
> ravi
> -- 
> View this message in context: 
> http://www.nabble.com/how-to-configure-struts2-for--*.action--
> tp24481000p24481000.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to