wood burning stoves*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Calling a HTML popup from a servlet ?" Watch "Calling a HTML popup from a servlet ?" New topic
Author

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 :
web.xml

MyServlet.java

challenge.html

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