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
JSP override first password update using portlet filters
Hi,
I'm trying to use a filter to overwrite the view "New password" showed the first time you login in the platform but I didn't find the portlet name.
I followed this doc:
https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/jsp-overrides-using-portlet-filters
It worked nice with the Sign In (portlet name = PortletKeys.LOGIN) but not with the update password. I tried other portlet names but without success.
Any idea?
Thanks
I'm trying to use a filter to overwrite the view "New password" showed the first time you login in the platform but I didn't find the portlet name.
I followed this doc:
https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/jsp-overrides-using-portlet-filters
It worked nice with the Sign In (portlet name = PortletKeys.LOGIN) but not with the update password. I tried other portlet names but without success.
Any idea?
Thanks
Carlos López
I'm trying to use a filter to overwrite the view "New password" showed the first time you login in the platform but I didn't find the portlet name.
In 7.0, the "new password" screen is not tied to any portlet, since it's still a struts action (struts-config.xml, tiles-defs.xml).
To achieve something similar to a portlet filter, where you're able to setup request attributes and that sort of thing, you'd probably create a new OSGi component providing the StrutsAction service, which will look similar to what is done in the FindEntryAction in bookmarks (which provides a brand new struts action, but an override should theoretically be similar to a brand new struts action).
I saw that it's used also in the 7.1 version. I will try that approach.
Thanks for your help!
Thanks for your help!