We have several projects that will have many common actions and links to
common JSP names.  For example, all of our projects will have a Welcome
action and a related welcome.jsp.

I'd like to be able to create a common-actions.jar that would essentially
contain all of the source code needed for each common action to run (Action
classes, beans, DAOs, Entity objects, etc).  The hope would be that I could
put the struts.xml in the jar as well as .properties files and then override
them as necessary under each project's src folder.  

So here's what I've done so far, my directory structure looks like this:

src
>arson/
>>action/
>>biz/
>>model/
>META-INF/
>arson.properties
>log4j.properties
>struts.xml

I tried jarring up everything under src.

Then in eclipse, I added the external jar to the project, and put it at the
very top of my buildpath.  

When I try to access my Welcome action, it couldn't find it, giving me this
error:

"There is no Action mapped for namespace / and action name Welcome. -
[unknown location]"

Any idea if what I want to do is even possible, or what I could be doing
wrong?

Thanks!
Aaron
-- 
View this message in context: 
http://www.nabble.com/Possible-to-package-struts2-actions-code-in-a-reusable-jar--tf4238026.html#a12058541
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to