This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes listener tag in jsp tab library Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "listener tag in jsp tab library" Watch "listener tag in jsp tab library" New topic
Author

listener tag in jsp tab library

Raj Paul
Ranch Hand

Joined: Jul 09, 2002
Posts: 77
Can anybody say how listener tag is used in tag library ?? what kind of actions it receives
Thanks
Raj Paul
Shawn Bayern
Author
Ranch Hand

Joined: May 06, 2002
Posts: 160
Originally posted by Raj Paul:
Can anybody say how listener tag is used in tag library ?? what kind of actions it receives
Thanks
Raj Paul

What do you mean by a "listener" tag? Are you speaking of a specific tag library or a general concept?


Shawn Bayern<br />"JSTL in Action" <a href="http://www.jstlbook.com" target="_blank" rel="nofollow">http://www.jstlbook.com</a>
Raj Paul
Ranch Hand

Joined: Jul 09, 2002
Posts: 77
Use of <listener> element in tag library descriptor file.

Raj Paul
chanoch wiggers
Author
Ranch Hand

Joined: May 24, 2001
Posts: 245
they can be used to react to session and request level lifecycle events, such as when an attribute is added to the session, or removed from the session. In tags I guess this would translate to changing the behavior of a tag according to whether an attribute has been successfully been added to the request or session level. I havent seen anyone use these to date


chanoch<p><a href="http://www.amazon.com/exec/obidos/ASIN/1861007736/" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
Raj Paul
Ranch Hand

Joined: Jul 09, 2002
Posts: 77
Hi chanoch
I have tried the events...but nothing is happening ? Anybody tried this in any server. i am using orion server.
Raj Paul
Ruilin Yang
Ranch Hand

Joined: Jan 06, 2002
Posts: 150
Lisening tag is a new feature of the new version of JSP. So in order to test it you should make sure you app server supports the new JSP spec JSP 2.3.
Shawn Bayern
Author
Ranch Hand

Joined: May 06, 2002
Posts: 160
The <listener> element in the JSP 1.2 TLD is useful for registering a Servlet 2.3-style listener on whose behavior a taglib depends. As an example, a tag library might want to ensure that certain values are initialized before running.
Raj Paul
Ranch Hand

Joined: Jul 09, 2002
Posts: 77
Hello everybody,
anybody can give me a URL where i can find examples abt this ?

Thanks & Regards
Raj Paul
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: listener tag in jsp tab library
 
Similar Threads
JSP Combobox and Java Class
JSTL Tags
listener question
extend jsp
Need an attribute to be available in different places (SOLVED)