cancel
Showing results for 
Search instead for 
Did you mean: 

overriding JSPs in jsp/actions directory

pallavi_jain
Champ in-the-making
Champ in-the-making
For my project i need to customise JSPs existing in /jsp/actions directory.
The URL seemed hard coded for me in BaseActionHandler.java and i made the following changes to it:
protected static final String ACTION_PAGES_LOCATION = "/jsp/extension/actions";

but still my custom JSPs in extension/actions are not picked up.
What am i missing?
Any configurations?
Please help
4 REPLIES 4

romschn
Star Collaborator
Star Collaborator
Instead of modifying in the BaseActionHandler class, you should override the getJSPPath method in the handler class of your custom action which should return the custom location of the jsp.

Hope this helps.

Thanks,

pallavi_jain
Champ in-the-making
Champ in-the-making
thanks romschn,
yes, the way you are suggesting could also be the correct one.
But after modifying BaseActionHandler, there was a configuration to be overridden in we-client-config-custom.xml, The RunAction Wizard.


<page path=“/jsp/extension/actions/actions.jsp” title-id=“run_action_step1_title” description=“” instruction-id=“default_instruction”/>

And <action-handler> tag also.

I have accomplished this now.
Thanks for your input.

pallavi_jain
Champ in-the-making
Champ in-the-making
thanks romschn,
yes, the way you are suggesting could also be the correct one.
But after modifying BaseActionHandler, there was a configuration to be overridden in we-client-config-custom.xml, The RunAction Wizard.


<page path=“/jsp/extension/actions/actions.jsp” title-id=“run_action_step1_title” description=“” instruction-id=“default_instruction”/>

And <action-handler> tag also.

I have accomplished this now.
Thanks for your input.

Cool ! If that was useful, hope you had given a point to the post. Thanks,