I understand that <
jsp:include> action is used when dynamic content in JSP is needed versus the <%@ include%> directive while using static files.
I have a piece of code with which I am not able to justify the above.
CheckBeanProp.jsp
code:
--------------------------------------------------------------------------------
<input type="text" name="Meera" value="Help">
<jsp:include page="includeresult.jsp" />
--------------------------------------------------------------------------------
includeresult.jsp
code:
--------------------------------------------------------------------------------
Value of textbox : ${param.Meera}
--------------------------------------------------------------------------------
If I understand right,
the
servlet class for CheckBeanProp.jsp will be created and a method call will be inserted in the servlet code (after setting the "Meera" parameter) to call includeresult.jsp at Runtime.
So, the "Meera" parameter should be set to "Hello" in includeresult.jsp.
The actual output thst I get is nothing, that is no parameter that is set in the request.
Why does this code not work? If not this way, how should I best use the <jsp:include> action when I need dynamic output during deployment.
Where am I going wrong?
[ June 21, 2006: Message edited by: Deepti Padiyar ]