problem with jsp:include ..any ideas ?
Hi,
I have the following code in a recordfollowup.jsp,
<jsp:include page="contacthistory.jsp" flush="true">
<jsp:param name="packet" value="<%=somevalue%>"/>
</jsp:include>
I get this exception "recordfollowup.jsp(364,0) "Unterminated
I tried using the end tag /> and then I was able to include the contacthistory.jsp but I need to get the additional param sent to the contacthistory.jsp so this will not do...
please help me with suggestions/sample code .....
thanks a lot !
[580 byte] By [
armreon] at [2007-9-26 1:51:08]

Try putting a space in your jsp:param tag, like this
<jsp:param name="packet" value="<%=somevalue%>" />
right after the closing paren for the value and before the forward slash that closes the tag.
Gimme my duke dallas! Haha, j/k.
-Derek
Sounds to me like the variable someValue contains a quote (").
You could try putting it into the pageContext and getting it out in the included page. Or if that doesn't work, try the session.
// using pageContext
<%
pageContext.setAttribute("someValue", someValue);
%>
<jsp:include page="contacthistory.jsp" flush="true"/>
.
.
.
then in contacthistory.jsp
<%
String value = (String)pageContext.getAttribute("someValue");
// swap 'pageContext' with 'session' to use the session
%>