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 Fri, 11 Sep 2015 05:55:04 GMT
2015-09-10 17:54 GMT+02:00 Chris <christalkto@yahoo.fr>:
> Thank you. I see.
>  But , Is not that a bit dangerous to let the user change the link? I prefer when Struts2
intercept the modification without error.

I don't understand what do you mean

>  Anyway, the line in the jsp index.jsp
>  <% Response.sendRedirect ("/ index.jsp"); %>
>  does not work for me, because it refers to
>  http: // localhost: 8080 / index.jsp (a blank page )And because I work with the link
> http://localhost:8080/st2_ex_16_annotations/
>
>  On my PC, I change "/index.jsp"
> into "index.jsp" or "./index.jsp "
>
>  see
>  <% Response.sendRedirect ("index.jsp"); %>
>  or
>  <% Response.sendRedirect ("./ index.jsp"); %>
>  and redirection works well. toward http: // localhost: 8080 / st2_ex_16_annotations
/ index.jsp

You are right but you are using a different context than the example
app: /st2_ex_16_annotations vs /


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