Response.Redirect of ASP to JSP

Hi,

What's the equivalent of ASP's Response.Redirect("url") command in JSP? How can I convert an ASP code like

<%
if (!firsttime)
{
Response.Redirect("ExistingUser.asp");
}
%>

in JSP?

thank you!

Comments

  • in JSP it would be:
    <%
    if (!firsttime)
    {
    response.sendRedirect("ExistingUser.asp");
    }
    %>

    OR

    <%
    if (!firsttime)
    {
    response.sendRedirect(response.encodeURL("ExistingUser.asp"));
    }
    %>

    where response is a pre-defined object, i dont know how it it in ASP
  • thank you!

    : in JSP it would be:
    : <%
    : if (!firsttime)
    : {
    : response.sendRedirect("ExistingUser.asp");
    : }
    : %>
    :
    : OR
    :
    : <%
    : if (!firsttime)
    : {
    : response.sendRedirect(response.encodeURL("ExistingUser.asp"));
    : }
    : %>
    :
    : where response is a pre-defined object, i dont know how it it in ASP
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories