My pages are laid out in the following fashion:

standard.jsp
- Include header
- Include menu
- Include content

Where standard.jsp is given a page path as an argument. The pages it
loads are more jsp pages.  For instance:

standard.jsp?page=index
- include /pages/index/header.jsp
- include /pages/index/menu.jsp
- include /pages/index/content.jsp

Locally, this works fine. The page displays as I would expect it to.
However, when deployed, I get very strange behaviour. All of the
included jsp pages still contain code in <% %>'s! It truly is
frustrating, as my design prevents an enormous amount of duplicate
code and if I can't use jsp:include, I'll have to change everything.

An example:
-- Local --

function collapseAllThreads()
{
 
toggleThreadDisplay("ahl1b2ZzLWZyZWV0aG91Z2h0LWFsbGlhbmNlcgoLEgRQb3N0GBcM");
 
toggleThreadDisplay("ahl1b2ZzLWZyZWV0aG91Z2h0LWFsbGlhbmNlcgoLEgRQb3N0GBwM");
}

-- Deployed --
function collapseAllThreads()
{
   <%
   for (Key threadKey :
ForumService.getKeysOfAllRepliesToPost(ForumService.getForumKey()))
   {
      %>
      toggleThreadDisplay("<%=KeyFactory.keyToString(threadKey)%>");
      <%
   }
   %>
}

Why is this happening?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to