I'm running Orion 1.5.3

Wanted to ask if anyone has insight into the following.

I'm trying to do a forward with a parameter. The parameter is something like a message string.

The following does not work.

<%
String result = "unsucessful"; // retrieved from external source... hardcoded for example's sake

%>
<jsp:forward page="<%=nextPage%>">
<jsp:param name="message" value="The result was <%=result%>"/> // the <%=result%> is part of the value tag.
</jsp:forward>

I've managed to deduce that the error is in the param value. Apparently, we cannot mix variables with static values inside the value parameter.

I've managed to get it working by doing this...

<%
String result = "unsucessful"; // retrieved from external source... hardcoded for example's sake
String message = "The result was " + result;
%>
<jsp:forward page="<%=nextPage%>">
<jsp:param name="message" value="<%=message%>"/> // there is only <%=message%> in the value tag.
</jsp:forward>


My question is, is this a bug or is it supposed to be this way ? Can we mix the value parameters ?

Reply via email to