struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: GitHub example annotations with 2 differents files named index.jsp
Date Thu, 10 Sep 2015 06:26:48 GMT
2015-09-09 9:50 GMT+02:00 Chris <christalkto@yahoo.fr>:
> Hello,
> 2 differents files named index.jsp, exist in annotations example.
> But they are differents, and not in the same directoryDo we need this sendRedirect ?
> GitHub  apache/struts-examples/annotations/
> 1 ) src/main/webapp/index.jsp

It's a welcome-page defined in web.xml

> 2 ) src/main/webapp/WEB-INF/content/index.jsp
> <% response.sendRedirect("/index.jsp"); %>

It's used by Convention's Index action
https://github.com/apache/struts/blob/master/plugins/convention/src/main/java/org/apache/struts2/convention/PackageBasedActionConfigBuilder.java#L1041

so you can navigate to url like http://localhost:8080/index.action and
it will work (you will be redirected back to /index.jsp)


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


Mime
View raw message