论坛首页 入门技术论坛

Portlet MVC Framework 怎么运行

浏览 3074 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2008-02-21  
请助:Portlet MVC Framework 怎么运行
spring 网站下载spring-framework-2.5.1,里面有个petportal例子,我能在TOMCAT中运行petportal,正常启动,但我不知道打什么URL进入首页,我试过好多URL(http://localhost:8080/petportal/view等)

请教??????
   发表时间:2008-02-21  
以前做过一个portlet的模块,当时好像是部署到jetspeed上的,不像传统的web应用。

写好的portlet的war放到jetspeed的一个指定文件夹下,tomcat启动起来进入jetspeed页面,页面上再部署portlet,每个portlet好像是页面里的窗口,能关掉、移动。url也是jetspeed生成的一个“乱七八糟”的东西。也就是说每一个portlet是独立的web应用,由jetspeed去管理。酱紫调试起来就相当费劲,是相当相当费劲!后来就没碰过了,不过功能是很强大。

网上portlet的资料很少,反正我没找到多少,希望我写的能对你有帮助,可能有错的地方,到现在也没很好的理解
0 请登录后投票
   发表时间:2008-02-21  
谢谢您,问题是这样的,Tomcat能正常启动项目,但是启动之后,我不知道打入什么URL在IE上,也就是不知道怎么进入项目首页,我这个例子是spring自带的例子,不知道您知道不知道怎么进入首页???????
0 请登录后投票
   发表时间:2008-02-22  
liuzongan 写道
谢谢您,问题是这样的,Tomcat能正常启动项目,但是启动之后,我不知道打入什么URL在IE上,也就是不知道怎么进入项目首页,我这个例子是spring自带的例子,不知道您知道不知道怎么进入首页???????

readme最后一段说的很清楚
引用

This application has been tested in jetspeed-2 where the underlying portlet-
container is Apache Pluto -- the JSR-168 reference implementation. To deploy
the WAR file in jetspeed-2, simply copy it to this directory:
<jetspeed2-install-dir>/webapps/jetspeed/WEB-INF/deploy
The 'petportal.psml' file can then be added to this directory:
<jetspeed2-install-dir>/webapps/jetspeed/WEB-INF/pages

所以你没有一个container是没有办法跑的
0 请登录后投票
   发表时间:2008-02-23  
谢谢您了,我终于有点明白了,就是说还要有一个container,才行是吧????

谢谢了
0 请登录后投票
   发表时间:2008-04-30  
安装jetspeed2以后,
Copy the WAR file in jetspeed-2, simply copy it to this directory:
<jetspeed2-install-dir>/webapps/jetspeed/WEB-INF/deploy
The 'petportal.psml' file can then be added to this directory:
<jetspeed2-install-dir>/webapps/jetspeed/WEB-INF/pages
然后启动jetspeed2服务器。
进入http://localhost:8080/,就可以看到有个Tab是"Spring Pet Portal"。

PS:安装jetspeed2过程中有个选项大致意思是‘store psml in db’,不要选中这个选项。 我在安装过程中选中此选项,结果半天看不到"Spring Pet Portal"。 此选项的选中需要额外的psml文件到数据库的配置操作,目前还没弄清楚。
0 请登录后投票
论坛首页 入门技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics