aspose file tools*
The moose likes Servlets and the fly likes error in servlet due to reasons unknown Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "error in servlet due to reasons unknown" Watch "error in servlet due to reasons unknown" New topic
Author

error in servlet due to reasons unknown

yuvraj kotegar
Ranch Hand

Joined: Jul 31, 2008
Posts: 120


this is my html code
yuvraj kotegar
Ranch Hand

Joined: Jul 31, 2008
Posts: 120


this is my web.xml
yuvraj kotegar
Ranch Hand

Joined: Jul 31, 2008
Posts: 120
then i have a SendRedirect and ValidUser classes compiled in the classes folder.

however when i open the front end html and try to access i get 404 error. even though i have the compiled class. is there any problem with web.xml or form action path in html??
rakesh sugirtharaj
Ranch Hand

Joined: Dec 16, 2007
Posts: 151
Try this - instead of

use
(without backslash in action)


Cheers!
RSR
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12781
    
    5
<servlet-class>SendRedirect</servlet-class>


ALL classes used in servlets should be in packages. Without a package, the JVM looks in the "current" directory - which you have no control over. On failure to find the class you get an error.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error in servlet due to reasons unknown