It can be helpful to see the directory layout of a portlet.  Here is an example using the Hello portlet.