Hi ravi_eze, One of our projects use Struts2, we have two url patterns /*.action and /webservice/*, the first one is served by Struts2 and the second is served by CXF framework directly. is this what you want?
On Wed, Jul 15, 2009 at 11:06, ravi_eze <ravichand...@ivycomptech.com>wrote: > > i didnt get u, > > did u mean that we cant map only *.action to struts filter? Or u were > telling of some workaround? Why does struts put this restriction that all > urls should pass through him? And Why does he put restrictions at container > level. > > see web.xml is the container level and i have my own applications/ filters > in it. I should be given the choice to decide what urls should go to what > and what not! Now why does struts come at this level at all??; Now that it > comes what is the work around? The Filter dispatcher documentations says > not > to use other than '/*' for url pattern. He doesnt say what i need to do if > at all i cant put /* there? > > Please help, this is unexpected behavior of our application. We were > thinking all are fine, but suddenly this file upload didnt work (of prev > jsp > application). > > any help/ ponters are of great help. > > regards, > ravi > > > Wes Wannemacher wrote: > > > > 2009/7/14 谢冬鸣 <msys....@gmail.com>: > >> Hi david, > >> I have another question, I want to forward my Struts2 result to one jsp > >> page > >> which included in one jar file, how can I locate the jsp file? You said > >> "...there are several Struts2 jars that house css and js files...", do > >> you > >> have any idea how to get these files? > >> > >> Thanks > >> > >> On Tue, Jul 14, 2009 at 23:29, Kawczynski, David > >> <david_kawczyn...@merck.com > >>> wrote: > >> > >>> 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...) > >>> > > > > As far as I know, the content that is served by struts directly (css, > > js and image files) are always mapped to URLs that start with /struts. > > It might be possible to create two mappings, one to /struts/* and > > another to *.action. As for the question above, I don't think there is > > any good way to serve a JSP out of a jar file. Rather than packaging > > your JSPs into your jar, can you configure your build to copy the JSP > > somewhere into your app so that it can be served traditionally? If you > > have to put the content into a jar, maybe try looking at freemarker. > > We use freemarker internally for generating tag output because we can > > package it in the jar files and it is more general-purpose than JSP. > > > > -Wes > > > > -- > > Wes Wannemacher > > Author - Struts 2 In Practice > > Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more > > http://www.manning.com/wannemacher > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > > -- > View this message in context: > http://www.nabble.com/how-to-configure-struts2-for--*.action--tp24481000p24491177.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 > > -- ********************************************* Xie Dongming MAIL(Gtalk):msys....@gmail.com Mobie:+86-15071342225 ********************************************* --------------------------------------------------------------------- 俺终身奋斗的最低革命纲领:农妇--山泉--有点儿田