File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes How to communicate between the child and parent tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How to communicate between the child and parent tag" Watch "How to communicate between the child and parent tag" New topic
Author

How to communicate between the child and parent tag

Muralitharan Kathirvelu
Greenhorn

Joined: Aug 18, 2007
Posts: 9
Hi All,
I want to pass the child tags attribute value to the parent tag class. for example
Line1 <c:data>---- DataTag.class
Line2 <d:show valid="true"/>
Line3 </c:data>
I want to get the child tags attribute valid's value "true"(Static value) to my parent tag DataTag.class before it comes to line 2
Depends upon the value i will do some process.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

before it comes to line 2

You mean before the nested tag gets evaluated ?


[My Blog]
All roads lead to JavaRanch
Muralitharan Kathirvelu
Greenhorn

Joined: Aug 18, 2007
Posts: 9
yes... before evaluating the child tag...
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

That's not possible then. (I don't think it is)
Amol Nayak
Ranch Hand

Joined: Oct 26, 2006
Posts: 218
Thats not possible, why do you want to do that?

You can have the attribute to the outer tag.
Can you please explain in details what are you trying to do?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to communicate between the child and parent tag