getParameter( String name)

alice dubois alice.dubois at lemel.fr
Wed Dec 16 07:06:37 PST 1998


Hello,

I've got a problem with method getParameter( String name), does this method 
return a String ?

In a file.java, the line  int width = 
Integer.parseInt(getParameter("width")); catches an exception:
java.lang.NumberFormatException
	at java/lang/Throwable.<init>
	at java/lang/Exception.<init>
	at java/lang/RuntimeException.<init>
	at java/lang/IllegalArgumentException.<init>
	at java/lang/NumberFormatException.<init>
	at java/lang/Integer.parseInt
	...

If I put int width = Integer.parseInt("100"); it's good.

Thanks,

Alice


More information about the kaffe mailing list