I am not able to understand following -
I have portlet.xml (The portlet deployment descriptor) which has all modes of portlet. There is one Custom portlet mode defined by this tag -
All this code is generated by RAD, the preferences are -
The Init pram for StrutsPortlet class are -
I have struts-html-edit.xml file and struts-config.xml under WEB-INF
My struts-html-edit.xml file has /edit action mapping and when i personalize/edit my portlet it goes to edit_jsp.jsp but it fails when it tries to locate /edit mapping and spits this error -
Caused by: javax.servlet.jsp.JspException: Cannot retrieve mapping for action /edit
I dont understand when and how is struts-html-edit.xml is loaded and used/referred exactly by edit_jsp.jsp ... in fact this sturts-html-edit.xml file is not referred at all by my edit_jsp.jsp rather it looks under struts-config.xml
If i put the action mapping under struts-config.xml file, it just works
Can someone please explain me this ?
Thanks in Advance.
This topic has been locked.
2 replies Latest Post - 2013-02-20T06:28:54Z by manishaneja
Pinned topic Struts - Portlet xml and struts config
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-02-20T06:28:54Z at 2013-02-20T06:28:54Z by manishaneja
SystemAdmin 110000D4XK30897 Posts
manishaneja 110000QVBD4 PostsACCEPTED ANSWER
Re: Struts - Portlet xml and struts config2013-02-20T06:28:54Z in response to SystemAdminThere are couple of SPF samples at Portal catalog and one of them is for using edit mode, you can refer those to validate if there's any variance in what sample has done and what you have tried. You may need to register before getting permission to download those samples.