My question is where does the container expect to find the <ARTIFACT-ID>.js and <ARTIFACT-ID>.css files?
More specifically in the servlet code how do I construct the:
<script type='' src=''></script> <link rel='' href='>
so that the running servlet can find them. Or are they not required since their paths are already in the plugin descriptor?
In atlassian-plugin.xml you have something like this:
<web-resource key="my-web-resources" name=" Web Resource"> <resource name="list.js" type="download" location="js/list.js"/> <resource name="list.css" type="download" location="css/list.css"/> <resource name="images/" type="download" location="images"/> </web-resource>
In your servlet template, add...
...where in your pom.xml groupId is com.example.confluence.plugin and artifactId is plugin-artifact-id.
This will inject your JS & CSS in the correct place in the header.
This assumes that you're using velocity templates in your servlet code, just like the generated LicenseServlet.
I do not fully understand how to use velocity templates yet. This is a Calendar plugin that was a stand-alone web-app and I am currently trying to get it to run as a servlet plugin.
So one follow-up question would be, are there any velocity template functions that generate tables?
Second, If I use the current html print statements, how do I construct manually, what would be injected in the header?
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Atlas Camp is our developer event which will take place in Barcelona, Spain from the 6th -7th of September . This is a great opportunity to meet other developers and get n...
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
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs