Re: Integrating struts 2 with Classic JSP SERVLET /JSTL webapp

2015-05-27 Thread Kiran Badi
Hi All, I was able to integrate Struts 2 with Classic web application. Actually It took sometime for me to understand that struts ui tags gets activated only when request flows through struts filter.My bad stack trace was showing it all the time, but I never took a look at it. :( Now I have anot

Re: Integrating struts 2 with Classic JSP SERVLET /JSTL webapp

2015-05-11 Thread Kiran Badi
No Luck.It loads the page but straight away goes to error page. Let me prepare a simple use case and upload it to some public folder.Use case will have just 2 links, one with struts and another simple servlet. I cannot use exclude param constant since I have lot of servlets using annotations. On M

Re: Integrating struts 2 with Classic JSP SERVLET /JSTL webapp

2015-05-11 Thread Chris Pratt
Try adding namespace="/"to your s:url tag. (*Chris*) On May 11, 2015 10:06 AM, "Kiran Badi" wrote: > Hi Chris, it load app with welcome page with *.action mapping,but seems > like url mapping gets messed up,I get below now. > > ">Test Page > 164: > 165: > 166: > > > S

Re: Integrating struts 2 with Classic JSP SERVLET /JSTL webapp

2015-05-11 Thread Kiran Badi
Hi Chris, it load app with welcome page with *.action mapping,but seems like url mapping gets messed up,I get below now. ">Test Page 164: 165: 166: Stacktrace:] with root cause The Struts dispatcher cannot be found. This is usually caused by using Struts tags without

Re: Integrating struts 2 with Classic JSP SERVLET /JSTL webapp

2015-05-11 Thread Kiran Badi
checking chris. I think that should work.Let me check. On Mon, May 11, 2015 at 12:51 PM, Chris Pratt wrote: > If all your URLs aren't at the root (which they probably aren't), you'll > want to change your url-pattern to just *.action > (*Chris*) > On May 11, 2015 9:46 AM, "Kiran Badi" wrote:

Re: Integrating struts 2 with Classic JSP SERVLET /JSTL webapp

2015-05-11 Thread Kiran Badi
Sorry mail got send before I could complete. I have UI Tag lib on top of the page ">Test Page When i try to deploy, it fails to deploy,I am on struts 2.20 and tomcat 7.0.27 and servlet spec is 3.0 and on windows machines. SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleExcep

Re: Integrating struts 2 with Classic JSP SERVLET /JSTL webapp

2015-05-11 Thread Chris Pratt
If all your URLs aren't at the root (which they probably aren't), you'll want to change your url-pattern to just *.action (*Chris*) On May 11, 2015 9:46 AM, "Kiran Badi" wrote: > Hi Chris, > > Here is Struts 2 filter in web xml, > > > Struts 2 Filter > struts2 > > > org.apach

Re: Integrating struts 2 with Classic JSP SERVLET /JSTL webapp

2015-05-11 Thread Kiran Badi
Hi Chris, Here is Struts 2 filter in web xml, Struts 2 Filter struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 /*.action REQUEST Here is test sample with struts.xml which is web-inf/classes folder htt

Re: Integrating struts 2 with Classic JSP SERVLET /JSTL webapp

2015-05-11 Thread Christoph Nenning
> I already tried that and it's not working and it fails to deploy to tomcat. > Well, then please give us more details. You may want to have a look here: http://struts.apache.org/docs/home.html Regards, Christoph > On Monday, May 11, 2015, Christoph Nenning > wrote: > > > > Hi, > >

Re: Integrating struts 2 with Classic JSP SERVLET /JSTL webapp

2015-05-11 Thread Kiran Badi
I already tried that and it's not working and it fails to deploy to tomcat. On Monday, May 11, 2015, Christoph Nenning wrote: > > Hi, > > > > I need to integrate struts 2 with my classic web application based on > > servlet. > > > > How do I tell struts 2 intercept only requests coming from spec

Re: Integrating struts 2 with Classic JSP SERVLET /JSTL webapp

2015-05-11 Thread Christoph Nenning
> Hi, > > I need to integrate struts 2 with my classic web application based on > servlet. > > How do I tell struts 2 intercept only requests coming from specific folder > like > > com.mysite.app.xx.yy where I will placing all struts related source files ? > > Here is the link what I started