Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

conditional redirect

  Asked By: Bogart    Date: Feb 12    Category: Java    Views: 826
  

Can anyone help me with this routine I need in a web page. In plain
English:

If, when attempting to connect to www.abc.com, the page cannot be
found then
redirect to www.xyz.com
else
redirect to www.abc.com
end if


I don't care what language is used I just need it to be simple. Java
seems the obvious one though.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Nina Garcia     Answered On: Feb 12

you can use this with Jsp
<%
if (Condition== true)
response.forward("your Url 1");
else
response.forward("your Url 1");
%>

 
Didn't find what you were looking for? Find more on conditional redirect Or get search suggestion and latest updates.




Tagged: