struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Kravets <akrav...@kligerweiss.com>
Subject Re: Stuts forwarding does not work
Date Tue, 01 Jan 1980 21:36:16 GMT
Well just to check I installed Struts on my local machine, copied the 
same application there and it works fine! Could it be the JBoss that I 
use on the work server?

David G. Friedman wrote:

>Alex,
>
>Check the Javadocs because the perform() method is GONE in Struts v1.2.4,
>deprecated in v1.1, and normal for the old v1.0.  So, what version are you
>using?  Probably v1.2.4 since defining perform() like that will never be
>called resulting in a standard dummy execute() method being invoked which,
>TADA, returns a blank page by default!
>
>Regards,
>David
>
>P.S. Check your computer's time.  It looks like you sent your messages over
>a day ahead of us.  Considering daylight savings time only allows for a 24
>hour window, I'm guessing your computer's (whichever one you send email
>from) time might be off just a little, a tad, a pinch, a smidgeon, etc.
>
>-----Original Message-----
>From: Alex Kravets [mailto:akravets@kligerweiss.com]
>Sent: Saturday, January 22, 2005 9:51 AM
>To: Struts Users Mailing List
>Subject: Re: Stuts forwarding does not work
>
>
>Actually now it works. I moved everything to another application name
>and it started working. But, another problem. When I submit my page I
>get a blank page. Action class does not do anything, just forwards to
>success page. Here is the action mapping in struts-config.xml:
>
><!-- =================================== Global Forward Definitions -->
>
>    <global-forwards>
>        <forward
>            name="test"
>            path="/Test.do"/>
>    </global-forwards>
>
>
><!-- =================================== Action Mapping Definitions -->
>
>    <action-mappings>
>
>        <action
>            path="/Test"
>            type="org.apache.struts.actions.ForwardAction"
>            parameter="/pages/Test.jsp"/>
>
>        <action
>            path="/QuerySubmit"
>            type="app.ExecuteQueryAction"
>            name="ExecuteQueryForm"
>            scope="request"
>            validate="true"
>            input="/pages/Test.jsp">
>            <forward
>                name="success"
>                path="/pages/QueryResults.jsp"/>
>        </action>
>    </action-mappings>
>
>And ActionClass:
>
>package app;
>
>import java.io.IOException;
>import java.util.Vector;
>import javax.servlet.ServletException;
>import javax.servlet.http.HttpServletRequest;
>import javax.servlet.http.HttpSession;
>import javax.servlet.http.HttpServletResponse;
>import org.apache.struts.action.Action;
>import org.apache.struts.action.ActionError;
>import org.apache.struts.action.ActionErrors;
>import org.apache.struts.action.ActionForm;
>import org.apache.struts.action.ActionForward;
>import org.apache.struts.action.ActionMapping;
>import org.apache.struts.action.ActionServlet;
>//import com.kwi.DBDriver;
>
>
>public final class ExecuteQueryAction extends Action {
>
>    public ActionForward perform(ActionMapping mapping,
>            ActionForm form,
>            HttpServletRequest request,
>            HttpServletResponse response)
>        throws IOException, ServletException {
>
>        // Obtain username and password from web tier
>        String sqlQuery = ((ExecuteQueryForm) form).getSQLQuery();
>
>        // Return success
>        return mapping.findForward("success");
>
>    }
>
>} // End LogonAction
>
>The same blank screen after submit happens when I deploy and run
>application logon.war from Husted's Struts In Action source code. So may
>be my struts installation is wrong?
>
>thanks a lot,
>Alex
>
>Amit Gupta wrote:
>
>  
>
>>What are you writing in your index.jsp?
>>
>>
>>Amit Gupta
>>Mobile: 91-9891062552
>>Yahoo IM: amitguptainn
>>MSN IM : amitguptainn
>>-----Original Message-----
>>From: Alex Kravets [mailto:akravets@kligerweiss.com]
>>Sent: Thursday, January 13, 2005 1:11 AM
>>To: user@struts.apache.org
>>Subject: Stuts forwarding does not work
>>
>>I am trying to redirect from index.jsp to another page but no luck. I
>>get this error:
>>
>>
>>org.apache.jasper.JasperException: Exception forwarding for name
>>    
>>
>queryInput: org.apache.jasper.JasperException
>  
>
>>	at
>>    
>>
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
>54)
>  
>
>>	at
>>    
>>
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
>  
>
>>	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>	at
>>    
>>
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
>FilterChain.java:247)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
>ain.java:193)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
>va:256)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:643)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>  
>
>>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>	at
>>    
>>
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
>va:191)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:643)
>  
>
>>	at
>>    
>>
>org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrR
>ealm.java:220)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:641)
>  
>
>>	at
>>    
>>
>org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
>46)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:641)
>  
>
>>	at
>>    
>>
>org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStat
>sValve.java:76)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:641)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>  
>
>>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>	at
>>    
>>
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
>)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:643)
>  
>
>>	at
>>    
>>
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
>java:171)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:641)
>  
>
>>	at
>>    
>>
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
>)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:641)
>  
>
>>	at
>>    
>>
>org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssoci
>ationValve.java:65)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:641)
>  
>
>>	at
>>    
>>
>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:641)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>  
>
>>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>	at
>>    
>>
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
>:174)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:643)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>  
>
>>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
>>	at
>>    
>>
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
>  
>
>>	at
>>    
>>
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
>ction(Http11Protocol.java:549)
>  
>
>>	at
>>    
>>
>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
>  
>
>>	at
>>    
>>
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
>a:677)
>  
>
>>	at java.lang.Thread.run(Thread.java:534)
>>
>>
>>root cause
>>
>>javax.servlet.ServletException: Exception forwarding for name queryInput:
>>    
>>
>org.apache.jasper.JasperException
>  
>
>>	at
>>    
>>
>org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
>l.java:533)
>  
>
>>	at org.apache.jsp.index_jsp._jspService(index_jsp.java:60)
>>	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
>>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>	at
>>    
>>
>org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
>10)
>  
>
>>	at
>>    
>>
>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
>  
>
>>	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>	at
>>    
>>
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
>FilterChain.java:247)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
>ain.java:193)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
>va:256)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:643)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>  
>
>>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>	at
>>    
>>
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
>va:191)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:643)
>  
>
>>	at
>>    
>>
>org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrR
>ealm.java:220)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:641)
>  
>
>>	at
>>    
>>
>org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
>46)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:641)
>  
>
>>	at
>>    
>>
>org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStat
>sValve.java:76)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:641)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>  
>
>>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>	at
>>    
>>
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
>)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:643)
>  
>
>>	at
>>    
>>
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
>java:171)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:641)
>  
>
>>	at
>>    
>>
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
>)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:641)
>  
>
>>	at
>>    
>>
>org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssoci
>ationValve.java:65)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:641)
>  
>
>>	at
>>    
>>
>org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:641)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>  
>
>>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>	at
>>    
>>
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
>:174)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
>eNext(StandardPipeline.java:643)
>  
>
>>	at
>>    
>>
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>  
>
>>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>	at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
>>	at
>>    
>>
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
>  
>
>>	at
>>    
>>
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
>ction(Http11Protocol.java:549)
>  
>
>>	at
>>    
>>
>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
>  
>
>>	at
>>    
>>
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
>a:677)
>  
>
>>	at java.lang.Thread.run(Thread.java:534)
>>
>>
>>   -----------------------------------------------------------------------
>>    
>>
>-
>  
>
>>my struts-config.xml looks like this:
>>
>><!-- =================================== Global Forward Definitions -->
>>
>>   <global-forwards>
>>       <forward
>>           name="queryInput"
>>           path="/queryInput.do"/>
>>   </global-forwards>
>>
>>
>><!-- =================================== Action Mapping Definitions -->
>>
>>   <action-mappings>
>>
>>       <action
>>           path="/queryInput"
>>           type="org.apache.struts.actions.ForwardAction"
>>           parameter="/pages/QueryInput.jsp"/>
>>
>>   </action-mappings>
>>
>>
>>
>>thanks,
>>Alex
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>  
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message