You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Sheehan, Andrew" <AJ...@doe.mass.edu> on 2004/08/31 19:43:04 UTC

Initial invocation (HTTP GET) Instantiates an Action, but does no t invoke execute(...)

Good Afternoon,

 

 

An instance of a my Action class only has its' constructor firing when the
ActionServlet first loads it, when the execute(...) function should be
invoked at some point afterward.  I do not have any need for a ActionForm
with this specific request; only that the request must pull information out
of the database, which would occur if the execute(..) function happened.  

 

My struts-config file is very small; this is the beginning of my integration
work with a application that does not use Struts (soon to change if I make
some progress :-) )  

 

Here is my struts-config.xml:

 

<?xml version="1.0" encoding="ISO-8859-1" ?>

 

<!DOCTYPE struts-config PUBLIC

          "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"

          "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">

 

<struts-config>

  <action-mappings>  

    <action path="/planning"
type="smartt.planning.benefit.action.ViewBenefit" scope="request" ></action>

  </action-mappings>

</struts-config>

 

Again, I have not declared any  ActionForm's, since this particular request
is pulling data out of the database, and there are no form elements being
sent over.  

My web.xml has the standard mappings for ActionServlet, and any URI with
/*.do map to it.  What does happen is the browser returns with a blank page.

I did read up on possible causes (misspellings, missing declarations and/or
attributes and that sort, but didn't find any related solution in the forums
or via searches in Google.

 

I appreciate it.

 

-Andy