At 01:24 PM 6/5/2003, you wrote:
Yury Mikhienko wrote:

   try
   {
    test = parameters.getParameter("param1");
   }catch (ParameterException pe)
   {
    test = "nothing %((";
   };

<nitpicking> test = parameters.getParameter("param1", "nothing %(("); </nitpicking>

<clarifying-nitpicking> The getParameter(String,String) form does not throw an exception and therefore does not need a try/catch block. And in this context, the parameter should always be there because you've already matched on its existence. </clarifying-nitpicking>

:D
Geoff



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



Reply via email to