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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:53:46+00:00 2026-06-17T04:53:46+00:00

Using Blossom 2 and Magnolia 4.5, I am trying to do something like this:

  • 0

Using Blossom 2 and Magnolia 4.5, I am trying to do something like this:

@Controller
@Template(id = "topicpages:pages/topics", title = "MyTemplate")
public class TopicTemplate {
...
@TabFactory("DialogInclude2")
public void topicTagTab2(TabBuilder tab){
tab.addInclude("topicpages/pages/topicLayout.jsp");
}
...
}

There’s a little bit more to the code, but I think this is the relevant piece. The problem is that when I attempt to include a JSP in this manner, I get the following error:
Jan 3, 2013 2:48:33 PM org.springframework.web.servlet.DispatcherServlet noHandlerFound
WARNING: No mapping found for HTTP request with URI [/.magnolia/dialogs/topicpages/pages/topicLayout.jsp] in DispatcherServlet with name ‘controller’

I am familiar with the tutorial on dialoginclude at http://wiki.magnolia-cms.com/display/WIKI/Creating+a+custom+control+with+DialogInclude, but I’m not sure how to do this: “For a dialog to use the control it needs to define a content node named controlType with a value of ‘include’ and another named file whose value is the location of the JSP to be included.” since all of my dialogs are created through Blossom.

  • 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-17T04:53:47+00:00Added an answer on June 17, 2026 at 4:53 am

    From forum.magnolia-cms.com:

    Re: Create a Custom Magnolia Control using addInclude

    2 by tmattsson on Jan 8, 2013 11:04:27 AM

    The include request made to render your control goes to /.magnolia/dialogs/topicpages/pages/topicLayout.jsp because you specify a relative path to the JSP. That’s why it starts with /.magnolia/dialogs/. If that’s not intended you should use an absolute path to your JSP. The request is handled by a Spring DispatcherServlet named controller which does not have a controller (handler) that matches this path.

    Try placing the JSP directly in the WEB-INF folder and see if you can reach it with addInclude("/WEB-INF/topicLayout.jsp").

    If you’re trying to do an include to a Spring DispatcherServlet where a controller will render the controller(handler), then you can configure it in your module descriptor and target the include to it and the controller inside it. In this case the .jsp extension isn’t necessary. It could be something like: addInclude("/custom-controls/topicLayout");

    Note that it’s always a good idea to keep JSP files in the WEB-INF folder where they’re not accessible from the outside for security reasons. Likewise you should take care that functionality you add to support your editors within the admin interface should not be publicly available from the outside. Everything mapped below /.magnolia is protected and requires login.

    Hope that helps!

    // Tobias

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

Sidebar

Related Questions

Using range() in Underscore I can make something like this: _.range(10); >> [0, 1,
using this code: Java Server side: ... out = new PrintWriter(this.client.getOutputStream(), true); ... public
Using Sinatra and DataMapper. This is my first time trying to use more than
Using Rails 3, but I guess doesn't matter. I put this in the template
Using rubular.com as a guide, I am trying to get this expression to work
Using this is very helpful when trying to generate html code in c#. var
using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
Using CI for the first time and i'm smashing my head with this seemingly
Using InteliJ IDEA , I am trying to set up multiple projects to run
Using RestKit 0.10.1, I have objects served similar to this json format: {objects: [

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.