1
0
-1
3 answers
- 10-1
Hi,
I have a similar issue where my static files are returning 404 even when they are in src/main/resources/resources.I reference the files in FTL as :
<#assign pluginWebPath = request.contextPath + "/web/plugins/org.joget.colorpickerr.ColorPickerPlugin">
<link rel="stylesheet" type="text/css" href="${pluginWebPath}/resources/colpick.css" />
<script type="text/javascript" src="${pluginWebPath}/resources/colpick.js"></script>and in my pom.xml:
resources/colpick.css=src/main/resources/resources/colpick.css,
resources/colpick.js=src/main/resources/resources/colpick.js,Any help is appreciated!
Add your comment... - 10-1
Hi,
You need to add another folder "resources" as below
Add your comment... - 10-1
Please provide your project structure especially inside resources folder and also make sure that the classpath and classname are correct
Add your comment...

Hi everyone,
I'm currently developing a custom Joget plugin and running into trouble when trying to load JavaScript and CSS files in my Freemarker template. All the paths are returning 404 errors, and I’m not sure what I’m missing.
Here’s how I’m referencing the files inside my
ColorPickerField.ftl:<script src="${request.contextPath}/plugin/org.joget.plugin.ColorPickerField/js/jqueryLibrary.js"></script><script src="${request.contextPath}/plugin/org.joget.plugin.ColorPickerField/js/colourpicker.js"></script>
<link rel="stylesheet" href="${request.contextPath}/plugin/org.joget.plugin.ColorPickerField/css/colpick.css" type="text/css" />