File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes servletcontextlistener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servletcontextlistener" Watch "servletcontextlistener" New topic
Author

servletcontextlistener

Thamarai kannan
Greenhorn

Joined: May 05, 2009
Posts: 28
hi i have used servletcontext listener example code as follows,

######################
In web.xml i have mention this

<listener>
<listener-class>
serv
</listener-class>
</listener

I dont the url i should use can any one help!!!
Hany Shafik
Ranch Hand

Joined: Jun 21, 2008
Posts: 80
I assume you don't know the URL of the of web application your testing.
If this is your question then it depends on the web application server your using.
For instance Tomcat uses the war file name or the web folder name as the web context root.
BTW I recommend you use package for your listener.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61187
    
  66

Please UseCodeTags.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Thamarai kannan
Greenhorn

Joined: May 05, 2009
Posts: 28

Now i have made a change by including package name.But its not working can any one suggest .
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61187
    
  66

Do you really not indent your code?
Thamarai kannan
Greenhorn

Joined: May 05, 2009
Posts: 28
Can you narrate briefly?
Thamarai kannan
Greenhorn

Joined: May 05, 2009
Posts: 28
got the meaning....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servletcontextlistener