struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Struts Developer" <dhsstrutsdevelo...@hotmail.com>
Subject Really Dumb Newbie Question about Extending Action
Date Wed, 10 Apr 2002 13:19:36 GMT
Some days it just doesn't pay to chew through the leather straps and come to 
work...

I would like to add a layer of inheritance between the 
org.apache.struts.action.Action class and my application's Action 
subclasses.

IE: MyAction extends ORGAction extends Action.

Seems simple enough, however when I set this up and run my applicaiton it 
doesn't work. No error messages, no compile errors, no nothing. When 
MyAction extends Action directly the application runs as expected and I get 
the proper output and log messages, like so:

==== start of copied log
[02.04.10 07:28:43:630 CDT] 7f9895eb WebGroup      I SRVE0091I: [Servlet 
LOG]: action: Process servletName=action, urlPattern=*.do
[02.04.10 07:28:43:660 CDT] 7f9895eb WebGroup      I SRVE0091I: [Servlet 
LOG]: action: Mapping for servlet 'action' = '*.do'
[02.04.10 07:28:59:923 CDT] 6572d5f7 WebGroup      I SRVE0091I: [Servlet 
LOG]: action: Processing a GET for /enterVisitorDisplay
[02.04.10 07:29:00:184 CDT] 6572d5f7 WebGroup      I SRVE0091I: [Servlet 
LOG]: action: Setting locale 'en_US'
[02.04.10 07:29:00:194 CDT] 6572d5f7 WebGroup      I SRVE0091I: [Servlet 
LOG]: action:  Looking for ActionForm bean under attribute ''
[02.04.10 07:29:00:214 CDT] 6572d5f7 WebGroup      I SRVE0091I: [Servlet 
LOG]: action:  Creating new ActionForm instance of class 
'dhs.vcm.vis.form.SuccessContentForm'
[02.04.10 07:29:00:794 CDT] 6572d5f7 WebGroup      I SRVE0091I: [Servlet 
LOG]: action:  Storing instance under attribute '' in scope 'session'
[02.04.10 07:29:00:804 CDT] 6572d5f7 WebGroup      I SRVE0091I: [Servlet 
LOG]: action:  Populating bean properties from this request
[02.04.10 07:29:01:526 CDT] 6572d5f7 WebGroup      I SRVE0091I: [Servlet 
LOG]: action:  Validating input form properties
[02.04.10 07:29:01:526 CDT] 6572d5f7 WebGroup      I SRVE0091I: [Servlet 
LOG]: action:  Looking for Action instance for class 
dhs.vcm.vis.action.EnterVisitorActionDisplay
[02.04.10 07:29:01:526 CDT] 6572d5f7 WebGroup      I SRVE0091I: [Servlet 
LOG]: action:   Double checking for Action instance already there
[02.04.10 07:29:01:526 CDT] 6572d5f7 WebGroup      I SRVE0091I: [Servlet 
LOG]: action:   Creating new Action instance
[02.04.10 07:29:01:706 CDT] 6572d5f7 SystemOut     U  
EnterVisitorActionDisplay : perform : entered
[02.04.10 07:29:01:826 CDT] 6572d5f7 SystemOut     U  
EnterVisitorActionDisplay : perform : posting message
[02.04.10 07:29:01:856 CDT] 6572d5f7 SystemOut     U  MessageRouting : 
postMessageToQueue : enterVisitor
[02.04.10 07:29:01:866 CDT] 6572d5f7 SystemOut     U  
EnterVisitorActionDisplay : perform : leaving now
==== end of copied log

When I have MyAction extending ORGAction, which extends Action I get this:

==== start of copied log
[02.04.10 07:32:02:396 CDT] 7a45d5f7 WebGroup      I SRVE0091I: [Servlet 
LOG]: action: Process servletName=action, urlPattern=*.do
[02.04.10 07:32:02:416 CDT] 7a45d5f7 WebGroup      I SRVE0091I: [Servlet 
LOG]: action: Mapping for servlet 'action' = '*.do'
[02.04.10 07:32:35:794 CDT] 6572d5f7 WebGroup      I SRVE0091I: [Servlet 
LOG]: action: Processing a GET for /enterVisitorDisplay
[02.04.10 07:32:35:954 CDT] 6572d5f7 WebGroup      I SRVE0091I: [Servlet 
LOG]: action: Setting locale 'en_US'
[02.04.10 07:32:35:974 CDT] 6572d5f7 WebGroup      I SRVE0091I: [Servlet 
LOG]: action:  Looking for ActionForm bean under attribute ''
[02.04.10 07:32:35:984 CDT] 6572d5f7 WebGroup      I SRVE0091I: [Servlet 
LOG]: action:  Creating new ActionForm instance of class 
'dhs.vcm.vis.form.SuccessContentForm'
[02.04.10 07:32:36:675 CDT] 6572d5f7 WebGroup      I SRVE0091I: [Servlet 
LOG]: action:  Storing instance under attribute '' in scope 'session'
[02.04.10 07:32:36:685 CDT] 6572d5f7 WebGroup      I SRVE0091I: [Servlet 
LOG]: action:  Populating bean properties from this request
[02.04.10 07:32:37:075 CDT] 6572d5f7 WebGroup      I SRVE0091I: [Servlet 
LOG]: action:  Validating input form properties
[02.04.10 07:32:37:116 CDT] 6572d5f7 WebGroup      I SRVE0091I: [Servlet 
LOG]: action:  Looking for Action instance for class 
dhs.vcm.vis.action.EnterVisitorActionDisplay
[02.04.10 07:32:37:126 CDT] 6572d5f7 WebGroup      I SRVE0091I: [Servlet 
LOG]: action:   Double checking for Action instance already there
[02.04.10 07:32:37:136 CDT] 6572d5f7 WebGroup      I SRVE0091I: [Servlet 
LOG]: action:   Creating new Action instance
==== end of copied log

What gives? I know I am doing something very basic wrong. I just can't see 
it. Sigh.

TIA,
Mark

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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


Mime
View raw message