Results 1 to 3 of 3
  1. #1
    christina is offline Member
    Join Date
    Jul 2007
    Posts
    39
    Rep Power
    0

    Default response.sendRedirect problem

    I'm trying to set a HTML button that call another JSP page, using response.sendRedirect.

    Java Code:
    <input type="submit" value="ok" onClick="&lt;
    &#37;response.sendRedirect("http://exs/sdrt.jsp");
     %&gt;" />
    it doesn't work.

    what's the problem?

  2. #2
    rajesh_java is offline Member
    Join Date
    Jul 2007
    Posts
    1
    Rep Power
    0

    Smile RE: response.sendRedirect problem

    Hi,
    You can not directly use response.sendRedirect on button click event.
    Make one javascript function and after that redirect your page to required URL.

  3. #3
    christina is offline Member
    Join Date
    Jul 2007
    Posts
    39
    Rep Power
    0

    Default

    I was waiting for good news.
    haha
    Ok, I will do it
    thanks rajesh

Similar Threads

  1. response.setContentType
    By bbq in forum Java Servlet
    Replies: 3
    Last Post: 01-17-2012, 05:37 PM
  2. sendredirect not working
    By ranga in forum Java Servlet
    Replies: 0
    Last Post: 02-11-2008, 10:48 AM
  3. response.sendRedirect(url)
    By mutuah in forum Advanced Java
    Replies: 2
    Last Post: 08-07-2007, 01:56 PM
  4. help with response.sendRedirect method
    By katie in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 08-07-2007, 02:22 AM
  5. Velocity / XML response
    By sabatier in forum XML
    Replies: 0
    Last Post: 07-24-2007, 01:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •