cancel
Showing results for 
Search instead for 
Did you mean: 

jsp:include and some strange characters

kooktroop
Champ in-the-making
Champ in-the-making
G'day,

There are some really strange characters coming out of a jsp:include. See the image below:
[img]http://img237.imageshack.us/my.php?image=activementorproblem2007fx4.jpg[/img]
http://img237.imageshack.us/my.php?image=activementorproblem2007fx4.jpg


The page in the image is the following jsp:


<!– processunit.jsp –>
<div id="content_body">
                    <jsp:include page="<%= processunitName.replace( ' ', '_' ) + "/description.html" %>" />
                    <jsp:include page="/WEB-INF/tiles/comments.jsp">
                        <jsp:param name="content_name" value="<%= processunitName %>" />
                        <jsp:param name="content_type" value="processunit" />
                        <jsp:param name="sub_content_type" value="description" />
                    </jsp:include>
                </div>

It is including the following html file:

<h1>Description</h1><p>               At the heart of the Enterprise Space is the Enterprise…
Note: The above file appears fine when previewed via Alfresco WCM's preview mechanism.

The result of the jsp:include results in the following when selecting "view source":

<div id="content_body">
                    <h1>Description</h1><p>               At the heart of the Enterprise Space is the Enterprise…
</div>

What is going on? Why is this extra character being inserted? I have pages doing similar operations (including a HTML file) and this same problem occurs. It doesn't happen when including JSPs.

Thanks in advance,
Scott[/img]
3 REPLIES 3

rohell
Champ in-the-making
Champ in-the-making
did you find a solution to this problem? im having the same problem but using  php include.


thanks

kooktroop
Champ in-the-making
Champ in-the-making
no I didn't resolve this problem.

kvc
Champ in-the-making
Champ in-the-making
Can you try testing this on a regular tomcat instance to see if it's something generic to your JSP or unique to your JSP execute within the context of Alfresco?

Also, may want to open a support case to have someone track down.

Kevin