Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8690723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:57:47+00:00 2026-06-12T23:57:47+00:00

Based on certain condition in my controller, I want to direct the user to

  • 0

Based on certain condition in my controller, I want to direct the user to an error page, which I am doing now.

when error page is displayed to user, I want the user to be then redirected to a specific retry page.

Is this the right way to do it using:

<meta http-equiv="refresh" content="3; url=http://www.somewhere.com/" /> 

or should i use javascript to do the redirect based on timer?

To get the right url I could put the url in flash scope and read them and place in above string

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T23:57:48+00:00Added an answer on June 12, 2026 at 11:57 pm

    Why are you gonna make a redirect from the HTML level, while you can do it without any problems in your controller ? Play 2, Java:

    public static Result something(){
        if (someCondition){
            return redirect(routes.Application.errorAction());
        }
    
        return ok("Render here not redirected view...");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In My HTML Page I want to display certain Number of Buttons Based on
I have a gridview which generate a link based on certain condition inside the
I have a page where based on certain conditions I am either doing a
i'm trying to print a record in NVelocity based on certain condition: Below is
I have a textbox and dropdown inside a <td> based on certain condition I'll
I have to show a page from my php script based on certain conditions.
I want to populate some cells given certain condition. The thing is, I have
I am in process to apply URL rewriting rule based on certain condition in
I want to include different dll in the installation based on certain values. So,
Need your help to get the max of CAP_PRICE based on certain criteria in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.