You can set a new request variable named "order" before you do the include:

<c:set var="order" scope="request" value="${orderForm.order}" />
<jsp: include />


Ivan


Jonathan Tse 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-do-I-reuse-a-view%28jsp%29-through-SpringMVC-tf3367119s2369.html#a9381505
Sent from the AppFuse - User mailing list archive at Nabble.com.

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

Reply via email to