esqueci de dizer…
Meu sistema é todo com velocity, mas até isso arranquei, deixei jsp porque até isso já tinha ouvido falar de problemas na locaweb…
Ainda sem contar q já abri milhares de chamados com eles e mesmo assim, nada funcionou…
Até tirei o apache de meu domínio e deixei apenas o tomcat… =( Nada adiantou…
Os códigos são estes aqui, nem ia postar pela simplicidade deles, mas colocando aqui, vemos que não existe possibilidade de ter algo errado no desenvolvimento deles.
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!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>
<display-name>Lucastex Website</display-name>
<servlet>
<servlet-name>webwork</servlet-name>
<servlet-class>com.opensymphony.webwork.dispatcher.ServletDispatcher</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>velocity</servlet-name>
<servlet-class>com.opensymphony.webwork.views.velocity.WebWorkVelocityServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>webwork</servlet-name>
<url-pattern>*.tex</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>velocity</servlet-name>
<url-pattern>*.vm</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.vm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.htm</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>webwork</taglib-uri>
<taglib-location>/WEB-INF/lib/webwork-2.0.jar</taglib-location>
</taglib>
</web-app>
index.jsp
[code]<html>
<title>Oi!</title>
<form action="Primeira.tex" method="post">
<input type="text" name="nome">
<input type="submit" value="Envia!">
</form>
</html>[/code]
xwork.xml
[code]<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN" "http://www.opensymphony.com/xwork/xwork-1.0.dtd">
<xwork>
<!-- Include webwork defaults (from WebWork-2.0 JAR package). -->
<include file="webwork-default.xml" />
<!-- Configuration for the main website. -->
<package name="default" extends="webwork-default">
<!-- Default interceptor stack. -->
<default-interceptor-ref name="defaultStack" />
</package>
<!-- Site -->
<package name="lucastex" extends="default">
<!-- Primeira.tex -->
<action name="Primeira" class="br.com.lucastex.actions.Primeira">
<result name="success" type="dispatcher">oi.jsp</result>
</action>
</package>
</xwork>[/code]
Primeira.java
[code]/*
- Lucas Teixeira
- lucas@javafree.com.br
-
- Arquivo: Primeira.java
- Pacote: br.com.lucastex.actions
- Projeto: ww2
- Criado em: 14/07/2004 2004 21:52:44
*/
package br.com.lucastex.actions;
import com.opensymphony.xwork.ActionSupport;
/**
*/
public class Primeira extends ActionSupport {
private String nome;
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public String execute() throws Exception {
return SUCCESS;
}
}
[/code]
Oi.jsp
[code]<%@taglib uri="webwork" prefix="ww" %>
<html>
Oi <ww:property value="nome" />!
</html>[/code]