Hi,
I have a interceptor, which validates that the user is authenticated. It
does the authentication using a third party library and retrieves the user
id using the third party library.
I have a POJO action with propery userId. I want to set this property in the
interceptor, is this possible.
I
Hello I have a list of properties from a POJO as found using
introspection.
I want to iterate over a result set for each row, and iterate over a
list of property names for each cell in a table.
Something like:
s:iterator value = resultList
tr
s:iterator
It looks like I need to use a PropertyAccessor and
ognl.MapPropertyAccessor specifically. Are there any demos in how to
use it, can one use it directly from the JSP?
On Tue, 2011-02-01 at 15:35 -0700, Ken McWilliams wrote:
Hello I have a list of properties from a POJO as found using
Well I don't know if MapPropertyAccess would do what I want but found an
answer:
The following iterates over a list of POJO's and the properties are
determined for the particular POJO at run time and put in the
propertyValues list. The following is able to look up the property value
dynamically
On Tue, 2011-02-01 at 15:35 -0700, Ken McWilliams wrote:
s:iterator value = resultList
s:iterator value=propertyNames
...
I want propertyNames to be evaluated and the result used
as the value for the iterator, not simply interpreted as a
normal list.
Evaluated in what context? As a
Sorry; that was a draft and missed tab keystrokes--you already found it out :)
Dave
On Tue, Feb 1, 2011 at 6:49 PM, Dave Newton davelnew...@gmail.com wrote:
On Tue, 2011-02-01 at 15:35 -0700, Ken McWilliams wrote:
s:iterator value = resultList
s:iterator value=propertyNames
...
I want
Thank you Dave, I just managed to resolve the issue in a slightly
earlier post.
Here is the action that backs the JSP. Now In my table I have a column
which prints out db.localhost.test.Groups[name=ADMIN] because the object
is db.localhost.test.Groups and it has a single property called name.
Hi,
In Struts 1 I was able to extend the class ActionMapping and declare
additional properties for a mapping in the struts-config.xml
action-mappings type=MyActionMapping
action path=/main/index forward=index.pantalla scope=session
set-property property=publica value=true /
/action
,
PropertyUtils.getSimpleProperty(form, warType));
Any idea why?
--
View this message in context:
http://www.nabble.com/-Struts-1.3--converter-converts-but-not-set-property-tp25531070p25531070.html
Sent from the Struts - User mailing list archive at Nabble.com
() at the above, then it
works
BeanUtils.copyProperty(stk, warType,
PropertyUtils.getSimpleProperty(form, warType));
Any idea why?
--
View this message in context:
http://www.nabble.com/-Struts-1.3--converter-converts-but-not-set-property-tp25531070p25531070.html
Sent from the Struts
, warType));
Any idea why?
--
View this message in context:
http://www.nabble.com/-Struts-1.3--converter-converts-but-not-set-property-tp25531070p25531070.html
Sent from the Struts - User mailing list archive at Nabble.com
Hi get a problem with the caption parameter of this example, it is sent and
found by the MultiPartRequest Handler, but it is not set by the
ParametersInterceptor; look at the stacktrace:
18:11:49,119 DEBUG [org.apache.struts2.dispatcher.multipart.MultiPartRequest]
Found item upload
Am Dienstag, 5. August 2008 18:18:51 schrieb Torsten Krah:
Does look like a bug, is it?
https://issues.apache.org/struts/browse/WW-2464
May this be related to this bug?
Can anyone tell me what is/was the fix? Can i use the latestet GA release and
get this working (without patching)?
--
Bitte
The key attribute of set-property reads:
Since Struts 1.3, an alternate syntax is supported. By using
the key attribute instead of the property attribute, you can set
arbitrary string properties on the Config object which is populated
based on the containing element. NOTE
At 1:45 AM -0700 8/20/06, Paul Benedict wrote:
The key attribute of set-property reads:
Since Struts 1.3, an alternate syntax is supported. By using
the key attribute instead of the property attribute, you can set
arbitrary string properties on the Config object which is populated
So it's just a map of properties?
Joe Germuska [EMAIL PROTECTED] wrote: At 1:45 AM -0700 8/20/06, Paul Benedict
wrote:
The key attribute of set-property reads:
Since Struts 1.3, an alternate syntax is supported. By using
the key attribute instead of the property attribute, you can
PROTECTED] wrote: At 1:45
AM -0700 8/20/06, Paul Benedict wrote:
The key attribute of set-property reads:
Since Struts 1.3, an alternate syntax is supported. By using
the key attribute instead of the property attribute, you can set
arbitrary string properties on the Config object
The set-property element is used to set properties when using custom
configuration objects. For your particular example, check the custom
ActionMapping configuration object declared in the action-mapping
tag.
The /WEB-INF/struts-config.xml that comes with struts-examples.war
illustrates
I am not sure i follow..
To get the attribute value for following property for example
set-property name=someName value=someValue/
set-property name=someOtherName value=someOtherValue/
Are you saying i should have getSomeName, setSomeName in the class extending
ActionConfig ?
Thanks
Struts DTD specifies :
!ELEMENT action (icon?, display-name?, description?, set-property*,
exception*, forward*)
But there seems to be no API on ActionConfig to get the Name-Value paris
set using set-property Tag
action...
set-property name=someName value=someValue/
set-property name
set-property is available when u extend ActionConfig and include your
getter/setter methods. [for 1.2.x branch ]
if you're using 1.3.x-dev you can use
set-property key= value=
to set arbitrary properties without extending the config class.
Only available for ActionConfig as of now.
hopefully all
Hi,
This is regarding the forward declarations of the action mapping tags
in Struts-config xml,
For instance, in the below tag, a property is defined for pagetitle.
forward name=NameOfForward
className=SubClassOfActionForward path=TileEntry
set-property property
is defined for pagetitle.
forward name=NameOfForward
className=SubClassOfActionForward path=TileEntry
set-property property=pagetitle
value=TitleForThePage/
/forward
The question here is ,
* In which object this pageTitle property will be available and how
this can
=au.com.plantechnology.finance.struts.action.SecureAction
set-property property=securityRoles
value=admin,manager,finance/
forward name=success path=/test_security.jsp/
forward name=failure path=/login.jsp/
/action
/action-mappings
Where my property is securityRoles
=/SecureAction scope=request
type=au.com.plantechnology.finance.struts.action.SecureAction
set-property property=securityRoles
value=admin,manager,finance/
forward name=success path=/test_security.jsp/
forward name=failure path=/login.jsp/
/action
/action-mappings
=/SecureAction scope=request
type=au.com.plantechnology.finance.struts.action.SecureAction
set-property property=securityRoles
value=admin,manager,finance/
forward name=success path=/test_security.jsp/
forward name=failure path=/login.jsp/
/action
/action-mappings
Where my property
I'd switch on logging in debug mode - digester I think tells you loads about
what its doing, maybe you can work out from that whats happening at startup.
Niall
- Original Message -
From: Stephen Peck [EMAIL PROTECTED]
Sent: Monday, February 14, 2005 1:23 AM
Thanks for the reply Niall,
=/uploadSubmit
type=com.ms.promo.actions.UploadAction
input=/WEB-INF/web/upload.jsp
scope=request
name=uploadForm
set-property property=foo value=bar /
forward name=display path=/WEB-INF/web/display.jsp /
/action
/action-mappings
CustomActionMapping
: Wednesday, December 08, 2004 11:19 PM
Subject: Extending ActionMapping to use set-property
Hello,
We would like to introduce a custom parameter into all action's
ActionMappings. I've looked at a bunch of examples and threads, but
can't get it to work. Here's the setup:
Struts-config
Hi. For the record and the archives, it helps if your Ant script is actually copying
struts-config.xml over to your deployment directory. The set-property... / element
does, in fact, work exactly as advertised.
-= J
-Original Message-
From: James Childers [mailto:[EMAIL PROTECTED
Hi all:
I have a question regarding the use of plug-ins. According to the docs,
For PlugIns that require configuration themselves, the nested set-property element
is available.
My question is simply this: how do I retrieve the value that I set in a set-property
tag? I am sure this is dead
that something like this would work:
public class SomeLogicalClassName implements Plugin {
private String aWellNamedPropertyFieldYouWantToSet;
public void get...
public void set...
}
and in your config:
plug-in className=package.path.to.SomeLogicalClassName
set
-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 12:21 PM
To: Struts Users Mailing List
Subject: RE: Configuring plug-ins using set-property tag (in
struts-config.xml)
Jim:
egg-on-faceYes that worked. I actually read .. which
-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 15, 2004 3:35 PM
To: Struts Users Mailing List
Subject: RE: Configuring plug-ins using set-property tag (in
struts-config.xml)
P.S I can see now why writing to the list before googling
Hi, all
forward element is defined as following
!ELEMENT forward (icon?, display-name?, description?,
set-property*)
actualy i want to pass some values to forward but with
redirect true.
e.g.Action A expects one parameter..
I want to forward to action A from action B but with
redirect true
to ActionA -- foo=bar, and baz=blob -- note the use of amp; to avoid
XML confusion.
action path=/ActionB
type=com.foo.MyAction
forward name=success path=/ActionA.do?foo=baramp;baz=blob/
/action
The set-property element is used to set a property on the
ForwardConfig object. Typically you only
=baramp;baz=blob/
/action
The set-property element is used to set a property
on the
ForwardConfig object. Typically you only need to do
this if you are
providing a custom implementation of the
ActionForward object.
nikhil walvekar wrote:
Hi, all
forward element is defined
=baramp;baz=blob/
/action
The set-property element is used to set a property
on the
ForwardConfig object. Typically you only need to do
this if you are
providing a custom implementation of the
ActionForward object.
nikhil walvekar wrote:
Hi, all
forward element is defined as following
!ELEMENT forward
Hi Paraman!
Maybe I'm wrong, but if I remember right, it sets the property of the ActionMapping.
regards,
Axel
On 2004-05-23 at 10:08:44 +0800, Paraman wrote:
Hi all,
I am puzzled about the behavior of the set-property element when it is nested in
an action element. I thought it was setting
Hi all,
I am puzzled about the behavior of the set-property element when it is nested in an
action element. I thought it was setting the properties of the Action class, but it
seems not working. Could you please help me clear it up?
Thanks!
Paraman
field
and a public void setParamOne(String paramOne) method with a
S.o.p(...)
- Put a set-property property=paramOne value=Use Me!/ element in my
struts-config.
- Started up Tomcat.
- IT WORKED! - showed the message on load-up.
- Put in a public String getParamOne() method
- Started up Tomcat
chris wrote:
snip-o-la /
MUST NOT
implement a public boolean is{ParamName}() method
- doing so will prohibit the set{ParamName} method's invocation via the
set-property ...
Worked that out the hard way myself two days ago. I thought the
convention was to name the getter for a boolean
42 matches
Mail list logo