You can pass in the element in the include as a  parameter. Something like:

     <jsp:include  page="/WEB-INF/pages/ViewOrder.jsp" >
             <jsp:param name="param2" value="<c:out value="${param1}"/>" />
     </jsp:include>

Mike

On 3/8/07, Jonathan Tse <[EMAIL PROTECTED]> wrote:

Hi all,

   I don't know if my question make sense or not. I got a jsp (say,
ViewOrder.jsp) displaying an order summary, i want to reuse it everytime
I want to display something together with this order summary by using
<jsp:include>

   In this jsp it take a variable at path "order". In one controller
when i return the model with an object name "order", it works. However,
this disallowed me to include this page when my controller return the
model named something like "orderForm.order" (which is common for form
controller). How do I achieve this?

   I am actually hoping something like this :
   <spring:include name="order" path="orderForm.order">
      <jsp:include  page="/WEB-INF/pages/ViewOrder.jsp"  >
   </spring:include>

I am using Appfuse 1.9.3. Any idea is welcome.

Best regards,
Jonathan


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to