• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servletcontextlistener

 
Thamarai kannan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64617
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please UseCodeTags.
 
Thamarai kannan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Now i have made a change by including package name.But its not working can any one suggest .
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64617
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you really not indent your code?
 
Thamarai kannan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you narrate briefly?
 
Thamarai kannan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
got the meaning....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic