On Fri, Oct 15, 2004 at 12:44:17PM +0100, Steve Kirk wrote:
: configure the error page to handle several different status codes, you have
: to keep repeating basically the same 4 lines of config, with just the error
: code changing each time - a bit repetitive, and not good from a maintenance
: viewpoint.  I'm thinking that there must be a neater way.....?

Well, no one's forcing you to hand-code it. ;)

You could write a quick for() loop in {your preferred language here}
to generate the content, then copy'n'paste.  When the page changes,
do a find'n'replace in {your preferred text editor}.

If you want to be fancy about it -- say, you expect the name of the
error page to change regularly -- I'm sure you could work some Ant
magic to have this XML block generated for each build and folded into
web.xml.

Overkill?  It would be, if there were a spec-compliant way of doing
it. (-and I agree, it would be nice if there were.)  Since there isn't
such a way, all you can do is roll up your sleeves and get to work.
-or just grin and bear it.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to