Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling a HTML popup from a servlet ?

 
kamal krishna bhatt
Ranch Hand
Posts: 41
Eclipse IDE Java Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what happens when you give servlet-mapping as "/*"
Which page shows up on the front end? What gets logged in the servlet logs?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic