Re: Obtaining the value of struts.action.extension in a struts2 nterceptor

2009-05-28 Thread Yellek
Thanks! This works like a charm. Musachy Barroso wrote: > > add this to your interceptor > > @Inject(StrutsConstants.STRUTS_ACTION_EXTENSION) > public void setExtension(Strtin ext) {} > > musachy > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd > >

Obtaining the value of struts.action.extension in a struts2 nterceptor

2009-05-28 Thread Yellek
I have a need to obtain the value of struts.action.extension in an interceptor. Browsing around the source code with a debugger isn't getting me anywhere. Can anyone suggest a way to access the struts.xml constant definitions in the context of an interceptor? -- View this message in context: htt

Render Saved Action Parameters

2009-05-16 Thread Yellek
I have an interceptor that is saving the state of certain action calls for the purpose of rendering breadcrumbs in the UI. The interceptor is successfully saving a map of parameters from the invocation context and storing them in the user's session. What I can't figure out is how to render a URL t

ModelDrivenInterceptor not refreshing model for Struts2

2009-04-24 Thread Yellek
I have a ModelDrivenInterceptor set up as follows in struts.xml: true My save method in my action is as follows: /** * Create or update the entity. * * @return Show */ public String save() {

Action Validation with Slashes

2008-05-14 Thread Yellek
We have an issue where we are trying to set up validation.xml files for action invocations that contain slashes. From running a debugger on the XWork code it would appear that if action com.mycompany.action.MyAction is being executed via the url /context-root/package/MyAction/operation.action that

Context Root for Image Button src attribute

2008-04-28 Thread Yellek
I am trying to write an image button of the form: where context-root is the configured context root of my web application. Can anyone suggest a good way to dynamically populate the context root? I am assuming that the src string is being interpreted via OGNL but I can't figure out an appropria