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
i have the same in the /webapp/index But i have modified the POM i compile with maven but i use wildly as server. > On 09 Nov 2015, at 19:30, Lukasz Lenart wrote: > > Are you sure that you use the latest version from Git? Because > webapp/index.jsp looks like this > > <% response.sendRedirec

Re: Annotation example

2015-11-09 Thread Lukasz Lenart
Are you sure that you use the latest version from Git? Because webapp/index.jsp looks like this <% response.sendRedirect("/index"); %> see and I have no problems on Jetty (mvn jetty:run) [1] https://github.com/apache/struts-examples/blob/master/annotations/src/main/webapp/index.jsp Regards --

Re: Annotation example

2015-11-09 Thread José Antonio Delgado Trujillo
I don`t know what is the problem. It’s the example annotations of Getting Started Tutorial. https://github.com/apache/struts-examples/tree/master/annotations Convention plugin is set enable with maven dependency. all jsp are in

Re: Annotation example

2015-11-09 Thread José Antonio Delgado Trujillo
OK, In the example annotations of Getting started tutorial the POM set the default All the jsp are into /WEB-INF/content > On 08 Nov 2015, at 23:47, Martin Gainty wrote: > > – By default, this is set to > ${basedir}/src/main/webapp. If your static sources are in a different > location, set

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 index.jsp in /src/main/

RE: Annotation example

2015-11-08 Thread Martin Gainty
– By default, this is set to ${basedir}/src/main/webapp. If your static sources are in a different location, set this parameter accordingly.https://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin#Multiple_webapp_root_directories ? Saludos Martín