On Tue, 28 Dec 2004 12:01:50 -0500, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > You know, I hesitate to say this because I'm not sure (a) I didn't miss > something and it already exists and (b) that it's a good idea in the > first place, but... > > Dumping all request/session parameters/attributes seems like something > that might make a good switch built-in to Struts... Maybe at the request > processor level or in the Action class itself... You know, a simple > boolean, false by default, that dumps everything when set to true. That > opens up questions of where to dump it to and how though, but a simple > stdout dump (as my code does) might be sufficient since this would > almost certainly just be for debugging purposes (although I actually use > this function in production myself). > > What do you think? I'd be more than happy to give up my code (not that > everyone on this list couldn't write it in 30 seconds flat, but hey, > I'll save ya the 30 seconds!)
Again, this isn't something tied to Struts in any way. It's also something that comes with Tomcat already, in the form of a filter (RequestDumperFilter). -- Martin Cooper > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > > Frank W. Zammetti wrote: > > Hey, good deal, glad it helped someone! > > > > I wasn't aware of that book either... Must go order it! > > > > On a related note... I have a bunch of debug-type functions like you it > > sounds like... One of them, which I'd bet you have already, is just > > dumping all request/session parameters and attributes. I usually call > > this at the start of each Action. This comes is handy quite a bit. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
