Another thing, when a custom portlet is created, where abouts are the files for this portlet stored?
The portlet's contents are stored in the database, in the BODY field of the STATIC_PORTAL_CONTENT table.