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 8200849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:35:38+00:00 2026-06-07T06:35:38+00:00

I have a mapping for 500 errors in my UrlMapings which renders a custom

  • 0

I have a mapping for “500” errors in my UrlMapings which renders a custom error page and it works fine, except for when the exception happens in the custom taglib implementation or in part included through g:include.

If that happens the error page gets rendered as a part of the surround layout in a place where the problematic tag or g:include was.

I understand that this is an expected behavior but is there a way to force such an error to result in redirect or rendering the error page outside of the parent layout instead of ending with a page containing partially rendered content and several error page parts in it?

  • 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-07T06:35:40+00:00Added an answer on June 7, 2026 at 6:35 am

    I usually resolve this issue outside of the application: In production I usually have an nginx in front of my tomcat. This will intercept all pages, which have an 500 http code in the header and show up a static error page:

    server {
        [..]
    
        location / {
                proxy_pass        http://localhost:8080/grailsAppName;
                proxy_set_header  X-Real-IP  $remote_addr;
                proxy_set_header Host $host;
        }
    
        error_page 500 502 503 504  /500.html;
    
        location = /500.html {
                root  /var/www/errors-grailsAppName;
        }
     }
    

    This way, it doesn’t matter whether a sub view is broken or the action code itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to have a mapping which maps two string into one string.
I have a nhibernate 3.2 query which returns the first 500 Intervention items (in
I have a mapping in NHibernate that works like so: <?xml version=1.0 encoding=utf-8 ?>
I have a very simple mapping which looks like this (I streamlined the example
I have a JSP page in which there is a hyperlink to add a
I have a code which throws a specific type of exception like this: throw
I have NH mapping public class TblContentMap : ClassMap<TblContent> { public TblContentMap() { Table(tbl_content);
I have hash mapping H = { alc => AL, alco => AL, alcoh
I would like to have a mapping function that does this: public static void
I have a short access/mySQL question. I have a mapping table on the format

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.