File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Http 500 error for project which contains jersey and struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Http 500 error for project which contains jersey and struts2" Watch "Http 500 error for project which contains jersey and struts2" New topic

Http 500 error for project which contains jersey and struts2

balamurughan gunasekaran

Joined: Feb 06, 2013
Posts: 1
It shows the following error:

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]

Although i included all lib files needed for the project.

Please help me,

Below is the code

login. jsp

<%@page language="java" contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE html>
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/match_login_style.css" type="text/css">
<link rel="icon" type="image/jpg" href="<%=request.getContextPath()%>/images/logo.jpg"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-1.7.2.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.validation.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/login_validation.js"></script>


<div class="wrap">
<div class="back" align="center">
<form id="login" name="login" action="login.action" method="post">
<div align="center" class="header">Login</div>
<div id="err"><s:actionerror/></div>
<div class="tit">
Email Id: <input type="text" name="emailId" id="emailId"/>
<div class="clr"></div>
<div class="tit">
Password: <input type="password" name="password" id="password"/>
<div class="clr"></div>
<input class="btn" type="submit" name="reg" value="Login" id="reg" />
<input class="btn" type="reset" value="Cancel" id="cancel" />
<div><a class="link" href="<%=request.getContextPath()%>/jsp/register.jsp">New User?</a></div>



"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"

<constant name="struts.action.excludePattern" value="/rest/.*" />

<!-- Configuration for the default package. -->
<package name="default" extends="struts-default">



<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi=""
xmlns="" xmlns:web=""
id="WebApp_ID" version="3.0">
I agree. Here's the link:
subject: Http 500 error for project which contains jersey and struts2
It's not a secret anymore!