• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Question about Error Messages showed on the web pages !!!

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear all,

I am a new Java Web Developer. I am just curious at the Error Messages showed from the browser. FOr example, the "join member" form has a lot of parameters and the server side needs to validate all of them. Once the server found out the input value(s) are not valid, then it will add an error to the Custom Exception class. The code will be shown in the blow.





My question is the following. The Action program will throw this "Customed" Exception class when it contains more than one error message, however, how do this "Exception class" leads to the errors showed on the screen ? Those errors contains "Your email address is not valid !!!" Since it's a presentation layer stuff, I am not sure how does it works.

Thanks for answering my question

Transistor
 
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hm, that's not a advanced question, and not a general java question either...

assuming that you are working with a webframework (struts?) running in a servlet engine, the error handling mechanism is controled via the error-page jsp directive. the declared page jumps in whenever an exception rises.

no magic :-)

cheers,
jan
 
Bring out your dead! Or a tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic