Ae galera, que maravilha trabalhar na véspera de feriado hein!!! :evil:
Bom, to testando algumas coisas em Struts e não esta dando certo… Mudei minha página de entrada para testar e não esta dando certo.
Gostaria de uma ajuda aí…
index.jsp
<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>
<logic:redirect forward="teste"/>
teste.jsp
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<html:html locale="true">
<head>
<title><bean:message key="welcome.title"/></title>
<html:base/>
</head>
<body bgcolor="white">
<h3><bean:message key="menssage.first"/></h3>
<p><bean:message key="message.hello"/></p>
</body>
</html:html>
struts-config.xml
<global-forwards>
<forward name="teste" path="/teste.do"/>
</global-forwards>
<action-mappings>
<action path="/teste" type="org.apache.struts.actions.ForwardAction" parameter="/pages/teste.jsp"/>
</action-mappings> [/code]
E dá o seguinte erro:
[code]type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
.................................
root cause
java.lang.NullPointerException
at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:521)
at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:436)
at org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:396)
at org.apache.struts.taglib.logic.RedirectTag.doEndTag(RedirectTag.java:294)
at org.apache.jsp.index_jsp._jspx_meth_logic_redirect_0(index_jsp.java:74)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:52)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
....
Agluém poderia me ajudar?!?!
Por mais simples que é esta minha dúvida e problema, eu não estou conseguindo arrumar!! :oops:
valeewww