Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Liferay 7.3 - StrutsAction for update_terms_of_use
Hi Team,
I want to implement StrutsAction for update_terms_of_use in Liferay 7.3.
Can any one help me out, How to implement in Liferay 7.3
If you need just to change the text of Terms of Use, point in Instance Settings to a different Web Content as explained here: https://learn.liferay.com/dxp/latest/en/system-administration/configuring-liferay/virtual-instances/instance-configuration.html#terms-of-use
Thanks for your reply.
I want override StrutsAction for /portal/update_terms_of_use in 7.3 version.
Trying to migrate StrutsAction Hook from 7.0 to 7.3 for /portal/update_terms_of_use.
Note:
I overriden BaseStrutsAction for /portal/update_terms_of_use in 7.0 version.
BaseStrutsAction is deprecated in 7.3 version.
Instead of BaseStrutsAction I used StrutsAction (in 7.3) but i was unable find actionhelper to process next.
Can you please help me out
What did /portal/update_terms_of_use actually do? And what custom feature did you implement in your own extension?
If you ask in terms of what you're trying to achieve rather than what technical solution you have, we can point you to a solution easier.
Thanks for your reply.
I want store timestamp in custom field of user entity when user click on I Agree button terms of use screen.
In 7.0 version, overriden BaseStrutsAction for /portal/update_terms_of_use.
BaseStrutsAction is deprecated in 7.3 version.
Instead of BaseStrutsAction I used StrutsAction in 7.3 but when user click on I Agree button terms of use screen then it is showing white screen. it is not going to next.
With that, I'd say: Identify what the current implementation is and
override that. Chances are that it's a MVCAction, but I haven't looked
at it.
You could also introduce a UserLocalServiceWrapper that
checks for modifications of the field and persists your custom field
then and there.
Or run a daily job to determine whose acceptance status has changed since the last time the script ran, and write that timestamp. It doesn't correspond with the exact time of acceptance, but with the day.
To implement this one by using MVCActionCommand what is the value i need to use for javax.portlet.name property.
To implement this one by using MVCActionCommand what is the value need to use for javax.portlet.name property.
Hello Chanakya,
BaseStrutsAction is deprecated but not replaced everywhere.
In your case it is not replaced by a MVCComand may be you can do like before. Check this 7.3 example :
https://github.com/liferay/liferay-blade-samples/tree/7.3/liferay-workspace/extensions/struts-action-override
Eric.
Powered by Liferay™