Assume the following servlet definition:
<servletname="Build My Servlet"
<description>Serves up build stuff</description>
<resource type="freemarker" name="edit"location="/templates/myServletTemplate.ftl"/>
From within the servlet class, and specifically the doGet method, how do I get ahold of that resources? I'd like to grab an instance of ModuleDescriptor somehow so that I can do something like the below but I can't seem to make anything work. Any suggestions would be great. Thanks.
ResourceLocation resourceLocation = moduleDescriptor.getResourceLocation("freemarker", "edit");
Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot