Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ravi Kiran
How to know the name of the JSP pages shown at Liferay Portal Screens
July 10, 2012 2:45 AM
Answer

Ravi Kiran

Rank: Junior Member

Posts: 98

Join Date: December 11, 2011

Recent Posts

Hi ,

I am using Liferay 6 for the development .
Please see the screen shot shown below .

Actually my question is At the Liferay default Login Page , and in that when clicked on Create Account Hyper link , it shows a new Window . Could anybody please tell me what jsp is responsible to show this particular page ??(The Create Account Page )





Also is there any tool or method by which we can know the name of the JSP page shown at different screens ??
Sandeep Nair
RE: How to know the name of the JSP pages shown at Liferay Portal Screens
July 10, 2012 2:57 AM
Answer

Sandeep Nair

Rank: Liferay Legend

Posts: 1691

Join Date: November 5, 2008

Recent Posts

JSP - create_account.jsp
Tool - Eclipse Debugger
Vitaliy Koshelenko
RE: How to know the name of the JSP pages shown at Liferay Portal Screens
July 10, 2012 3:00 AM
Answer

Vitaliy Koshelenko

Rank: Regular Member

Posts: 176

Join Date: March 25, 2011

Recent Posts

Hi. Check the URL and see the "struts_action" parameter there. For example, if you click 'Create Account' the URL will be like

http://localhost:8080/web/guest/home?p_auth=4gEeHs8M&p_p_id=58&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&saveLastPath=0&_58_struts_action=%2Flogin%2Fcreate_account

(struts_action parameter is "/login/create_account" here)

Then go to 'webapps/ROOT/WEB-INF/struts-config.xml' file and find appropriate struts action. In this case it will be:

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

After this open 'webapps/ROOT/WEB-INF/tiles-defs.xml' file and find there the definition with the name equals to 'path' from struts action (in this case 'portlet.login.create_account'). So, you will find the following lines:

<definition name="portlet.login.create_account" extends="portlet.login">
<put name="portlet_content" value="/portlet/login/create_account.jsp" />
</definition>

So, the jsp page for Create Account page is "/portlet/login/create_account.jsp".
Ravi Kiran
RE: How to know the name of the JSP pages shown at Liferay Portal Screens
July 10, 2012 4:12 AM
Answer

Ravi Kiran

Rank: Junior Member

Posts: 98

Join Date: December 11, 2011

Recent Posts

Sandeep Nair:
JSP - create_account.jsp
Tool - Eclipse Debugger



Hi , Thanks for the response ,

Could you please let me know how an Eclipse Debugger can be used to know the JSP name ??(Any link is also okay)
Ravi Kiran
RE: How to know the name of the JSP pages shown at Liferay Portal Screens
July 10, 2012 4:19 AM
Answer

Ravi Kiran

Rank: Junior Member

Posts: 98

Join Date: December 11, 2011

Recent Posts

Hi Vitaliy Koshelenko ,

Thanks for the great technique to find the JSP name .
I was unnecessarily spending time asking for the tools . once again thank you very very much .