When users interact with your application, they perform tasks it defines, like saving or editing things. The Guestbook application is no different. Your application should also provide feedback on these operations so users can know if they worked. Up to now, you’ve been placing this information in logs that only administrators can access. Wouldn’t it be better to show users these messages?
That’s exactly what you’ll do next, in three steps:
- Create language keys for your messages.
- Add the error messages to your action methods.
- Report those error messages in your JSPs.
Ready to get started?