Is this ok or should I learn to use DispatchAction or is there any other approach?
Second thing I have been wondering is the i18n-issue. So far I've been using the ApplicationResources.properties file for each language. For me it is not a big issue to hack the .txt-file but let's assume that the customer want's to edit it. Should I just dump the whole AppRes.pro-file and do the localization in DB? If so, how can I maintain the automatic language selection with the browser?
I don't see that having a large number of classes is a problem. As long as it's easy to recognize which action class goes with which page, and they're well organized into packages according to function, there's nothing to worry about. If you find that you're repeating the same code in multiple actions, you may want to consider creating a base action class from which to extend your other actions.
Regarding your i18n questions, there are two things to consider:
The ApplicationResources files are loaded only when the web application starts up. Any changes to these files will not be reflected until the application is restarted.
If you create a user interface to change your ApplicationResources files, the user will not see the changes until after the application is restarted
If you decide to use a database instead of the ApplicationResources files, it is possible to determine the locale of the user. See Thisthread for details.
See Rick's site for CRUD (Create, Retrieve, Update, Delete) Lesson. here. This is good example showing usage of DispatchAction.
• Sun Certified Programmer for Java 2 Platform (SCJP2)
• IBM Certified Professional for Object Oriented Analysis and Design with UML
• IBM Certified System Administrator for WebSphere Application Server v5.0
• Certified Business Analysis Professional (CBAP®)
What does a metric clock look like? I bet it is nothing like this tiny ad:
how do I do my own kindle-like thing - without amazon