PDA

View Full Version : How to get action name from spring managed actions


aamol
Aug 12th, 2007, 11:18 AM
Hi,

I am using spring-struts integration. I want to get the name of the action from the path used while submitting a form. This is how i am using spring in my struts-config

<action input="xxxxx.xxxxx" name="xxxxxxxx" parameter="do"
path="/xxxxxPath" scope="request"
type="org.springframework.web.struts.DelegatingActionPro xy">
<forward name="xxxxxx" path="xxx.xxx" />
</action>

and my entry in applicationContext looks like

<bean name="/xxxxxPath"
class="xxxx.xxxx.xxxx.xxxx.xxxx.SomeAction">
<property name="xxxxxService">
<ref bean="xxxxxxServiceDelegate" />
</property>
</bean>



Now when i am using a non spring code i am able to retrieve the action by using

processActionCreate(request, response, mapping); a method of "RequestProcessor" of struts .

But when i try to get action from spring managed action i get "org.springframework.web.struts.DelegatingActionPro xy"

Is there some method through which i can get the action using the path.


Thanks ,
Amol

aamol
Aug 13th, 2007, 09:53 AM
Hi All,

I see there are no replys . Does any one have idea that do we have something similar to "RequestProcessor" of struts.

Thanks,
Amol