I was speaking with Lukasz today about this, so I'm resurrecting this
old thread.
The underlying question in my (rather extensive) post is:
How can you perform the following decorator pattern:
public OriginalAction implements Preparable,
SessionAware,OriginalActionInterface{
public String
I want to override the framework's built in TextProvider with my own. I
understand that I need to add mine as a bean in my strut.xml, but something
about the precise mechanics is eluding me.
For starters, this is from struts-default.xml
bean type=com.opensymphony.xwork2.TextProvider
I guess I need to map a constant value to my bean, but where do I find that
constant name?
-Original Message-
From: Davis, Chad [mailto:chad.da...@emc.com]
Sent: Wednesday, October 03, 2012 10:55 AM
To: user@struts.apache.org
Subject: overriding framework components
I want to
Ok. I found it in the javadoc for TextProvider
bean type=com.opensymphony.xwork2.TextProvider name=myProvider
class=com.mycompany.struts2.MyTextProviderSupport scope=default/
constant name=struts.xworkTextProvider value=myProvider/
This works.
-Original Message-
From: Davis, Chad
Hi:
I took a look at the ServletPrincipalProxy class, and it just
delegates to the current request object to resolve authorization
queries. There is not much more to do, since it is how the servlet
standard is defined (the HttpServletRequest interface is the only one
to query).
So implementing a
If this is a recurring functionality (that is, you use it on several
actions), then implementing it as an interceptor makes perfect sense.
http://struts.apache.org/2.3.4.1/docs/writing-interceptors.html
Gabriel
2012/10/3 Miguel Almeida mig...@almeida.at:
I was speaking with Lukasz today about
2012/10/3 Davis, Chad chad.da...@emc.com:
Ok. I found it in the javadoc for TextProvider
bean type=com.opensymphony.xwork2.TextProvider name=myProvider
class=com.mycompany.struts2.MyTextProviderSupport scope=default/
constant name=struts.xworkTextProvider value=myProvider/
This works.
7 matches
Mail list logo