www.webdeveloper.com
Results 1 to 4 of 4

Thread: A question about redirecting some way other than <% response.SendRedirect(""); %>

  1. #1
    Join Date
    Oct 2008
    Location
    Bellevue, WA area
    Posts
    28

    A question about redirecting some way other than <% response.SendRedirect(""); %>

    I am seeking a way to redirect and application after responding to it with a response.setStatus(response.SC_OK) status message(s).

    Is there some other way to achieve a redirect and would the following be one of those solutions:

    Code:
    <% response.setStatus(response.SC_MOVED_TEMPORARILY); %>
    <% response.setHeader("Location","http://www.somesite.com"); %>
    or even...

    Code:
    <% response.setStatus(307); %>
    <% response.setHeader("Location","http://www.somesite.com"); %>
    Second question on this, if HTTP POST parameters are being sent along to the first address, will this (or any) redirect method (besides appending them in a GET URL string) forward them along as POST values to the second (redirect) URL?

  2. #2
    Join Date
    Jun 2009
    Posts
    98
    Are you having a problem with these examples?

    I assume you have them inside a try block.

  3. #3
    Join Date
    Apr 2005
    Posts
    634
    have you look into this?
    "Java is great, PHP sucks and .NET can't scale" - Shaun Connoly, JBoss's vice president of product development. April 5, 2006

  4. #4
    Join Date
    Oct 2008
    Location
    Bellevue, WA area
    Posts
    28
    Quote Originally Posted by sirpelidor View Post
    have you look into this?
    No, I have not but will. Thank you for sending me this link.

    On a side note, it seems the farther and farther I get into Java, the more I realize I'm fooling myself if I think I'm going to be able to do much with either just scriptlets or JSTL EL.

    I'm more of a web designer by experience and so learning full blown Java was not something I wanted to get into. I wanted to be able to throw in the occasional server-side code snippet here or there (my background being mostly in PHP) and not have to develop in NetBeans or Ganymede and compile a class for use on a front-facing web page.

    However, any more it looks like I'm going to need to learn it from the ground (Java) up to really move my web development skills forward on our OpenCMS platform.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles