struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Antonio Delgado Trujillo <jadt...@gmail.com>
Subject Re: Annotation example
Date Tue, 10 Nov 2015 21:38:38 GMT
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
localhost:8080/annotations/index
or
localhost:8080/annotations/index.action

and i can see the /WEB-INF/content/index.jsp

I suppose that is because the convention plugin knows the name action index like an actionless
result so lookup into content folder to render index.jsp

So the convention plugin works but something strange happen with sendRedirect.

Regards,
José A.

> On 10 Nov 2015, at 13:18, Lukasz Lenart <lukaszlenart@apache.org> wrote:
> 
> 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 <jadtmat@gmail.com>:
>> I use mvn package and then put the war in the deployment folder of wildfly
>> 9.
>> El 10/11/2015 6:42, "Lukasz Lenart" <lukaszlenart@apache.org> escribió:
>> 
>>> 2015-11-09 21:13 GMT+01:00 José Antonio Delgado Trujillo <
>>> jadtmat@gmail.com>:
>>>> 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 606 323 122 http://www.lenart.org.pl/
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>> 
>>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 


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


Mime
View raw message