Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Liferay 6.0.6 + Struts 2.2.3

 
E. Tse
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

Have you encountered similar problems when developing portlet using struts 2 portlet plugin 2.2.3 ?

Screen Flow:
- input
- update
- if success -> set action message "blah blah blah is success", clear form value
- if failed -> set error "blah blah blah has error", retain form values


My Struts Config:
<package name="xxadminView" namespace="/admin/view" extends="struts-portlet-default">

<action name="input" method="input" class="com.ActionSupportAction">
<result name="success">/WEB-INF/jsp/view/input.jsp</result>
</action>

<action name="update" method="update" class="com.ActionSupportAction">
<result name="success" type="redirectAction">
<param name="actionName">input</param>
<param name="portletMode">view</param>
</result>
<result name="error" type="chain">input</result>
</action>
</package>

Results:

The requested resource (/my-portlet/view/input) is not available

Thanks,
Eric
 
E. Tse
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so surprised that no one use struts 2 plugins in Liferay.....
 
manish jaiswal
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eric ,

I think there was some issue in 6.0.5 Liferay for struts portlet . I dont know if it is OK in 6.0.6 Version for more refer to forums and blog in liferay.com


Regards
Manish
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic