Howdy, Stranger!

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

Categories

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

  • BreadfanBreadfan Member Posts: 22
    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
  • cristinecristine Member Posts: 13
    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.