Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

debugjsp servlet  RSS feed

 
ford Darcy Jr
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I would like to know why do we need to declare debugjsp servlet in web.xml file. Can the servlets run even if the debugjsp file is not available in web.xml file.

Thanks
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37180
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ford,
Any servlet needs to be declared in the web.xml to run. While debugjsp isn't one that you wrote, it is still part of the application.
 
Zein Nunna
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can actually get away without declaring servlets in the web.xml

Im on a uni network, for some weird reason we are recommended not to change the web.xml, Insead to do as below,

<form method = "GET" action = "../servlet/UploadFiles/someClass">
.............
<input type = "submit" value = "Upload -->"/>
</form>

This directly addresses the servlet. Try it, it might work for you, it might not.

Keep us posted with the outcome.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Zein Nunna:
You can actually get away without declaring servlets in the web.xml

Im on a uni network, for some weird reason we are recommended not to change the web.xml, Insead to do as below,

<form method = "GET" action = "../servlet/UploadFiles/someClass">
.............
<input type = "submit" value = "Upload -->"/>
</form>

This directly addresses the servlet. Try it, it might work for you, it might not.
Keep us posted with the outcome.


This functionality has been disabled in up to date versions of Tomcat.
http://faq.javaranch.com/view?InvokerServlet
 
ford Darcy Jr
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!