File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 605

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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Calling a HTML popup from a servlet ?