SdRuboWPJ 9 de abr. de 2008
e os .jar do struts estão no projeto?
como está o web.xml ?
daniel_jordanPJ 9 de abr. de 2008
Meu web.xml esta assim:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name> action</servlet-name>
<servlet-class> org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name> application</param-name>
<param-value> ApplicationResources</param-value>
</init-param>
<init-param>
<param-name> config</param-name>
<param-value> /WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name> debug</param-name>
<param-value> 3</param-value>
</init-param>
<init-param>
<param-name> detail</param-name>
<param-value> 3</param-value>
</init-param>
<load-on-startup> 1</load-on-startup>
</servlet>
<!-- Action Servlet Mapping -->
<servlet-mapping>
<servlet-name> action</servlet-name>
<url-pattern> /*.do</url-pattern>
</servlet-mapping>
<!-- tag libs -->
<taglib>
<taglib-uri> /WEB-INF/struts-bean.tld</taglib-uri>
<taglib-location> /WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri> /WEB-INF/struts-html.tld</taglib-uri>
<taglib-location> /WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri> /WEB-INF/struts-logic.tld</taglib-uri>
<taglib-location> /WEB-INF/struts-logic.tld</taglib-location>
</taglib>
</web-app>
O q eu estou fazendo de errado?
SdRuboWPJ 9 de abr. de 2008
tenta assim
<taglib>
<taglib-uri>struts/bean</taglib-uri>
<taglib-location>/WEB-INF/struts/tld/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>struts/html</taglib-uri>
<taglib-location>/WEB-INF/struts/tld/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>struts/logic</taglib-uri>
<taglib-location>/WEB-INF/struts/tld/struts-logic.tld</taglib-location>
</taglib>
daniel_jordanPJ 9 de abr. de 2008
Está dando esse erro aqui! Ele n encontra meu projeto.
Porque será que ta acontecendo isso?
HTTP Status 404 - /classificadoOnLine/
type Status report
message /classificadoOnLine/
description The requested resource (/classificadoOnLine/) is not available.
SdRuboWPJ 9 de abr. de 2008
ta configurado no contexto do servidor?
tomcat -> context.xml ou server.xml
daniel_jordanPJ 9 de abr. de 2008
Não tenho contex.xml nem server.xml!!
Como e onde eu crio eles? O MyEclipce n cria eles sozinho?
SdRuboWPJ 9 de abr. de 2008
nao uso myeclipse
mas geralmente eles ficam em
<tomcat_home>\conf
ve se a sua aplicação tá configurada direito para o web server que voce usa.