File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Servlet Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Servlet Exception" Watch "Servlet Exception" New topic

Servlet Exception

trinity jecob

Joined: Sep 13, 2006
Posts: 14

I am getting the following exception while loading a JSP page.
(The application is using the Struts Frame work)

Sivaraman Lakshmanan
Ranch Hand

Joined: Aug 02, 2003
Posts: 231
hi trinity,
There is a seperate forum for struts. This exception is caused because struts could not find the action mapping in the struts-config.xml file.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

Please be sure to post Struts questions in the Struts forum. I have moved this post there for you.

[Asking smart questions] [About Bear] [Books by Bear]
trinity jecob

Joined: Sep 13, 2006
Posts: 14
First of all sorry for posting the question in a wrong forum and thanks for forwarding it to the correct one

I have a Login.jsp, in which the form tag is specified as follows

struts-config.html contains -

I am using Tomcat5.0. Dir. structure as follows
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
This error occurs when the Struts ActionServlet has not been initialized prior to your calling a Struts JSP. There are generally two possible reasons for this:

1. You didn't put <load-on-startup>1</load-on-startup> in the ActionServlet's definition in your web.xml file.

2. The ActionServlet is throwing an exception when it tries to initialize. If this is the case, you will see a stack trace indicating what the problem is in the Application server's log when the application first starts up. The most common reason it might throw an exception is that your XML is not well-formed in the struts-config.xml file.

Consultant, Sima Solutions
I agree. Here's the link:
subject: Servlet Exception
It's not a secret anymore!