*
The moose likes JSP and the fly likes Param object Doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Param object Doubt" Watch "Param object Doubt" New topic
Author

Param object Doubt

Satish Kota
Ranch Hand

Joined: Feb 08, 2006
Posts: 88
Hi all,
I have a doubt regarding the <jsp:include> and param object.



In the above code we have added a new attribute called "user" to param object. The whole idea is to make this attribute available to entertain.jsp by passing through param object. But here the attribute is added after the entertain.jsp page has been included.I mean after the following line of code



When this line of code is executed the entertain.jsp should not have access to "user" attribute as this attribute has been added afterwards. But when i exceute i see that entertain.jsp has access to "user" attribute and can use its value. Please tell me how can this be possible.

Thank You.


SCJP 5.0 77%
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

It is not after.
Your param tag is actually inside the include tag, so it will be processed before including the file


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Param object Doubt