On 2/17/06, Qiang Yu <[EMAIL PROTECTED]> wrote:
> Hello all,
> I am not sure whether it is appropriate to specify parameters in
> navigation-cases but I am trying to use it in my project:
> ...
> <navigation-case>
>       <from-outcome>Bacillus_anthracis</from-outcome>
>       
> <to-view-id>/common/misc/redirect.jsp?to=http://www.google.com</to-view-id>
>       <redirect/>
> </navigation-case>
> ...
>
> The redirect.jsp is pretty much simple:
>
> <%@ page language="java" pageEncoding="UTF-8"%>
> <%
>         String location = request.getParameter("to");
>         response.sendRedirect("http://www.google.com";);
sorry, here it should be response.sendRedirect(to);
'to' would be changed from "http://www.google.com"; to "http://www.google.jsf";




>         //response.getWriter().write(location);
> %>
>
> and I found myfaces changed location from http://www.google.com to
> http://www.google.jsf, which makes redirection impossible (though I
> solved this problem using some tricks)
>
> But my question is
> 1. Is it doable/allowable to supply parameters in navigation-cases?
> 2. If it is, why myfaces should modidy the parameter?
>
> I am using myeclipse 1.1.1
>
> Thanks a lot and have a great weekend :)
>

Reply via email to