aspose file tools*
The moose likes Struts and the fly likes I get ServletException from a very simple html form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "I get ServletException from a very simple html form" Watch "I get ServletException from a very simple html form" New topic
Author

I get ServletException from a very simple html form

Alex Pol
Ranch Hand

Joined: Sep 29, 2006
Posts: 33
Hello all,
I have this html page :




this action in struts:



this form:



and this action:



And it doesn't work. It doesn't enter my action, i get:

javax.servlet.ServletException:

Servlet execution threw an exception
org.apache.catalina.core.ApplicationFilterChain:internalDoFilter (292)
org.apache.catalina.core.ApplicationFilterChain oFilter (188)
org.apache.catalina.core.StandardWrapperValve:invoke (213)
org.apache.catalina.core.StandardContextValve:invoke (172)
org.apache.catalina.core.StandardHostValve:invoke (127)
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Try this,



Look at forward slash "/", added into path !


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Alex Pol
Ranch Hand

Joined: Sep 29, 2006
Posts: 33
Doesn't work with slash, i get:

type Status report

message /xlsImportAction.do

description The requested resource (/xlsImportAction.do) is not available.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

The exception you posted is not sufficient to tell what exactly happening at server side , better you post the error which present in logs !
Alex Pol
Ranch Hand

Joined: Sep 29, 2006
Posts: 33
in what log? at the console i don't have log
Tom Rispoli
Ranch Hand

Joined: Aug 29, 2008
Posts: 349
Your application server should have a log file. The appliation servers I've worked with the name is configurable. On Sun servers its called server.log. Also, since it looks like the problem is happening in your filters you might want to post your web.xml.
 
Consider Paul's rocket mass heater.
 
subject: I get ServletException from a very simple html form