• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts Frustration - No Error Messages

 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To a large extent, I like developing web applications within the Struts framework. However, one arena of the framework that I think could use some serious attention is that of displaying meaninful error messages when something is amiss.
Many times, I've made some small mistake, like name a form parameter incorrectly, and instead of a meaningful error message being displayed - or even any error message at all - the page simply doesn't render, a web browser displays a blank page, no error messages appear to the console, and nothing gets logged. (I do develop with the logging level set to debug.)
Luckily, I develop with very small baby steps, and I can spot most small errors in just a few seconds - even without some nice error messages. But, two days ago, I spent three hours wondering why my form wasn't displaying, only to finally realize that I hadn't specified a form in the formset of the form-validation of my validator rules configuration. Of course, there were no error messages anywhere that might have helped point out this mistake two hours and fifty-nine minutes before I finally discovered it - all I was seeing was a blank page where my form was supposed to appear.
I'm hoping that there exists a tool that will validate a Struts configuration. Anybody know of one? Or does anybody have any ideas for getting some (meaningful) error messages out of Struts?
[ April 25, 2004: Message edited by: Dirk Schreckmann ]
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just bumping this old thread, since this forum is busy this week.

It does occur to me, now, that I could have been using a visual Struts development tool that would have likely made my above example mistake obvious. That said, I know I've run into other more obscure problems that a visual development tool might not catch.

Also, I suppose that even a debugger could help at times.

Any other general or specific ideas?
[ July 28, 2004: Message edited by: Dirk Schreckmann ]
 
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I edit struts-config file with Struts Console. If there is a problem, it show me the line of text that is having a problem.
 
author & internet detective
Posts: 41878
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dirk,
I use WSAD which catches some stuff (like the one in your example.) However, I still get vague error messages often. Like you, I develop in tiny steps and know that the error is the last thing I did.

I'm going to watch this thread closely to see what other people come up with! Thanks for bumping it.
 
Author
Posts: 93
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Dirk,

My vote is for WSAD. They have some of the nicest Struts tools I have seen to date.

Thanks,
John
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic