Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

I get ServletException from a very simple html form

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this,



Look at forward slash "/", added into path !
 
Alex Pol
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in what log? at the console i don't have log
 
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
    Bookmark Topic Watch Topic
  • New Topic