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的名称

别的就不需要改什么了

你可能感兴趣的:(apache,html,tomcat,struts)