Re: Introspect whether setCharacterEncoding is present..
luca <[email protected]> Tue, 12 Oct 2004 13:58:27 +0200
| Newsgroups | gmane.comp.java.advanced-servlets |
|---|---|
| Message-ID | <[email protected]> |
Charles Forsythe wrote:
> You could set a
> Context Attribute (or other flag) based on the following test:
>
> try {
> Class.forName("javax.servlet.http.HttpServletRequestWrapper");
> // This is Servlet API >= 2.3 --> Set Attribute/Flag TRUE
> } catch(ClassNotFoundException cnfx) {
> // This is Servlet API < 2.3 --> Set Attribute/Flag FALSE
> }
I am no expert in this field, but I've always heard that Exceptions
are for exceptions and not for flow of control (not only is it
a problem of style, but also performance, I hear)
my 2 cents
Luca
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Before posting a question, try to find your answer here:
<http://www.egroups.com/links/advanced-servlets>
Announcements should go to: [email protected]
To Post a message, send it to: [email protected]
To Unsubscribe, send a blank message to: [email protected]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/advanced-servlets/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/