top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

Access result name from JSP

0 votes
22 views

I have an action where all the possible results show the initial screen. I do that by using a "*" result

customer.publish-document.screen

But I would like to do some distinction in the underlying JSP between the diferent results, and for that I need to get the action result from the JSP. Is there an easy way to get it?

posted Jun 10, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

0 votes

I think there isn't a simple way. You must write an interceptor which
will set action name on the action, ie.

public String intercept(ActionInvocation ai) {
 Object action = ai.getAction();
 if (action instanceof ActionNameAware){
 ((ActionNameAware)action).setActionName(ai.getProxy().getActionName());
 }
}
answer Jun 11, 2013 by anonymous

Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...