my dog learned polymorphism*
The moose likes Struts and the fly likes Design question for Actions Struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Design question for Actions Struts 2" Watch "Design question for Actions Struts 2" New topic

Design question for Actions Struts 2

Mathias Nilsson
Ranch Hand

Joined: Aug 21, 2004
Posts: 367

I have 4 different sites that has the same model but different views and resource bundles. What is the best approach to solv this. I have 4 virtual hosts in tomcat that point to the same webapp and dynamic actions

In my action class I return next and set the getNextAction() to my Tiles definition. However I don't feel like this is the best approach. I takes away the Service to Worker pattern doesn't it?

I would like to have a good way of populating data using actions and forward to the right view. Anyone out there who has done the same or has any advise?
[ June 03, 2007: Message edited by: Mathias Nilsson ]

wood burning stoves
subject: Design question for Actions Struts 2
Similar Threads
Recommendations for Webhosting for Struts2 (GoDaddy issue)
Struts + Tomcat 6 + HelloWorld = Pain
Struts2: which result type to use
saveToken, isTokenValid, resetToken
Wildcard Actions