I am working on a Struts 2 web application using the Convention plugin to customize everything with annotations. I hit some of my action classes where I would like to use multiple parent packages. I found a way to do this on the Apache site - but it seems to be out of date. This does not work, discarding a type mismatch: it is not possible to convert from String[] to String error.
@ParentPackage({"my-parent-package1, my-parent-package2"}) package com.mycompany.myapp.actions import org.apache.struts2.config.ParentPackage;
I am using Struts 2.2.1. Can I provide multiple batch action packages through annotations? It seems strange that they would remove it as a function.
java annotations struts2 struts2-convention-plugin
Curtis snowden
source share