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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:21:32+00:00 2026-06-03T13:21:32+00:00

i am trying to include a jsp, similar to how we include the jsp

  • 0

i am trying to include a jsp, similar to how we include the jsp within jsp by using tag. But couldnt get this working. Tried with the template as well http://grails.1312388.n4.nabble.com/Including-a-jsp-within-a-gsp-td1313927.html
didnt work either.

  • 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-03T13:21:33+00:00Added an answer on June 3, 2026 at 1:21 pm

    In the link you included, Graeme says:

    Its not possibly to a include a JSP within a GSP at the moment

    Therefore, you cannot do what you are asking. Why are you trying to mix a JSP in with a GSP? A JSP is just a GSP with less functionality.

    My guess is you have an existing JSP with a lot of non-display logic embedded in it. If that’s the case, don’t do that.

    JSPs and GSPs are for rendering the view. They should never perform data lookup, or handle complex logic. Those things usually should be handled by services within the controller (or in the controller directly in some cases), or wrapped up in tag libraries if they are part of the display logic.

    If you want to include one page in another, you put the file in grails-app/views/some/path/ and name it _myfile.gsp. Then you include it using <g:render template="/some/path/myfile/>. Note that the file must start with an underscore (_), and end with .gsp, but the template reference does not have either.

    If you have existing JSP tag libraries, you can reuse these in your GSP files, which might help.

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

Sidebar

Related Questions

I'm trying to compile our jsp files using jspc within gradle but am getting
I'm using JSF-2.0 and I'm trying to include a jsp as a header for
I'm trying to get tiles 2 working with JSP. I'm getting a null pointer
I'm trying include this barcode source code Stefanhafeneger - Barcode github.com to my project
I'm trying to include an image in an email, which is being sent using
I am trying to include the Zend_Service_Amazon_S3 file by using require_once 'Zend/Service/Amazon/S3.php'; I have
I am trying to include a JSP page after the end of a filter.
I'm trying to include a jsp page from a servlet: RequestDispatcher rd = ctx.getRequestDispatcher(
I'm trying to include a html file using the following syntax: <%@ include file=path/to/file.html
Sounds simple enough...but I've been plugging away at this, trying to find the one

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.