Displaying Messages and Errors

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:

  1. Create language keys for your messages.
  2. Add the error messages to your action methods.
  3. Report those error messages in your JSPs.

Ready to get started?

Let’s Go!

¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0