File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes org.apache.jasper.JasperException: The Struts dispatcher cannot be found. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "org.apache.jasper.JasperException: The Struts dispatcher cannot be found." Watch "org.apache.jasper.JasperException: The Struts dispatcher cannot be found." New topic
Author

org.apache.jasper.JasperException: The Struts dispatcher cannot be found.

xrcwrn ss
Greenhorn

Joined: Apr 04, 2010
Posts: 2

struts.xml

<action name="tohome" class="action.ToSmsAction" method="execute">
<result name="success">/pages/home.jsp</result>
<result name="login">/pages/login.jsp</result>
</action>


TosmsAction.java

public class ToSmsAction extends ActionSupport {

private String time;

public String execute() {

System.out.println(" time is " + getTime());

return SUCCESS;
} else {
return LOGIN;
}
}
public String getTime() {
return time;
}

public void setTime(String time) {
this.time = time;
}
}


if i am not including class="action.ToSmsAction" then it is working good

but when including class="action.ToSmsAction" it is showing following error

HTTP Status 500 -

type Exception report

message

descriptionThe server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. - [unknown location]
root cause

The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. - [unknown location]
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 3.1.1 logs.



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.apache.jasper.JasperException: The Struts dispatcher cannot be found.