I like the idea of having a class to do it. Having Struts do it automatically seems to me to be unwise. I have a lot of things I want to remain in sessions. I would rather not have to not only manage my own applications but also manage the framework in which the application works. If someone wants to use a class like this, it is good to have it.
Jack 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!) > > -- > 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] > > -- ------------------------------ "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ "You can't wake a person who is pretending to be asleep." ~Native Proverb~ "Each man is good in His sight. It is not necessary for eagles to be crows." ~Hunkesni (Sitting Bull), Hunkpapa Sioux~ ----------------------------------------------- "This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation." --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
