1 Replies - 334 Views - Last Post: 08 March 2019 - 02:05 AM

#1 freskapolski   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 07-March 19

Tomcat JSP strange markup tag <#

Posted 07 March 2019 - 03:42 PM

Hello All,

I am tasked with resurrecting a Tomcat Webapp that was developed back in 2009 and updated last in 2012 and has not been used since. It used to run either on Ubuntu 10 or 12 and Tomcat 6. I got the WAR file to deploy and connect to the database properly on Ubuntu 18.0.4 and Tomcat 8.5, however when I browse to the webapp in the browser I get a bunch of errors.


I took a closer look into the JSP Files and they have these tags that look like <#include "includes/kpf.jsp> <#assign pagekey="triggers"/>

An example snipping of one of the JSPs:
<html>
  <head>
    <#include "include/kp.jsp">    (Is JSP not a typo)
    <#include "include/japan.jsp"> (Is JSP not a typo)
    <script>
       <#include "js/evtscrpt.js"> (Yes it is JS not JSP)
    </script>



When I load http://myurl/webappname and go to view source the <#include > tag and any other <# > style tages are simply displayed as a part of the webpage, and you can even see it in the source.

My question would be what are these <# > tags for? Are they suppose to be server side execution or client side? I thought the directive for JSP would be <%@include file="include/kp.jsp" %>. I tried searching Google for the <# > style tags but did not get too far. I also tried an older browser, what would have been used back in the day, and that did not work either. What would I need to make this work?

Here is another snipping:
        <#if (p.detach)?exists>
                <style>
                        .detach {
                                display: none;
                        }
                </style>
        </#if>



Thanks

Is This A Good Question/Topic? 0
  • +

Replies To: Tomcat JSP strange markup tag <#

#2 andrewsw   User is offline

  • never lube your breaks
  • member icon

Reputation: 6795
  • View blog
  • Posts: 28,083
  • Joined: 12-December 12

Re: Tomcat JSP strange markup tag <#

Posted 08 March 2019 - 02:05 AM

Could be something called FreeMarker, a template engine.

I searched "<#include" (including the quotes).
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1