I'm using <jsp:forward> to transfer control to from one jsp to another jsp but somehow the param isn't transferred.
========parent.jsp=========
<%
String Mergedxml = "testing123";
System.out.println(Mergedxml);
//the above is able to print out "testing123"
%>
<jsp:forward page="child.jsp">
<jsparam name="Mergedxml" value="<%=Mergedxml %>" />
</jsp:forward>
=========child.jsp===========
<%
String Mergedxml=request.getParameter("Mergedxml"
System.out.println("mergedxml=" + Mergedxml);
//don't know why the above, will print out that mergedxml=null
%>
==================================
if I used "teststring" instead of "<%= Mergedxml %>" in parent.jsp, it will show "mergedxml = teststring" in child.jsp
I'd also tried copying Mergedxml to another string in parent.jsp and then passing that copied string, but also failed.
any kind soul pls advise what could be the cause of the error? configuration problem? variable naming problem?
or is there an alternative?
========parent.jsp=========
<%
String Mergedxml = "testing123";
System.out.println(Mergedxml);
//the above is able to print out "testing123"
%>
<jsp:forward page="child.jsp">
<jsparam name="Mergedxml" value="<%=Mergedxml %>" />
</jsp:forward>
=========child.jsp===========
<%
String Mergedxml=request.getParameter("Mergedxml"
System.out.println("mergedxml=" + Mergedxml);
//don't know why the above, will print out that mergedxml=null
%>
==================================
if I used "teststring" instead of "<%= Mergedxml %>" in parent.jsp, it will show "mergedxml = teststring" in child.jsp
I'd also tried copying Mergedxml to another string in parent.jsp and then passing that copied string, but also failed.
any kind soul pls advise what could be the cause of the error? configuration problem? variable naming problem?
or is there an alternative?