Re: Annotation example

2015-11-10 Thread Lukasz Lenart
2015-11-10 22:38 GMT+01:00 José Antonio Delgado Trujillo : > I did it ( put the relative path). > Now the error is another. > The web page has a redirect loop > ERR_TO_MANY_REDIRECT. Use incognito mode in your browser, Chrome does stupid things and tries to predict user's actions :P Or use curl h

Re: Annotation example

2015-11-10 Thread José Antonio Delgado Trujillo
I did it ( put the relative path). Now the error is another. The web page has a redirect loop ERR_TO_MANY_REDIRECT. I don’t understand what’s happening. If i delete the /webapp/index.jsp and the welcome file list in web.xml then all it’s OK I put in the browser localhost:8080/annotations or l

Re: Annotation example

2015-11-10 Thread Lukasz Lenart
Issue fixed, do as Chris said! Just pushed fix to Git with relative path (<% response.sendRedirect("index"); %>) instead of absolute (<% response.sendRedirect("/index"); %>) - thanks Chris! 2015-11-10 9:04 GMT+01:00 José Antonio Delgado Trujillo : > I use mvn package and then put the war in the de

Re: Annotation example

2015-11-10 Thread Chris
Hello, There are two index.jsp files , but not in the same directory. The web.xml defines the welcome file webapp/index.jsp         index.jsp     If welcome-file-list entry doesn't exist in web.xml file, priority goes to index.html file then index.htm and at last index.jsp file. Here, yo

Re: Annotation example

2015-11-10 Thread José Antonio Delgado Trujillo
I use mvn package and then put the war in the deployment folder of wildfly 9. El 10/11/2015 6:42, "Lukasz Lenart" escribió: > 2015-11-09 21:13 GMT+01:00 José Antonio Delgado Trujillo < > jadt...@gmail.com>: > > i have the same in the /webapp/index > > But i have modified the POM > > i compile wit

Re: Annotation example

2015-11-09 Thread Lukasz Lenart
2015-11-09 21:13 GMT+01:00 José Antonio Delgado Trujillo : > i have the same in the /webapp/index > But i have modified the POM > i compile with maven but i use wildly as server. Which Wildfly version do you use? And I assume that it works with "mvn jetty:run" for you? Regards -- Łukasz + 48 60

Re: Annotation example

2015-11-09 Thread José Antonio Delgado Trujillo
actionless result (has neither action class nor > result) so by default the convention plugin look into > /WEB-INF/content/index.jsp > > What is happening? > Why the error message NOT FOUND? > > >> On 09 Nov 2015, at 07:02, Lukasz Lenart > <mailto:lukaszlen...@apa

Re: Annotation example

2015-11-09 Thread Lukasz Lenart
the action index is an actionless result (has neither action class nor > result) so by default the convention plugin look into > /WEB-INF/content/index.jsp > > What is happening? > Why the error message NOT FOUND? > > > On 09 Nov 2015, at 07:02, Lukasz Lenart wrote: > &

Re: Annotation example

2015-11-09 Thread José Antonio Delgado Trujillo
hy the error message NOT FOUND? > On 09 Nov 2015, at 07:02, Lukasz Lenart wrote: > > 2015-11-08 22:03 GMT+01:00 José Antonio Delgado Trujillo : >> I’ve problem with the annotation example. >> >> I’ve added the convention-plugin dependency in my POM. >> But when i

Re: Annotation example

2015-11-09 Thread José Antonio Delgado Trujillo
gt; >> From: jadt...@gmail.com >> Subject: Annotation example >> Date: Sun, 8 Nov 2015 21:03:13 + >> To: user@struts.apache.org >> >> I’ve problem with the annotation example. >> >> I’ve added the convention-plugin dependency in my PO

Re: Annotation example

2015-11-08 Thread Lukasz Lenart
2015-11-08 22:03 GMT+01:00 José Antonio Delgado Trujillo : > I’ve problem with the annotation example. > > I’ve added the convention-plugin dependency in my POM. > But when i put localhost:8080/annotations/index tsp the result is NOT FOUND > PAGE > > However when i copy the i

RE: Annotation example

2015-11-08 Thread Martin Gainty
> From: jadt...@gmail.com > Subject: Annotation example > Date: Sun, 8 Nov 2015 21:03:13 + > To: user@struts.apache.org > > I’ve problem with the annotation example. > > I’ve added the convention-plugin dep

Annotation example

2015-11-08 Thread José Antonio Delgado Trujillo
I’ve problem with the annotation example. I’ve added the convention-plugin dependency in my POM. But when i put localhost:8080/annotations/index tsp the result is NOT FOUND PAGE However when i copy the index.jsp in /src/main/webapp all is correct. I’m using wildly 9 as server. My POM is: http