I always use....

String next_url = "http://www.google.com/search?q="; + soeg + "&hl=da&lr=";

<jsp:forward page="<%= next_url %>"/>

-----Original Message-----
From: Jeffrey Owens [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 4:24 PM
To: Jetspeed Users List
Subject: Re: Redirecting in jsp



I am also having the same problem. Is this a bug or are we doing something
wrong?
 Steen Bjerre Andersen wrote:Hi

I'm trying to do a redirect in a jsp page, but I can't get it to work. Can
somebody help me out? I've tried response.sendRedirect(url) with no luck,
then I tried



String maskine=request.getParameter("mask");
String soeg = request.getParameter("soeg");

RunData data = (RunData)request.getAttribute("rundata");

if ("google".equals(maskine)) {
                data.setRedirectURI("http://www.google.com/search?q="; +
                        soeg + "&hl=da&lr=");

        }
%>
.....




I can get the values in the hidden fields in my form, but the redirect will
not work.


Regards

-Steen


--
To unsubscribe, e-mail:
For additional commands, e-mail:


Jeffrey Owens


---------------------------------
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to