This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Struts Action template import of org.apache.struts.action.Action can be improved. When you generate a new Struts Action class, it extends org.apache.struts.action.Action using the ${superclass} notation from the file template : public class ${name} extends ${superclass} { ...which in my generated class looks like this: public class NewStrutsAction extends org.apache.struts.action.Action { This is fine, but the generated class (from the template) imports org.apache.struts.action.Action. The import is flagged by NetBeans as an unused import since the fully qualified class name is used after the extends keyword. I would argue then that perhaps the template should not import org.apache.struts.action.Action. The consistency issue here lies in that the ActionForm template does not import org.apache.struts.action.ActionForm even though a generated ActionForm extends org.apache.struts.action.ActionForm.
I can take this one
http://hg.netbeans.org/web-main/rev/ca821a894468