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 ]
You do not. What led you to believe that the input element would be submitted to the include? As far as JSP is concerned, the input element is just template text and has no meaning at all. It might well have been "asjdhsakjdhskjhdsakjdhska" as far as the JSP processor is concerned.
If not this way, how should I best use the <jsp:include> action when I need dynamic output during deployment.
That very much depends upon what you mean by "dyanmic output".
The includedreslt.jsp , and the CheckBeanProp.jsp could display the the value of the property after the form has been submitted once. When the form is submitted, the text field will put its' values onto request parameters.
Then we can read these request parameters and stuff them into the value for the text field, and then pass it as a parameter to the included file.
note that your URI for the taglibrary would probably be different.
Note i used the <c:out jstl tag instead of the inline expression language, in case your webapp does not use the servlet 2.4 deployment descriptor, which would not enable expression language scriptlets loose in the jsp (that happended to me once )
Error: Keyboard not attached. Press F1 to continue.