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

  • SEARCH
  • Home
  • 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 6168941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:46:24+00:00 2026-05-23T22:46:24+00:00

When you compile a grails war, I understand that the .groovy code is compiled

  • 0

When you compile a grails war, I understand that the .groovy code is compiled in to bytecode class files, but I don’t understand how the container (say, tomcat), knows how to compile the GSPs when they are requested. Do the containers understand GSP? Does the fact that grails is installed on the server hook into the containers?

Also, when the GSP is used for the first time, it is compiled then on demand and only once. Is this correct? Thanks.

  • 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-05-23T22:46:25+00:00Added an answer on May 23, 2026 at 10:46 pm

    Do the containers understand GSP?

    The GSPs are actually compiled into class files when the war is built, and not at runtime by tomcat – if you unzip the war file, you can look at what it does (look at the unzipped WEB-INF/classes directory):

    ...
    gsp_appname_controllerNameviewName_gsp.class
    gsp_appname_controllerNameanotherViewName_gsp.class
    ...
    

    The container doesn’t need to do anything at runtime, since everything’s pre-compiled.

    Does the fact that grails is installed on the server hook into the containers?

    It does not; everything needed for the application to run is included in the war, so grails being installed on the container’s server makes no difference.

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

Sidebar

Related Questions

Will groovy (grails) give you compile time checking like java? If you always specify
Can someone tell me why this Grails domain class will not compile (at runtime)?
Grails have cofig for spring bean called resources.groovy . And as i understand from
I can't compile the following code using g++ 4.1.2: #include <memory> class A {
I installed Quartz Plugin in a grails project but when I compile , It
Is it possible to compile and sign grails plug-in? I am thinking about distributing
I would like to compile a DLL under Visual Studio 2008 that depends on
When we compile a dll using __stdcall inside visual studio 2008 the compiled function
Let's compile a list of tips. (Understandably there will be some subjectivity involved, but
I'm trying to compile a Delphi 7 project that I've inherited, and I'm getting

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.