社区
Java EE
帖子详情
About liferay's question!!
ThomasXY
2008-03-13 09:29:06
最近在用liferay二次开发做些struts的练习,比如有几个.xml的文件不是很清楚,例如liferay-display.xml,liferay-portlet.xml,portlet-ext.xml,希望明白的给些指点,
谢谢了!最好再给些开发的经验和建议!!!
...全文
44
2
打赏
收藏
About liferay's question!!
最近在用liferay二次开发做些struts的练习,比如有几个.xml的文件不是很清楚,例如liferay-display.xml,liferay-portlet.xml,portlet-ext.xml,希望明白的给些指点, 谢谢了!最好再给些开发的经验和建议!!!
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
ThomasXY
2008-10-13
打赏
举报
回复
这帖子我都发了将近半年了,关于liferay的基础都已经掌握了。。。
不过还是要谢谢阿!
hshbs
2008-10-10
打赏
举报
回复
这几个都是在添加JSP portlet的时候必须要在添加配置的东西,如果你要添加的是Struts portlet,还需要在struts-config-ext.xml 和tiles-defs-ext.xml中进行配置
举个例子,我要新增一个jsp portlet,步骤
liferay-display.xml是把定义的portlet添加到portal中
<display>
<category name="category.admin">
<portlet id="My_JSP_Portlet_Test" />
</category>
</display>
liferay-portlet.xml中是定义一个portlet
<!-- JSP Portlet Test -->
<portlet>
<portlet-name>My_JSP_Portlet_Test</portlet-name>
<struts-path>jspportlettest</struts-path>
<restore-current-view>false</restore-current-view>
<instanceable>false</instanceable>
<private-request-attributes>false</private-request-attributes>
</portlet>
portlet-ext.xml:
<!-- JSP Portlet Test -->
<portlet>
<portlet-name>My_JSP_Portlet_Test</portlet-name>
<display-name>JSP Portlet Test</display-name>
<portlet-class>com.liferay.portlet.JSPPortlet</portlet-class>
<init-param>
<name>view-jsp</name>
<value>/portlet/jsp_portlet_test/view.jsp</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<resource-bundle>com.liferay.portlet.StrutsResourceBundle</resource-bundle>
</portlet>
再具体要自己研究了
Liferay
教程–
Liferay
门户Portlet教程
Welcome to
Liferay
Tutorial. Liferary is a JSR 286 complaint leading Portlet container. You can use
liferay
portlet for creating an enterprise, standard and scal
ab
le Web Application. 欢迎使用
Liferay
...
Liferay
5.2.3: custom URLs formats
Liferay
SEO cap
ab
ilities seems to be surprisingly weak when it comes to URL management. Consider an example: you’re trying to build a webapp that will be doing some
ab
stract searches over som...
Liferay
Portal 6.1 CE GA2已发布
好几天没有上
Liferay
官网,今天上去逛逛,发现社区版已经发布6.1GA2,可以在sourceforge上下载。 修复了6.1GA1的多个bug,并新增一些特性(功能),主要新特性如下: Support for the newly release
Liferay
...
Note for
Liferay
in Acation: chapter 1
Portal: a single-based web-based environment from which all of a user's applications can run. These applications are integrated together in a consistent and systematic way. At its base,
Liferay
i
liferay
taglib uri
que
stio
ns
When we create plugins by using Maven, in the view.jsp default page we'll get an error
ab
out taglib we use. It says it can't find the uri, then I add jstl.jar into my project and in the pom.xml I d
Java EE
67,515
社区成员
225,878
社区内容
发帖
与我相关
我的任务
Java EE
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
复制链接
扫一扫
分享
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章