Loading ...
Sorry, an error occurred while loading the content.

Problem with wall and using includes as a templating system

Expand Messages
  • Darren
    Hello, I know this has been mentioned before but I have the problem of not being able to template a site using wall. Usually I would have: BODY
    Message 1 of 3 , May 1, 2005
    • 0 Attachment
      Hello,

      I know this has been mentioned before but I have the problem of not
      being able to "template" a site using wall. Usually I would have:

      <header.jsp>

      BODY

      <footer.jsp>

      with BODY containing static content. In this model I am not using a
      DBase for dynamic body content.

      The problem is the WALL will not let me include all the code above the
      BODY. It returns an error saying tag wall:XXXX is unterminated -
      document, body etc.

      So in every .jsp file I must have the following code:

      <%@ taglib uri="/WEB-INF/tld/wall.tld" prefix="wall" %>
      <wall:document disable_cache="true">
      <%@ include file="/i/includes/header.jsp" %>

      <wall:body>
      <%@ include file="/i/includes/skyline.jsp" %>

      <wall:block>
      ...


      I would like to have <%@ taglib uri="/WEB-INF/tld/wall.tld"
      prefix="wall" %> & <wall:document disable_cache="true"> in header.jsp
      and <wall:body> in skyline.jsp - or indeed have all of it just in
      header.jsp. When I do that though I get the above mentioned error. I
      know why it is throwing an error. Is there any way around this problem?


      header.jsp
      <wall:xmlpidtd />
      <%@ taglib prefix="c" uri="/WEB-INF/tld/c.tld" %>
      <wall:load_capabilities />
      ...
      <wall:head>
      <wall:title>WURFL <%=skylineGroup%>/</wall:title>
      </wall:head>


      skyline.jsp
      <wall:block>
      <wall:font size="+1">
      <c:if test="${capabilities.emoji && capabilities.imode_region ==
      'eu'}">&#<%= groups[groupMatch][2]%>;</c:if>
      <c:if test="${capabilities.imode_region == 'ja'}"> &#<%=
      groups[groupMatch][1]%>;</c:if>
      <c:if test="${capabilities.opwv_wml_extensions_support}"><img
      localsrc="<%= groups[groupMatch][3]%>" alt="" src=""/><img
      localsrc="blankquarter" alt="" src=""/></c:if>
      <c:if test="${capabilities.html_web_3_2}"><img src="/i/system/i/<%=
      groups[groupMatch][0]%>.gif" alt="" height="20"
      width="20"/></c:if></wall:font> <wall:font size="+1"
      color="#1f2e8a"><wall:b><%=skylineGroup%>/<%=SLP%></wall:b>
      </wall:font>
      </wall:block>
      <wall:hr color="#1f2e8a"/>

      Having double checked http://wurfl.sourceforge.net/java/submitbug.php I
      think this is all the info.

      I have put a demo page at http://ukmedia.us/i/bugs2.jsp as an example
      that moves <wall:document disable_cache="true"> from bugs2.jsp into
      header2.jsp

      Thanks
      Darren
    • Luca Passani
      I was able to reproduce the problem. I don t have a solution though. To me, this is a Tomcat bug, sice onclude should happen before any compilation takes
      Message 2 of 3 , May 2, 2005
      • 0 Attachment
        I was able to reproduce the problem. I don't have a solution though.
        To me, this is a Tomcat bug, sice onclude should happen before any
        compilation takes place.
        Having said this, the fact that the error is the same on both tomcat 4.1
        and 5.5. makes me wonder of it isn't something I am missing...

        if you happen to find more, please post. I am also curios to get to the
        end of this...

        Luca

        Darren wrote:

        >Hello,
        >
        >I know this has been mentioned before but I have the problem of not
        >being able to "template" a site using wall. Usually I would have:
        >
        ><header.jsp>
        >
        >BODY
        >
        ><footer.jsp>
        >
        >with BODY containing static content. In this model I am not using a
        >DBase for dynamic body content.
        >
        >The problem is the WALL will not let me include all the code above the
        >BODY. It returns an error saying tag wall:XXXX is unterminated -
        >document, body etc.
        >
        >So in every .jsp file I must have the following code:
        >
        ><%@ taglib uri="/WEB-INF/tld/wall.tld" prefix="wall" %>
        ><wall:document disable_cache="true">
        ><%@ include file="/i/includes/header.jsp" %>
        >
        ><wall:body>
        ><%@ include file="/i/includes/skyline.jsp" %>
        >
        ><wall:block>
        >...
        >
        >
        >I would like to have <%@ taglib uri="/WEB-INF/tld/wall.tld"
        >prefix="wall" %> & <wall:document disable_cache="true"> in header.jsp
        >and <wall:body> in skyline.jsp - or indeed have all of it just in
        >header.jsp. When I do that though I get the above mentioned error. I
        >know why it is throwing an error. Is there any way around this problem?
        >
        >
        >header.jsp
        ><wall:xmlpidtd />
        ><%@ taglib prefix="c" uri="/WEB-INF/tld/c.tld" %>
        ><wall:load_capabilities />
        >...
        ><wall:head>
        ><wall:title>WURFL <%=skylineGroup%>/</wall:title>
        ></wall:head>
        >
        >
        >skyline.jsp
        ><wall:block>
        ><wall:font size="+1">
        ><c:if test="${capabilities.emoji && capabilities.imode_region ==
        >'eu'}">&#<%= groups[groupMatch][2]%>;</c:if>
        ><c:if test="${capabilities.imode_region == 'ja'}"> &#<%=
        >groups[groupMatch][1]%>;</c:if>
        ><c:if test="${capabilities.opwv_wml_extensions_support}"><img
        >localsrc="<%= groups[groupMatch][3]%>" alt="" src=""/><img
        >localsrc="blankquarter" alt="" src=""/></c:if>
        ><c:if test="${capabilities.html_web_3_2}"><img src="/i/system/i/<%=
        >groups[groupMatch][0]%>.gif" alt="" height="20"
        >width="20"/></c:if></wall:font> <wall:font size="+1"
        >color="#1f2e8a"><wall:b><%=skylineGroup%>/<%=SLP%></wall:b>
        ></wall:font>
        ></wall:block>
        ><wall:hr color="#1f2e8a"/>
        >
        >Having double checked http://wurfl.sourceforge.net/java/submitbug.php I
        >think this is all the info.
        >
        >I have put a demo page at http://ukmedia.us/i/bugs2.jsp as an example
        >that moves <wall:document disable_cache="true"> from bugs2.jsp into
        >header2.jsp
        >
        >
      • wsdgfs
        Hi, i have the same problem and hope that someone have found a solution. thx ... 4.1 ... http://wurfl.sourceforge.net/java/submitbug.php I
        Message 3 of 3 , Sep 3, 2006
        • 0 Attachment
          Hi,

          i have the same problem and hope that someone have found a solution.

          thx

          --- In wmlprogramming@yahoogroups.com, Luca Passani <passani@...> wrote:
          >
          >
          > I was able to reproduce the problem. I don't have a solution though.
          > To me, this is a Tomcat bug, sice onclude should happen before any
          > compilation takes place.
          > Having said this, the fact that the error is the same on both tomcat
          4.1
          > and 5.5. makes me wonder of it isn't something I am missing...
          >
          > if you happen to find more, please post. I am also curios to get to the
          > end of this...
          >
          > Luca
          >
          > Darren wrote:
          >
          > >Hello,
          > >
          > >I know this has been mentioned before but I have the problem of not
          > >being able to "template" a site using wall. Usually I would have:
          > >
          > ><header.jsp>
          > >
          > >BODY
          > >
          > ><footer.jsp>
          > >
          > >with BODY containing static content. In this model I am not using a
          > >DBase for dynamic body content.
          > >
          > >The problem is the WALL will not let me include all the code above the
          > >BODY. It returns an error saying tag wall:XXXX is unterminated -
          > >document, body etc.
          > >
          > >So in every .jsp file I must have the following code:
          > >
          > ><%@ taglib uri="/WEB-INF/tld/wall.tld" prefix="wall" %>
          > ><wall:document disable_cache="true">
          > ><%@ include file="/i/includes/header.jsp" %>
          > >
          > ><wall:body>
          > ><%@ include file="/i/includes/skyline.jsp" %>
          > >
          > ><wall:block>
          > >...
          > >
          > >
          > >I would like to have <%@ taglib uri="/WEB-INF/tld/wall.tld"
          > >prefix="wall" %> & <wall:document disable_cache="true"> in header.jsp
          > >and <wall:body> in skyline.jsp - or indeed have all of it just in
          > >header.jsp. When I do that though I get the above mentioned error. I
          > >know why it is throwing an error. Is there any way around this problem?
          > >
          > >
          > >header.jsp
          > ><wall:xmlpidtd />
          > ><%@ taglib prefix="c" uri="/WEB-INF/tld/c.tld" %>
          > ><wall:load_capabilities />
          > >...
          > ><wall:head>
          > ><wall:title>WURFL <%=skylineGroup%>/</wall:title>
          > ></wall:head>
          > >
          > >
          > >skyline.jsp
          > ><wall:block>
          > ><wall:font size="+1">
          > ><c:if test="${capabilities.emoji && capabilities.imode_region ==
          > >'eu'}">&#<%= groups[groupMatch][2]%>;</c:if>
          > ><c:if test="${capabilities.imode_region == 'ja'}"> &#<%=
          > >groups[groupMatch][1]%>;</c:if>
          > ><c:if test="${capabilities.opwv_wml_extensions_support}"><img
          > >localsrc="<%= groups[groupMatch][3]%>" alt="" src=""/><img
          > >localsrc="blankquarter" alt="" src=""/></c:if>
          > ><c:if test="${capabilities.html_web_3_2}"><img src="/i/system/i/<%=
          > >groups[groupMatch][0]%>.gif" alt="" height="20"
          > >width="20"/></c:if></wall:font> <wall:font size="+1"
          > >color="#1f2e8a"><wall:b><%=skylineGroup%>/<%=SLP%></wall:b>
          > ></wall:font>
          > ></wall:block>
          > ><wall:hr color="#1f2e8a"/>
          > >
          > >Having double checked
          http://wurfl.sourceforge.net/java/submitbug.php I
          > >think this is all the info.
          > >
          > >I have put a demo page at http://ukmedia.us/i/bugs2.jsp as an example
          > >that moves <wall:document disable_cache="true"> from bugs2.jsp into
          > >header2.jsp
          > >
          > >
          >
        Your message has been successfully submitted and would be delivered to recipients shortly.