Liferay 启动时显示 Portlet 的自定义页面
在我的 Liferay Tomcat Bundle Web-apps 文件夹中,我部署了一个 Liferay-Struts2 Portlet,并且它工作正常。
我的 Portlet 名称是 RaviPortlet, 这是如图所示的路径
E:\liferaytomcat\liferay-portal-6.1.0-ce-b4\tomcat-7.0.22\webapps\RaviPortlet-portlet
请查看此屏幕截图中我的 RaviPortlet-portlet 下的内容
I想要将此默认登陆页面显示为 RaviPortlet-portlet 下的 CustomLogin.jsp。 因此,在 Portal-ext.properties 文件中,我已将其修改为
default.landing.page.path=/RaviPortlet-portlet/CustomLogin.jrtup sp
但我在服务器控制台下收到错误 请告诉我这是否正确?如果不是,我们如何在 Liferay 启动时显示我们的自定义页面
Inside my Liferay Tomcat Bundle Web-apps folder , i have deployed a Liferay-Struts2 Portlet , and its working fine
My Portlet name is RaviPortlet and
This is the path under it as shown
E:\liferaytomcat\liferay-portal-6.1.0-ce-b4\tomcat-7.0.22\webapps\RaviPortlet-portlet
Please see the contents under my RaviPortlet-portlet in this screen shot
I want to show this default Landing Page as CustomLogin.jsp under RaviPortlet-portlet.
So inside portal-ext.properties file i have modified it to
default.landing.page.path=/RaviPortlet-portlet/CustomLogin.jrtup sp
But i am getting Error under Server Console
Please tell me if this is correct ?? and if not how is that we show our cutom page on Liferay start up
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您不能将 portlet 作为登陆页面。您必须将 portlet 放在一个页面上,然后将该页面作为登陆页面。
您似乎正在尝试制作一个登录 portlet ?因此,将其放在每个人都可以访问的公共页面上是很自然的。
希望我正确理解了您的意思,并且这对您有帮助。
阿马兹
You can not have a portlet as a landing page. You must put your portlet on a page, and then have that page as a landing page.
It seems you are trying to make a login-portlet ? It will therefore be natural to put it on an public-page that everyone has access to.
Hope I have understood you right and that this is was of any help to you.
Armaz
我认为您混淆了 Liferay 页面及其上的 portlet 和 portlet 内的 jsp 页面。
一般来说,出于多种原因,您不会调用自定义登录 jsp 页面。
您可能希望您的自定义登录是一个 portlet,以便您在门户的会话/范围内进行操作。
这样做。
1. 修改您的登录进程以作为 portlet 运行(如果还没有)
2. 在liferay中创建一个公共页面并将ravi portlet添加到其中并复制该页面的路径。
3.设置本页面默认路径
4. 您可能还想修改门户属性,您也可以在其中覆盖默认登录 portlet。
祝你好运。
I think you are confusing Liferay pages with portlets on them and jsp pages inside a portlet.
In general you wouldn't invoke your custom login jsp page for a number of reasons.
You would want your custom login to be a portlet so that you are operating within the Portal's session/scope.
Do this.
1. modify your login in process to operate as portlet if it doesn't already
2. create a public page in liferay and add the ravi portlet to it and copy the path of that page.
3. set the default path to this page
4. you will likely also want to modify one the portal properties where you can override the default login portlet as well.
Good luck.