You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Cody Caughlan <co...@lifeformsunlimited.com> on 2003/04/24 18:30:41 UTC

Action class insustantiated but not executed

Hello,

I have an Action class which seems to be getting created in the JVM but
not being executed when the ActionServlet "calls" it. 

My Containers (Tomcat) log:

[codyc@ledge logs]$ tail  localhost_log.2003-04-24.txt
2003-04-24 12:25:41 action: Processing a POST for /define
2003-04-24 12:25:41 action:  Looking for ActionForm bean under attribute
'DefineWordForm'
2003-04-24 12:25:41 action:  Creating new ActionForm instance of class
'com.lu.struts.dict.form.WordForm'
2003-04-24 12:25:41 action:  Storing instance under attribute
'DefineWordForm' in scope 'request'
2003-04-24 12:25:41 action:  Populating bean properties from this
request
2003-04-24 12:25:41 action:  Validating input form properties
2003-04-24 12:25:41 action:   No errors detected, accepting input
2003-04-24 12:25:41 action:  Looking for Action instance for class
com.lu.struts.dict.action.DefineForm
2003-04-24 12:25:41 action:   Double checking for Action instance
already there
2003-04-24 12:25:41 action:   Creating new Action instance
[END]

As can be seen the ActionForm passes muster and the ActionServlet finds
the appropriate Action class "DefineForm" but after attempting to
create/insustantiate this Action for the first time, control does not
get to it. Both logging statements in that Action class do not get
executed at the top of the execute() method and the web browser displays
a blank page (<html><body></body></html>).

Here is the relevant struts-config.xml:
<!-- ================= Form Bean Definitions ==================== -->
<form-beans>
        <form-bean name="DefineWordForm"
type="com.lu.struts.dict.form.WordForm"/>
</form-beans>

<!-- ================= Action Mappings and Action Definitions
================== -->
<action-mappings>


        <!-- ================ Define Word from main page definition
============== -->
        <action
                path="/define"
                type="com.lu.struts.dict.action.DefineForm"
                scope="request"
                name="DefineWordForm"
                validate="true"
                input="/index.jsp">
           <forward name="Success" path="/display.jsp" redirect="true"/>
           <forward name="NotDefined" path="/nosuchdef.jsp"
redirect="true"/>
        </action>

</action-mappings>


Does anybody have any help/ideas on what is goig on?

Thanks in advance.

/Cody Caughlan


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org