This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • 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.
 
You don't like waffles? Well, do you like this tiny ad?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic