Tuesday, February 24, 2009

Monday, February 23, 2009

090223

关于actionResponse的跳转,在这两篇文章里各有论述,12
前者通过在actionPerform里设置参数,从而在doView里进行dispatch;
后者直接在actionPerform里进行跳转,用actionResponse.sendRedirect

Sunday, February 22, 2009

090222

一堆堆不明所以的问题和一次次地推倒重来就是今天的主旋律., 很没有控制感.如果有时间还是把文档熟悉一下为好.
关于wemp和xdime
http://publib.boulder.ibm.com/infocenter/pvcwesd/index.jsp?topic=/com.ibm.websphere.mcs.doc_3.2.3/welcome.html
关于portal
http://publib.boulder.ibm.com/infocenter/wpdoc/v6r0/index.jsp
以及下载的基本书
关于portlet
api
O'reilly教程
JBoss教程
还有关于j2ee... 很无语

090221

1. 用九宫布局加图片链接的方法实现了要求的九宫图菜单。portlet的图标变更的方法仍然没有找到。
2. 用renderURL的方法实现跳转功能。该方法仍然需要研究。

Saturday, February 21, 2009

090220

1. form布局没法匹配?
根本不是问题。layout文件里需要添加一个form才能和jsp里的form对应起来。囧死我了。
2. jsp与portlet传递值的问题
直接通过porteltSessionBean获得;通过
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>

取得页面的renderRequest,从而得到Session
3 Form的action问题
action="" 调用portlet里的processAction方法,然后返回本页面

See http://www.onjava.com/pub/a/onjava/2006/02/01/what-is-a-portlet-2.html?page=1
http://docs.jboss.org/jbportal/v2.4/reference-guide/en/html/tutorials.html

Friday, February 20, 2009

090219

完成了WEMP环境的搭建,关键点
  1. Websphere Portal Server要安装6.0系列版本
  2. WPS安装时最好选择Typical,即同时安装WAS;第一次安装时使用已安装的WAS,服务器不能启动
  3. Mobile Portal toolkit 安装时会有假死现象,需要耐心。

Thursday, February 12, 2009

WEMP开发环境搭建

参考这篇文章
  1. 安装RAD7.0
  2. 安装Websphere Portal 6.1,设置用户名,密码
  3. 在RAD中设置portal的runtime
    1. Launch the Rational Application Developer.
    2. Select the Window -> Preferences menu item.
    3. Expand the Server preference and select Installed Runtimes.
    4. Click Next for the summary screen.
    5. Select the WebSphere Portal v5.1 tab and click Edit.
    6. In the Edit Dialog, rename the runtime server from "WebSphere Portal v5.1 Stub" to "WebSphere Portal v5.1".
    7. Change the WebSphere Portal Location and the WebSphere Application Server location to the previously installed location. The defaults are C:\Program Files\Portal51UTE\PortalServer for WebSphere Portal and C:\Program Files\Portal51UTE\AppServer for WebSphere Application Server.
    8. Click Finish and exit from Rational Application Developer.

  4. 双击启动WebSphere Portal Server进行设置,用户名,密码务必设置正确。WebSphere Portal Server,添加EAR(关闭系统中已经运行的WAS服务)
  5. 打开http://localhost:10040/wps/portal启动程序(路径信息在新建服务器时进行设置)
  6. 安装Mobile Portal Toolkit:按要求输入RAD地址,RAD共享文件地址和Test Environment将要安装的地址
  7. 重启RAD,重新配置runtime