This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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: 597

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 ?
Similar Threads
A page not found error
How to call the servlet without form action
Can't access HTML form page in browser
accessing clicked hyperlink value of jsp page in servlet
JDBC driver for MS Access