Extend Password Update PageExtend Password Update Pagehttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1128596222024-03-29T15:25:43Z2024-03-29T15:25:43ZRE: Extend Password Update PageDennis Schilakowskihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1129151592019-03-27T11:54:27Z2019-03-27T11:54:27ZChristoph, many thanks you have saved my day. That's exactly what I was looking for !!!<br /><br />Thank you so much! :-)Dennis Schilakowski2019-03-27T11:54:27ZRE: Extend Password Update PageChristoph Rabelhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1129138632019-03-27T11:16:14Z2019-03-27T11:16:14Z<html><head></head><body><blockquote>Dennis SchilakowskiThanks a lot!<br><br>That means but I can only overwrite the update_password.jsp completely, because there is no -ext.jsp file to it. what a trouble.<br>A kind <liferay-util: include page = "/html/portal/update_password<strong><em>.original</em></strong>.jsp" /> or does not exist either?<br></blockquote><br><br>Well, the old jsp stays there, with renamed to update_password.portal.jsp<br><br>So, you can do two things<br>1) Put the jsp content in a string and do something with the string.<br><br><pre><code>
CharArrayWriterResponse customResponse = new CharArrayWriterResponse(response);
request.getRequestDispatcher("/html/portal/update_password.portal.jsp").forward(request, customResponse);
content = customResponse.getOutput();
// Do something with the content
out.write(content);
</code></pre><br><br>If you just want to append something, you can simply include it and add your own code before/after it.<br><pre><code>
// Your code here
&lt;%@ include file="/html/portal/update_password.portal.jsp" %&gt;
// Your code here
</code></pre><br><br>When I really have to replace it, I usually commit the original too as an extra file and when Liferay updates it, I diff it to know, what was changed. And then I replace the original with the "new original".</body></html>Christoph Rabel2019-03-27T11:16:14ZRE: Extend Password Update PageDennis Schilakowskihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1129125772019-03-27T10:23:06Z2019-03-27T10:23:06ZThanks a lot!<br /><br />That means but I can only overwrite the update_password.jsp completely, because there is no -ext.jsp file to it. what a trouble.<br />A kind <liferay-util: include page = "/html/portal/update_password<strong><em>.original</em></strong>.jsp" /> or does not exist either?Dennis Schilakowski2019-03-27T10:23:06ZRE: Extend Password Update PageChristoph Rabelhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1128914852019-03-26T10:03:11Z2019-03-26T10:03:11ZHa. You are right, update_password is not there.<br /><br />It's here:<br />/html/portal/update_password.jsp<br /><br />You need to do this:<br />https://dev.liferay.com/de/develop/tutorials/-/knowledge_base/7-1/jsp-overrides-using-custom-jsp-bagChristoph Rabel2019-03-26T10:03:11ZRE: Extend Password Update PageDennis Schilakowskihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1128889842019-03-26T07:33:35Z2019-03-26T07:33:35ZThanks for the hint, very interesting. Unfortunately I could not find the page http://.../c/portal/update_password there. Does it mean this is a core page, which makes things a little harder. Is there a similar possibility to integrate the original page and then expand it? I would not like to "copy" the page.<br /><br />I'm using CE 7.1.2-GA3Dennis Schilakowski2019-03-26T07:33:35ZRE: Extend Password Update PageChristoph Rabelhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1128642042019-03-22T15:32:47Z2019-03-22T15:32:47ZI am not sure, which page you exactly want to change, but you probably need to create a module fragment to do what you want to achieve. <br />Assuming 7.0:<br />https://dev.liferay.com/de/develop/reference/-/knowledge_base/7-0/module-jsp-override<br /><br />The tricky part is to find the correct module and jsp to override.<br /><br />In 6.2 you would create a hook to achieve essentially the same.Christoph Rabel2019-03-22T15:32:47ZExtend Password Update PageDennis Schilakowskihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119