Author Login
Post Reply
user Digest 1 Apr 2008 21:27:16 -0000 Issue 7955
Topics (messages 184883 through 184900):
Scope of action messages?
184883 by: Allen, Daniel
184884 by: Chris Pratt
184886 by: Allen, Daniel
184887 by: Chris Pratt
184888 by: Allen, Daniel
Strange behavior: Trying to implement saveToken() in display actions.
184885 by: Doug Lochart
display XML file in JSP page
184889 by: Ashish Kulkarni
184893 by: Laurie Harper
184897 by: Ashish Kulkarni
Struts 1.3 + Spring -> "No WebApplicationContext found: no ContextLoaderListener registered?"
184890 by: Yayo
184891 by: Alberto A. Flores
184900 by: Yayo
struts.configuration custom configuration object not being loaded
184892 by: nnd
184894 by: nnd
Optiontransferselect list issue
184895 by: ryangr
Re: About Message Icons
184896 by: Kropp, Henning
Inheritence of validator annotations
184898 by: Allen, Daniel
ajax - how to remove my form after the user clicked submit.
184899 by: xianwinwin
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_184883.ezm (zipped)Hi, all.
I'm trying to display a message to the user to confirm that a new user
was created, basic par-for-the-course concept. However, I'm finding that
my <s:actionmessage/> tag doesn't render to anything. The first thing I
thought of was that my result for the user creation is an
action-redirect, so by the time we get to the JSP that shows action
messages, another whole action has executed. Do action messages have a
limited scope, i.e. are they being lost because we started a new action?
Thanks,
Dan Allen
--
This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as "KBC FP").
This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns.

Attachment:
user_184884.ezm (zipped)actionmessages, actionerrors and fielderrors are all request scope, so
they'll be gone by the time the redirect comes back around. You might
want to look into the scope interceptor, it can help bridge the gap.
(*Chris*)
On Tue, Apr 1, 2008 at 10:50 AM, Allen, Daniel <Daniel.Allen@(protected):
> Hi, all.
>
> I'm trying to display a message to the user to confirm that a new user
> was created, basic par-for-the-course concept. However, I'm finding that
> my <s:actionmessage/> tag doesn't render to anything. The first thing I
> thought of was that my result for the user creation is an
> action-redirect, so by the time we get to the JSP that shows action
> messages, another whole action has executed. Do action messages have a
> limited scope, i.e. are they being lost because we started a new action?
>
> Thanks,
> Dan Allen
>
> --
> This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as "KBC FP").
>
> This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_184886.ezm (zipped)Hmmm...
How much interfering in the internals do you suppose I'd have to do to
make action errors & messages hang around until the corresponding
<s:action___/> tag is rendered?
-----Original Message-----
From: Chris Pratt [mailto:thechrispratt@(protected)]
Sent: Tuesday, April 01, 2008 1:58 PM
To: Struts Users Mailing List
Subject: Re: Scope of action messages?
actionmessages, actionerrors and fielderrors are all request scope, so
they'll be gone by the time the redirect comes back around. You might
want to look into the scope interceptor, it can help bridge the gap.
(*Chris*)
--
This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as "KBC FP").
This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns.

Attachment:
user_184887.ezm (zipped)None if you use the store interceptor (sorry, I had the interceptor
name wrong on the last mail).
(*Chris*)
On Tue, Apr 1, 2008 at 11:22 AM, Allen, Daniel <Daniel.Allen@(protected):
> Hmmm...
>
> How much interfering in the internals do you suppose I'd have to do to
> make action errors & messages hang around until the corresponding
> <s:action___/> tag is rendered?
>
>
>
>
> -----Original Message-----
> From: Chris Pratt [mailto:thechrispratt@(protected)]
> Sent: Tuesday, April 01, 2008 1:58 PM
> To: Struts Users Mailing List
> Subject: Re: Scope of action messages?
>
> actionmessages, actionerrors and fielderrors are all request scope, so
> they'll be gone by the time the redirect comes back around. You might
> want to look into the scope interceptor, it can help bridge the gap.
> (*Chris*)
>
> --
>
>
> This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as "KBC FP").
>
> This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_184888.ezm (zipped)Oh. Yeah, that one looks a lot more immediately applicable. :)
Thanks!
~DVA
-----Original Message-----
From: Chris Pratt [mailto:thechrispratt@(protected)]
Sent: Tuesday, April 01, 2008 2:45 PM
To: Struts Users Mailing List
Subject: Re: Scope of action messages?
None if you use the store interceptor (sorry, I had the interceptor
name wrong on the last mail).
(*Chris*)
On Tue, Apr 1, 2008 at 11:22 AM, Allen, Daniel <Daniel.Allen@(protected)>
wrote:
> Hmmm...
>
> How much interfering in the internals do you suppose I'd have to do
to
> make action errors & messages hang around until the corresponding
> <s:action___/> tag is rendered?
>
>
>
>
> -----Original Message-----
> From: Chris Pratt [mailto:thechrispratt@(protected)]
> Sent: Tuesday, April 01, 2008 1:58 PM
> To: Struts Users Mailing List
> Subject: Re: Scope of action messages?
>
> actionmessages, actionerrors and fielderrors are all request scope,
so
> they'll be gone by the time the redirect comes back around. You
might
> want to look into the scope interceptor, it can help bridge the gap.
> (*Chris*)
>
> --
>
>
> This message may contain confidential, proprietary, or legally
privileged information. No confidentiality or privilege is waived by any
transmission to an unintended recipient. If you are not an intended
recipient, please notify the sender and delete this message immediately.
Any views expressed in this message are those of the sender, not those
of any entity within the KBC Financial Products group of companies
(together referred to as "KBC FP").
>
> This message does not create any obligation, contractual or
otherwise, on the part of KBC FP. It is not an offer (or solicitation of
an offer) of, or a recommendation to buy or sell, any financial product.
Any prices or other values included in this message are indicative only,
and do not necessarily represent current market prices, prices at which
KBC FP would enter into a transaction, or prices at which similar
transactions may be carried on KBC FP's own books. The information
contained in this message is provided "as is", without representations
or warranties, express or implied, of any kind. Past performance is not
indicative of future returns.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)
--
This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as "KBC FP").
This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns.

Attachment:
user_184885.ezm (zipped)I am trying to implement a pattern so that I can use struts tokens to
help prevent double submission. I seem to be getting a strange
sequence of events that I don't quite follow. Here is what I want to
do at a high level
displayCreateAccount -- forwards to --> CreateAccount.jsp (with form
action defined as /createAccount)
createAccount -- forwards to --> displayCreateAccountStep2 -- forwards
to --> CreateAccountStep2.jsp
The actions that start with 'display' merely set the struts token (e.g
saveToken( request ); )
Then it forwards it along to a jsp.
The actions that start with 'Create' check to see if the token is
valid then it processes the form submission and then
forwards it to another display action which will then set the next
toke for the next display of a JSP.
I have checked and rechecked all of my configs but I do not see a
mistake. I have also rebuilt the entire war
and cleaned out EVERYTHING in Tomcat but I get the same result. When
I hit the first displayCreateAccount action
it properly forwards control to the jsp page that is then presented.
When the form on the jsp page is submitted
the displayCreateAccountStep2 action is found (see log below) in the
mapping YET the original displayCreateAccount is executed. I have
turned on
debug of org.apache.struts. Here is my struts-config.xml and a
snippet of the logs showing what is happening.
I am curious as to why this is happening. I really want to understand
what I am doing wrong or why it is working this way.
Please let me know if I need to supply any more supporting documents.
thanks
Doug
snippet from struts-config.xml
------------
<global-forwards>
<forward name="logon" path="/logon.do"/>
<forward name="logoff" path="/logoff.do"/>
<forward name="doubleSubmit" path="display.double.submit"/>
</global-forwards>
<action-mappings>
<action path="/displayCreateAccount"
type="capesafe.web.action.DisplayCreateAccountAction"
name="accountSetupForm"
scope="request"
cancellable="true"
validate="false">
<forward name="display1" path="display.create.account.1"/>
</action>
<action path="/createAccount"
type="capesafe.web.action.CreateAccountAction"
name="accountSetupForm"
scope="request"
cancellable="true"
input="display.create.account.1">
<forward name="success" path="/displayCreateAccountStep2"/>
<forward name="failure" path="/WEB-INF/common/FailedLogon.jsp"/>
<forward name="cancel" path="/WEB-INF/common/CancelLogon.jsp"/>
</action>
<action path="/displayCreateAccountStep2"
type="capesafe.web.action.DisplayCreateAccountActionStep2"
name="accountSetupForm"
scope="request"
cancellable="true"
validate="false">
<forward name="displayStep2" path="display.create.account.2"/>
</action>
<action path="/createAccountStep2"
type="capesafe.web.action.CreateAccountActionStep2"
name="accountSetupFormStep2"
scope="request"
cancellable="true"
input="display.create.account.2">
<forward name="success" path="display.create.account.3"/>
<forward name="failure" path="/WEB-INF/common/FailedLogon.jsp"/>
<forward name="cancel" path="/WEB-INF/common/CancelLogon.jsp"/>
</action>
</action-mappings>
-----------------
snippet from log
------------------
42274 2008-04-01 13:38:12,979 DEBUG ModuleUtils - Get module name for
path /displayCreateAccount.do
42274 2008-04-01 13:38:12,979 DEBUG ModuleUtils - Module name found: default
42274 2008-04-01 13:38:12,979 INFO ComposableRequestProcessor -
Initializing composable request processor for module prefix ''
42274 2008-04-01 13:38:12,979 DEBUG ComposableRequestProcessor -
setActionContextClassName: no className specified
42296 2008-04-01 13:38:13,001 DEBUG ComposableRequestProcessor -
Using processing chain for this request
42296 2008-04-01 13:38:13,001 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.ExceptionCatcher42296 2008-04-01 13:38:13,001 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.SelectLocale42296 2008-04-01 13:38:13,001 DEBUG AbstractSelectLocale - retrieve config...
42298 2008-04-01 13:38:13,003 DEBUG AbstractSelectLocale - set
context locale to en_US
42299 2008-04-01 13:38:13,004 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.SetOriginalURI42299 2008-04-01 13:38:13,004 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.RequestNoCache42299 2008-04-01 13:38:13,004 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.SetContentType42299 2008-04-01 13:38:13,004 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.RemoveCachedMessages42300 2008-04-01 13:38:13,005 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.SelectAction42300 2008-04-01 13:38:13,005 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.AuthorizeAction42300 2008-04-01 13:38:13,005 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.CreateActionForm42300 2008-04-01 13:38:13,005 DEBUG CreateActionForm - Look up
form-bean accountSetupForm
42303 2008-04-01 13:38:13,008 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.PopulateActionForm42304 2008-04-01 13:38:13,009 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.ValidateActionForm42304 2008-04-01 13:38:13,009 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.SelectInput42304 2008-04-01 13:38:13,009 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.ExecuteCommand42305 2008-04-01 13:38:13,010 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.SelectForward42305 2008-04-01 13:38:13,010 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.SelectInclude42305 2008-04-01 13:38:13,010 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.PerformInclude42305 2008-04-01 13:38:13,010 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.CreateAction42306 2008-04-01 13:38:13,011 INFO CreateAction - Initialize action
of type: capesafe.web.action.DisplayCreateAccountAction
42309 2008-04-01 13:38:13,014 DEBUG AbstractCreateAction - setting
action to capesafe.web.action.DisplayCreateAccountAction@(protected)
42309 2008-04-01 13:38:13,014 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.ExecuteAction42309 2008-04-01 13:38:13,014 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.ExecuteForwardCommand42310 2008-04-01 13:38:13,015 DEBUG I18nFactorySet - Can't open file
'/WEB-INF/tiles-defs_en_US.xml'
42314 2008-04-01 13:38:13,019 DEBUG I18nFactorySet - Can't open file
'/WEB-INF/tiles-defs_en.xml'
42316 2008-04-01 13:38:13,021 INFO TilesPreProcessor - Tiles process
complete; forward to /WEB-INF/tiles/layout.jsp
42359 2008-04-01 13:38:13,064 DEBUG InsertTag - insert
page='/WEB-INF/tiles/header.jsp'.
42518 2008-04-01 13:38:13,223 DEBUG InsertTag - insert
page='/WEB-INF/tiles/menu.jsp'.
42540 2008-04-01 13:38:13,245 DEBUG InsertTag - insert
page='/WEB-INF/common/CreateAccount.jsp'.
42748 2008-04-01 13:38:13,453 DEBUG InsertTag - insert
page='/WEB-INF/tiles/footer.jsp'.
42902 2008-04-01 13:38:13,607 DEBUG TilesPreProcessor - Tiles
processed, so clearing forward config from context.
42902 2008-04-01 13:38:13,607 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.PerformForward< -- what follows is after I submit the form, this is where it gets odd -->
60247 2008-04-01 13:38:30,952 DEBUG ModuleUtils - Get module name for
path /createAccount.do
60247 2008-04-01 13:38:30,952 DEBUG ModuleUtils - Module name found: default
60247 2008-04-01 13:38:30,952 DEBUG ComposableRequestProcessor -
Using processing chain for this request
60247 2008-04-01 13:38:30,952 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.ExceptionCatcher60247 2008-04-01 13:38:30,952 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.SelectLocale60247 2008-04-01 13:38:30,952 DEBUG AbstractSelectLocale - retrieve config...
60248 2008-04-01 13:38:30,953 DEBUG AbstractSelectLocale - set
context locale to en_US
60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.SetOriginalURI60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.RequestNoCache60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.SetContentType60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.RemoveCachedMessages60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.SelectAction60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.AuthorizeAction60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.CreateActionForm60248 2008-04-01 13:38:30,953 DEBUG CreateActionForm - Look up
form-bean accountSetupForm
60248 2008-04-01 13:38:30,953 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.PopulateActionForm60249 2008-04-01 13:38:30,954 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.ValidateActionForm60308 2008-04-01 13:38:31,013 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.SelectInput60308 2008-04-01 13:38:31,013 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.ExecuteCommand60308 2008-04-01 13:38:31,013 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.SelectForward60308 2008-04-01 13:38:31,013 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.SelectInclude60308 2008-04-01 13:38:31,013 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.PerformInclude60308 2008-04-01 13:38:31,013 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.CreateAction60308 2008-04-01 13:38:31,013 INFO CreateAction - Initialize action
of type: capesafe.web.action.CreateAccountAction
60310 2008-04-01 13:38:31,015 DEBUG AbstractCreateAction - setting
action to capesafe.web.action.CreateAccountAction@(protected)
60310 2008-04-01 13:38:31,015 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.ExecuteAction60311 2008-04-01 13:38:31,016 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.ExecuteForwardCommand60311 2008-04-01 13:38:31,016 DEBUG TilesPreProcessor - no uri
computed, so pass to next command
<!-- look at this ... it sees the displayCreateAccountStep action but
it executes displayCreateAccount.do instead ???-->
60311 2008-04-01 13:38:31,016 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.PerformForward60312 2008-04-01 13:38:31,017 DEBUG PerformForward - Forwarding to
/displayCreateAccountStep2
60312 2008-04-01 13:38:31,017 DEBUG ModuleUtils - Get module name for
path /displayCreateAccount.do
60312 2008-04-01 13:38:31,017 DEBUG ModuleUtils - Module name found: default
60312 2008-04-01 13:38:31,017 DEBUG ComposableRequestProcessor -
Using processing chain for this request
60312 2008-04-01 13:38:31,017 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.ExceptionCatcher60312 2008-04-01 13:38:31,017 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.SelectLocale60312 2008-04-01 13:38:31,017 DEBUG AbstractSelectLocale - retrieve config...
60312 2008-04-01 13:38:31,017 DEBUG AbstractSelectLocale - set
context locale to en_US
60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.SetOriginalURI60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.RequestNoCache60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.SetContentType60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.RemoveCachedMessages60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.SelectAction60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.AuthorizeAction60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.CreateActionForm60313 2008-04-01 13:38:31,018 DEBUG CreateActionForm - Look up
form-bean accountSetupForm
60313 2008-04-01 13:38:31,018 DEBUG FormBeanConfig - Can reuse
existing instance (non-dynamic)
60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.PopulateActionForm60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.ValidateActionForm60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.SelectInput60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.ExecuteCommand60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.SelectForward60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.SelectInclude60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.PerformInclude60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.CreateAction60313 2008-04-01 13:38:31,018 DEBUG AbstractCreateAction - setting
action to capesafe.web.action.DisplayCreateAccountAction@(protected)
60313 2008-04-01 13:38:31,018 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.ExecuteAction60314 2008-04-01 13:38:31,019 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.ExecuteForwardCommand60314 2008-04-01 13:38:31,019 INFO TilesPreProcessor - Tiles process
complete; forward to /WEB-INF/tiles/layout.jsp
60314 2008-04-01 13:38:31,019 DEBUG InsertTag - insert
page='/WEB-INF/tiles/header.jsp'.
60483 2008-04-01 13:38:31,188 DEBUG InsertTag - insert
page='/WEB-INF/tiles/menu.jsp'.
60494 2008-04-01 13:38:31,199 DEBUG InsertTag - insert
page='/WEB-INF/common/CreateAccount.jsp'.
60524 2008-04-01 13:38:31,229 DEBUG InsertTag - insert
page='/WEB-INF/tiles/footer.jsp'.
60566 2008-04-01 13:38:31,271 DEBUG TilesPreProcessor - Tiles
processed, so clearing forward config from context.
60566 2008-04-01 13:38:31,271 DEBUG ActionCommandBase - Executing
org.apache.struts.chain.commands.servlet.PerformForward--
What profits a man if he gains the whole world yet loses his soul?

Attachment:
user_184889.ezm (zipped)Hi
I need to display XML file in JSP page (raw XML file)
in my Action Class i read this XML file, but how do i display in proper
format in JSP, i want the XML file displayed as is.
Regards
Ashish

Attachment:
user_184893.ezm (zipped)Ashish Kulkarni wrote:
> Hi
> I need to display XML file in JSP page (raw XML file)
> in my Action Class i read this XML file, but how do i display in proper
> format in JSP, i want the XML file displayed as is.
> Regards
> Ashish
Don't use a JSP. Either link to the XML file directly (if it's somewhere
accessible in your web application content) or write it to the response
output stream in your action and return null to let Struts know the
response has been completed.
L.

Attachment:
user_184897.ezm (zipped)Hi
thanks it works
On 4/1/08, Laurie Harper <laurie@(protected):
>
> Ashish Kulkarni wrote:
> > Hi
> > I need to display XML file in JSP page (raw XML file)
> > in my Action Class i read this XML file, but how do i display in proper
> > format in JSP, i want the XML file displayed as is.
> > Regards
> > Ashish
>
>
> Don't use a JSP. Either link to the XML file directly (if it's somewhere
> accessible in your web application content) or write it to the response
> output stream in your action and return null to let Struts know the
> response has been completed.
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_184890.ezm (zipped)
Attachment:
user_184891.ezm (zipped)
Attachment:
user_184900.ezm (zipped)yep I did, it's were my context gets started, everything goes fine, actions,
transactions and the like until I try to instantiate this object. I've tried
both lazy-init="false" and "true" but...
On Tue, Apr 1, 2008 at 9:39 PM, Alberto A. Flores <aaflores@(protected)>
wrote:
> Have you added the contextLoaderListener in web.xml?
>
>
> Yayo wrote:
>
> > Hi and thanks in advance!
> >
> > I've got a struts - spring based application and a declared bean wich
> > implements both ApplicationContextAware and ServletContextAware. I debug
> > the
> > code and both setters receive data but when I try to use the
> > servletContext
> > it spites me this error:
> >
> > 21:15:56,031 ERROR ContextLoader:214 - Context initialization failed
> >
org.springframework.beans.factory.BeanCreationException: Error creating
> > bean
> > with name 'updateFeedProcessTarget' defined in ServletContext resource
> > [/WEB-INF/spring/batch.xml]: Invocation of init method failed; nested
> > exception is
java.lang.IllegalStateException: No WebApplicationContext
> > found: no ContextLoaderListener registered?
> > at
> >
> >
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean> > (AbstractAutowireCapableBeanFactory.java:1302)
> > at
> >
> >
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean> > (AbstractAutowireCapableBeanFactory.java:463)
> > at
> >
> >
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run
> > (AbstractAutowireCapableBeanFactory.java:404)
> > at
java.security.AccessController.doPrivileged(Native Method)
> > at
> >
> >
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean> > (AbstractAutowireCapableBeanFactory.java:375)
> > at
> >
> >
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(
> > AbstractBeanFactory.java:263)
> > at
> >
> >
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton> > (DefaultSingletonBeanRegistry.java:170)
> > at
> >
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(
> > AbstractBeanFactory.java:260)
> > at
> >
org.springframework.beans.factory.support.AbstractBeanFactory.getBean> > (AbstractBeanFactory.java:184)
> > at
> >
org.springframework.beans.factory.support.AbstractBeanFactory.getBean> > (AbstractBeanFactory.java:163)
> > at
> >
> >
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons> > (DefaultListableBeanFactory.java:430)
> > at
> >
> >
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization> > (AbstractApplicationContext.java:729)
> > at
> >
org.springframework.context.support.AbstractApplicationContext.refresh(
> > AbstractApplicationContext.java:381)
> > at
> >
> >
org.springframework.web.context.ContextLoader.createWebApplicationContext(
> > ContextLoader.java:254)
> > at
> >
org.springframework.web.context.ContextLoader.initWebApplicationContext(
> > ContextLoader.java:198)
> > at
> >
> >
org.springframework.web.context.ContextLoaderListener.contextInitialized(
> > ContextLoaderListener.java:45)
> > at
org.apache.catalina.core.StandardContext.listenerStart(
> > StandardContext.java:3827)
> > at
> >
org.apache.catalina.core.StandardContext.start(StandardContext.java
> > :4334)
> > at
> >
org.apache.catalina.core.ContainerBase.start (
ContainerBase.java:1045)
> > at
org.apache.catalina.core.StandardHost.start (
StandardHost.java:719)
> > at
> >
org.apache.catalina.core.ContainerBase.start (
ContainerBase.java:1045)
> > at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java
> > :443)
> > at
> >
org.apache.catalina.core.StandardService.start(StandardService.java
> > :516)
> > at
org.apache.catalina.core.StandardServer.start(StandardServer.java
> > :710)
> > at
org.apache.catalina.startup.Catalina.start (
Catalina.java:566)
> > at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java:39)
> > at
sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:25)
> > at
java.lang.reflect.Method.invoke (
Method.java:597)
> > at
org.apache.catalina.startup.Bootstrap.start (
Bootstrap.java:288)
> > at
org.apache.catalina.startup.Bootstrap.main (
Bootstrap.java:413)
> > Caused by:
java.lang.IllegalStateException: No WebApplicationContext
> > found:
> > no ContextLoaderListener registered?
> > at
> >
> >
org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext> > (WebApplicationContextUtils.java:95)
> > at com.eduyayo.select.batch.Process.getSession(Process.java:153)
> > at com.eduyayo.select.batch.Process.init(Process.java:73)
> > at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java:39)
> > at
sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:25)
> > at
java.lang.reflect.Method.invoke (
Method.java:597)
> > at
> >
> >
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod> > (AbstractAutowireCapableBeanFactory.java:1378)
> > at
> >
> >
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods> > (AbstractAutowireCapableBeanFactory.java:1339)
> > at
> >
> >
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean> > (AbstractAutowireCapableBeanFactory.java:1299)
> > ... 30 more:
> >
> >
> >
> >
> --
>
> Alberto A. Flores
> http://www.linkedin.com/in/aflores
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
--
"Sit tibi terra levis"
http://yayocaturas.blogspot.com/

Attachment:
user_184892.ezm (zipped)
Attachment:
user_184894.ezm (zipped)
Attachment:
user_184895.ezm (zipped)
I have the following for code in my JSP:
<s:optiontransferselect
name="user.groups"
list="user.groups"
listKey="id"
listValue="title"
multiple="true"
doubleList="groups"
doubleName="groups"
doubleListKey="id"
doubleMultiple="true"
doubleListValue="title"
allowSelectAll="false"
allowUpDownOnLeft="false"
allowUpDownOnRight="false"
/>
In my action I have a "groups" variable that is an extended ArrayList and a
user variable that contains an extended ArrayList also named "groups". Both
"groups" variables are of the same type GroupList that is my own custom
type, although it's really just a simple extension of ArrayList.
With that being said...I can populate the list "groups" just fine, but when
I try to use "user.groups" to get the other list it throws an exception that
says: "The requested list key 'user.groups' could not be resolved as a
collection/array/map/enumeration/iterator type." What am I doing wrong? It's
probably pretty obvious, but this hasn't exactly been a good week for
concentration so far. ;)
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_184896.ezm (zipped)Chen Chunwei schrieb:
> Hi all,
>
> Is there any tag can be used to display message icons? I mean icons like alert, error, info and etc.
>
> Talos
Appfuse has implemented it in a way I think is very nice. Might consider
to check it out.
kropp

Attachment:
user_184898.ezm (zipped)Hi, all.
I have a superclass where almost all of the subclasses will require
several validations for a particular field, but one subclass will use
some but not all of those validations. I know that you can add
@SkipValidation to avoid all validators, but is there something that you
can use to mark a set() method as not using any of the validators on
overridden superclass methods?
Thanks,
~Dan Allen
--
This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as "KBC FP").
This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided "as is", without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns.

Attachment:
user_184899.ezm (zipped)
Hi there,
I created an ajax capability to my form where the user clicks the 'add note'
button -a textarea is shown with a submit button (the textarea is shown just
below the [add note] button) the form works great.
I wonder:
1. When the user clicks submit and the process is over - how can I
'pushback' the form (or to remove the text area from the page)?
2. say the user doesn't want to add any note, how can I, with the same
button [add note], remove the textarea from the screen.
THANK YOU!!!
--
Sent from the Struts - User mailing list archive at Nabble.com.