Re: [solved] How to work with response.sendRedirect() and jsp:forward ?

Splash Forums PrettyFaces Users [solved] How to work with response.sendRedirect() and jsp:forward ? Re: [solved] How to work with response.sendRedirect() and jsp:forward ?

#19895

mohamida
Participant

Sorry for my stupid question.

I didn’t know how to work with the response.sendRedirect() command in my page.

In fact, i got a page like this:

<html>

<head>

<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″>

<title>redirection</title>

</head>

<body>

<%

response.sendRedirect(“faces/index.jsp”);

%>

</body>

</html>

What i wanted is to redirect to that page with a pretty Link (for example faces/prettyLink).

The solution is to simply put that pretty link in that command.

<html>

<head>

<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″>

<title>redirection</title>

</head>

<body>

<%

response.sendRedirect(“faces/prettyLink”);

%>

</body>

</html>

Sorry again ! :D