This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.



 
 
subject: org.apache.jasper.JasperException: The Struts dispatcher cannot be found.
 
Similar Threads
unknown error while running Struts2 application
struts newbie needs help with autocompleter
Using struts 2 tags with *.action filter mapping in web.xml throws a jasper exception
Problem in Struts Dispatcher