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]
# 1
will someone please look at this please ?
armreon at 2007-6-29 2:59:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
I think posting the complete exception stack trace will help.
neville_sequeira at 2007-6-29 2:59:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

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

beattris at 2007-6-29 2:59:10 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

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

%>

Enygma42 at 2007-6-29 2:59:11 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...