aspose file tools
The moose likes Servlets and the fly likes Calling a HTML popup from a servlet ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Calling a HTML popup from a servlet ?" Watch "Calling a HTML popup from a servlet ?" New topic

Calling a HTML popup from a servlet ?

kamal krishna bhatt
Ranch Hand

Joined: Apr 26, 2011
Posts: 41

i am trying to write a servlet which is called for all the URLs but launches a username, password popup for a few URLs.
all what i have done is :


the problem is when i am trying to do this it doesn't launch challenge.xml but when in web.xml i give servlet-mapping as "/test" instead of "/*" it works , and in logs i see doget() method being called two times as printing url http://localhost:8080/proj/test and then http://localhost:8080/proj/challenge.html,
how it can be resolved?
Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 606

So what happens when you give servlet-mapping as "/*"
Which page shows up on the front end? What gets logged in the servlet logs?

Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
jQuery in Action, 2nd edition
subject: Calling a HTML popup from a servlet ?