Liferay 6 我们如何将Liferay中的屏幕与现有jsp页面关联起来

Liferay 6 我们如何将Liferay中的屏幕与现有jsp页面关联起来,liferay-6,Liferay 6,我是新来的,雷。 如果这是个愚蠢的问题,请原谅 例如,请参见下面的屏幕截图(新用户注册屏幕) 我们如何知道屏幕属于创建html/portlet/login中的\u account.jsp 是否有任何经验法则将屏幕与jsp页面关联起来???在liferay的WEB-INF/liferay-portlet.xml(源代码为portal WEB/docroot/WEB-INF/liferay portlet.xml)中查找所需的liferay portlet。注意 <portlet>

我是新来的,雷。 如果这是个愚蠢的问题,请原谅

例如,请参见下面的屏幕截图(新用户注册屏幕)

我们如何知道屏幕属于创建html/portlet/login中的\u account.jsp


是否有任何经验法则将屏幕与jsp页面关联起来???

在liferay的WEB-INF/liferay-portlet.xml(源代码为portal WEB/docroot/WEB-INF/liferay portlet.xml)中查找所需的liferay portlet。注意

<portlet>
    <portlet-name>58</portlet-name>
    <icon>/html/icons/login.png</icon>
    <struts-path>login</struts-path>
    <configuration-action-class>com.liferay.portlet.login.action.ConfigurationActionImpl</configuration-action-class>
    <preferences-owned-by-group>true</preferences-owned-by-group>
    <use-default-template>false</use-default-template>
    <private-request-attributes>false</private-request-attributes>
    <private-session-attributes>false</private-session-attributes>
    <render-weight>50</render-weight>
    <header-portlet-css>/html/portlet/login/css/main.css</header-portlet-css>
    <css-class-wrapper>portlet-login</css-class-wrapper>
    <add-default-resource>true</add-default-resource>
</portlet>

58
/html/icons/login.png
登录
com.liferay.portlet.login.action.ConfigurationActionImpl
真的
假的
假的
假的
50
/html/portlet/login/css/main.css
portlet登录
真的
现在打开stuts-config.xml(从同一位置)并查找
哪个路径包含上一步(登录)中的值,然后继续执行有问题的操作(/login/create\u account)。注意名称/路径属性

<action path="/login/create_account" type="com.liferay.portlet.login.action.CreateAccountAction">
    <forward name="portlet.login.create_account" path="portlet.login.create_account" />
    <forward name="portlet.login.login" path="portlet.login.login" />
    <forward name="portlet.login.update_account" path="portlet.login.update_account" />
</action>

最后打开tiles-defs.xml(从同一位置)并找到
,它的名称来自上一步(portlet.login.create\u account



至少有一种方法可以从页面中识别模块、portlet、门户等。页面名称有时也可以给出它可以引用哪个模块或jsp的提示,另一种方式是从firebug中,您可以在eclipse或IDE中的source/jsp中找到一个特定的表单元素来搜索名称。非常感谢,先生,它非常清晰,信息非常丰富。不用说,我很高兴它对您有所帮助
<definition name="portlet.login.create_account" extends="portlet.login">
    <put name="portlet_content" value="/portlet/login/create_account.jsp" />
</definition>