• Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying custom message in same VM (Velocity) on exception in Struts Action class method.  RSS feed

 
Ranch Hand
Posts: 466
1
IntelliJ IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to display a custom message on VM (Apache Velocity template) if some exception occurs while processing in service / dao classes. We need to display the message on same VM, for example if some exception occurs while processing we need to display a messase saying 'Could not process your request due to system error, please contact your administrator'.

Do provide some pointers on how to achive this. We are using Velocity with Struts 1.4 in our project.

-Vinod
 
Did you ever grow anything in the garden of your mind? - Fred Rogers. Tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!