Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

ActionErrors: how to keep messages in the database

Thread view: 
nkunkov@escholar.com - 05 Mar 2007 22:32 GMT
Hello!
I'm creating action errors for my web page in the following way:

ActionErrors errors = new ActionErrors();
errors.add("message123", new
ActionMessage("error.required.thisfield"));

A constructor of ActionMessage recieves a key to a message resource
"error.required.thisfield".
The message resource is usually a file.

I would like to store my error messages in the database.  How would I
instantiate the ActionMessage in that case?  Or I will have to create
ActionErrors in a different way?
Any help on how to use database instead of a resource file for error
messages text would be appreciated.

Thank you
NK
sameergn@gmail.com - 06 Mar 2007 19:46 GMT
On Mar 5, 2:32 pm, "nkun...@escholar.com" <nkun...@escholar.com>
wrote:
> Hello!
> I'm creating action errors for my web page in the following way:
[quoted text clipped - 15 lines]
> Thank you
> NK

See if this helps.
http://sourceforge.net/project/shownotes.php?release_id=320056&group_id=49385


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.