
Sample Struts Portlet Liferay 4.4
First Create [Extension Environment.] U Can follow this Link.>>> [http://wiki.liferay.com/index.php/Development Environment (Windows)
After|that follow instructions as given in "liferay_4_portlet_development_guide.pdf" Follow This Guide >>>http://www.liferay.com/web/guest/documentation/4 4/development]
and follow instructions in the above guide
2.1. Writing a Very Simple Struts Portlet (Page 13)
If U don't find any folder mentioned in this PDF file follow these instructions #
In Page 22 U see add init.jsp
"init.jsp"
<%@ include file="/html/common/init.jsp" %> Add commonly used variables and declarations here!
This init.jsp uses /html/common/init.jsp which is not existing so U create common folder in /ext-web/docroot/html (as shown in below diagram)
Copy init.jsp from Ex: D:\projects\liferay\ext\ext-web\tmp\html\common (as shown in below diagram)
and paste it here Ex: D:\projects\liferay\ext\ext-web\docroot\html\common See the below diagram
For "Set the Portlet Title" (in page 23)
Use this File D:\projects\liferay\ext\ext-impl\classes\content\Language-ext.properties (See Below Image)
Again for AddBookAction.java (Page 27)
Use this folder to create package ext/"ext-impl/src" (See the below Image)
In the above pkg created Create class AddBookAction
Hope these steps Help.