RE: JSP override first password update using portlet filters

Carlos López, modified 7 Years ago. New Member Posts: 2 Join Date: 10/4/18 Recent Posts
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
thumbnail
Minhchau Dang, modified 7 Years ago. Liferay Master Posts: 598 Join Date: 10/22/07 Recent Posts
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).
Carlos López, modified 7 Years ago. New Member Posts: 2 Join Date: 10/4/18 Recent Posts
I saw that it's used also in the 7.1 version. I will try that approach.

Thanks for your help!