Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
2 replies
Subscribers
5 subscribers
Views
1676 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Is it possible to render CSS/JS files within Custom Servlet Plugin ? If yes
yogeshs
over 8 years ago
Is it possible to render CSS/JS files within Custom Servlet Plugin ?
If yes, then how can we render the same?
Thanks,
Yogesh
OriginalPostID-157848
OriginalPostID-157848
Discussion posts and replies are publicly visible
0
sariqs
over 8 years ago
Can you please describe in detail what exactly you are trying to achieve ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohanp
over 8 years ago
There are two ways you can render CSS/JS in Custom plugin, though Appian dose not recommend first way
1) By Keeping your CSS and JS file into Appian product base folder structure(ear\\suite.ear\\web.war\\..) and than refer these files into your HTML
<script type="text/javascript" src="js/your.js"></script>
<link rel="stylesheet" type="text/css" href="css/your.css">
2) By Keeping CSS and JS folder into same Plugin folder and refer these files into HTML
// To include CSS
<style>
#include("css/your.css")
</style>
// To include JS
<script language="javascript" type="text/javascript">
#include("js/your.js")
</script>
Have a look at com.appiancorp.suite.cfg.CustomBrandingService to refer style into your java servlet
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel