Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/10/2015, 18:40
josealberto_500
 
Fecha de Ingreso: mayo-2013
Ubicación: Morelos
Mensajes: 3
Antigüedad: 11 años
Puntos: 0
Exclamación Struts2 en netbeans

Hola, soy nuevo programando en Struts2.
Actualmente estoy utilizando el IDE Netbeans en Ubuntu.

Bueno, mi problema es el siguiente.
Tengo un JSP, el cual al querer ejecutarlo me manda el siguiente error:

HTTP Status 500 - Internal Server Error

type Exception report

messageInternal Server Error

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 4.1 logs.


Este es el codigo de mi JSP:
<?xml version="1.0" encoding="UTF-8"?>
<%@taglib uri="/struts-tags" prefix="s" %>
<%@page pageEncoding="UTF-8" contentType="text/html;charset=UTF-8"
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Datos de Usuario</title>
</head>
<body>
<h1>Datos de Usuario</h1>
<s:form action="datosUsuario">
<s:textfield name="nombre" label="Nombre" />
<s:textfield name="username" label="Username" />
<s:password name="password" label="Password" />
<s:textfield name="edad" label="Edad" />
<s:textfield name="fechaNacimiento" label="Fecha de Nacimiento" />
<s:submit value="Enviar" />
</s:form>
</body>
</html>


He encontrado que al comentar la linea <%@taglib uri="/struts-tags" prefix="s" %>, se "arregla" el problema, pues corre el jsp pero no muestra nada.

Alguien me puede echar una mano por favor,:ojo tes: