首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

jetspeed 登录有关问题

2012-08-26 
jetspeed 登录问题jetspeed是以psml进行后台访问具体的配置如下:portlet idNewsPortletdescription

jetspeed 登录问题
jetspeed是以psml进行后台访问
具体的配置如下:
<portlet id="NewsPortlet">
<description xml:lang="EN">News Portlet</description>
<portlet-name>NewsPortlet</portlet-name>
<display-name xml:lang="EN">News Management</display-name>

<portlet-class>
org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher
</portlet-class>

<init-param>
<!-- The view mode namespace. Maps to a namespace in the xwork config file -->
<name>viewNamespace</name>
<value>/news   这个自然是访问路径</value>
</init-param>
<init-param>
<!-- The default action to invoke in view mode -->
<name>defaultViewAction</name>
<value>showPortalNews   这个是访问的action</value>
</init-param>
<init-param>
<!-- The view mode namespace. Maps to a namespace in the xwork config file -->
<name>editNamespace</name>
<value>/edit</value>
</init-param>
<init-param>
<!-- The default action to invoke in view mode -->
<name>defaultEditAction</name>
<value>index</value>
</init-param>
<init-param>
<!-- The view mode namespace. Maps to a namespace in the xwork config file -->
<name>helpNamespace</name>
<value>/help</value>
</init-param>
<init-param>
<!-- The default action to invoke in view mode -->
<name>defaultHelpAction</name>
<value>index</value>
</init-param>

<expiration-cache>0</expiration-cache>

<supports>
<mime-type>text/html</mime-type>
<portlet-mode>edit</portlet-mode>
<portlet-mode>help</portlet-mode>
</supports>

<supported-locale>en</supported-locale>

<portlet-info>
<title>相关的portalet标题</title>
<short-title>News</short-title>
<keywords>struts,News,portlet</keywords>
</portlet-info>
</portlet>

还有就是修改该配置所有News  这个是代表你的portlet是唯一的,
在启动tomcat时会首先加载这个文件

如果这个配置存在相同的portel名称的话会报错
重要的配置就是action 的路径,就是namaspace的路径,已经action的名称

别的就不需要改什么了

热点排行