Set property for a action in interceptor

2011-08-18 Thread Jyothrilinga Rao
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

struts2 property tag, how to dynamically set property name

2011-02-01 Thread Ken McWilliams
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

Re: struts2 property tag, how to dynamically set property name

2011-02-01 Thread Ken McWilliams
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

Re: struts2 property tag, how to dynamically set property name

2011-02-01 Thread Ken McWilliams
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

Re: struts2 property tag, how to dynamically set property name

2011-02-01 Thread Dave Newton
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

Re: struts2 property tag, how to dynamically set property name

2011-02-01 Thread Dave Newton
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

Re: struts2 property tag, how to dynamically set property name

2011-02-01 Thread Ken McWilliams
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.

set-property in action-mapping in Struts 2

2010-01-13 Thread Jose Luis Martinez Avial
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

Re: [Struts 1.3] converter converts but not set property

2009-09-24 Thread senderj
, 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

[Struts 1.3] converter converts but not set property

2009-09-23 Thread senderj
() 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

Re: [Struts 1.3] converter converts but not set property

2009-09-23 Thread Arthur Neves
, 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

struts-portlet-sample - UploadFileAction, caption parameter not set, ParametersInterceptor does not set property found by MultiPartRequest

2008-08-05 Thread Torsten Krah
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

Re: struts-portlet-sample - UploadFileAction, caption parameter not set, ParametersInterceptor does not set property found by MultiPartRequest

2008-08-05 Thread Torsten Krah
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

1.3 set-property key

2006-08-20 Thread Paul Benedict
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

Re: 1.3 set-property key

2006-08-20 Thread Joe Germuska
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

Re: 1.3 set-property key

2006-08-20 Thread Paul Benedict
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

Re: 1.3 set-property key

2006-08-20 Thread Joe Germuska
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

Re: set-property?

2005-05-20 Thread Hubert Rabago
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

RE: Action's set-property Tag

2005-05-08 Thread Prashant Reddy
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

Action's set-property Tag

2005-05-06 Thread Prashant Reddy
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

Re: Action's set-property Tag

2005-05-06 Thread rmanchu
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

Reg. Forward and set-property.

2005-04-21 Thread Iyanu, Rajasekaran
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

Re: Reg. Forward and set-property.

2005-04-21 Thread Joe Germuska
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

ActionServlet creating action mapping extension not calling set property(s)

2005-02-13 Thread Stephen Peck
=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

Re: ActionServlet creating action mapping extension not calling set property(s)

2005-02-13 Thread Niall Pemberton
=/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

Re: ActionServlet creating action mapping extension not calling set property(s)

2005-02-13 Thread Stephen Peck
=/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

Re: ActionServlet creating action mapping extension not calling set property(s)

2005-02-13 Thread Niall Pemberton
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,

Extending ActionMapping to use set-property

2004-12-08 Thread Dahnke, Eric (Company IT)
=/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

Re: Extending ActionMapping to use set-property

2004-12-08 Thread Niall Pemberton
: 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

RE: set-property... / in action mapping: working?

2004-08-30 Thread James Childers
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

Configuring plug-ins using set-property tag (in struts-config.xml)

2004-07-15 Thread Geeta Ramani
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

RE: Configuring plug-ins using set-property tag (in struts-config.xml)

2004-07-15 Thread Geeta Ramani
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

RE: Configuring plug-ins using set-property tag (in struts-config.xml)

2004-07-15 Thread Jim Barrows
-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

RE: Configuring plug-ins using set-property tag (in struts-config.xml)

2004-07-15 Thread Geeta Ramani
-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

using set-property in forward tag

2004-06-28 Thread nikhil walvekar
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

Re: using set-property in forward tag

2004-06-28 Thread Bill Siggelkow
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

Re: using set-property in forward tag

2004-06-28 Thread nikhil walvekar
=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

Re: using set-property in forward tag

2004-06-28 Thread Bill Siggelkow
=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

Re: The set-property element

2004-05-23 Thread Axel Groß
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

The set-property element

2004-05-22 Thread Paraman
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

re: Problem with custom ActionMapping and set-property ... /

2004-04-06 Thread chris
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

Re: Problem with custom ActionMapping and set-property ... /

2004-04-06 Thread bOOyah
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