4 ms·
If By "Templating" you mean something similar to Smarty or Twig ( facilities to render pages of HTML with conditionals and variables ) then Java is a fine choic
by SavageBeast 7y ago
If By "Templating" you mean something similar to Smarty or Twig ( facilities to render pages of HTML with conditionals and variables ) then Java is a fine choice for this.
Spring is unnecessary - the Java templating mechanism is called JSP ( Java Server Pages ) and its part of the standard Java package - no additional framework is required.
https://en.wikipedia.org/wiki/JavaServer_Pages https://en.wikipedia.org/wiki/JavaServer_Pages
To do this you will need a runtime container like Apache Tomcat.
( http://www.tutorialspoint.com/articles/run-your-first-jsp-program-in-apache-tomcat-server http://www.tutorialspoint.com/articles/run-your-first-jsp-pr...)
If you're hell bent on running Spring ( its entirely not necessary ) you can use Spring MVC which is part of Spring Framework.
Here's an example
https://www.mkyong.com/spring-mvc/spring-mvc-hello-world-example/ https://www.mkyong.com/spring-mvc/spring-mvc-hello-world-exa...
- throwaway13000 7y agoThanks for the tip on JSP. I will look into it.
- deleted 7y ago[deleted]