Basic HTML version of Foils prepared May 12 1996

Foil 88 <param> Tags and Applets

From CRPC Lectures on Java Language Applets Graphics CRPC Annual Meeting Tutorial -- May 14,1996. by Geoffrey C. Fox


1 <applet .... > can be followed by
2 <param name=attributename1 value="attributevalue1" > .......
3 <param name=attributenameN value="attributevalueN" >
4 </applet>
5 The Java program accesses this information by
6 String attribute;
7 attribute = getParamter("attributename1");
8 if( attribute == null )
  • attribute = yourdefaultvalue; // null is Java way of saying unset
9 Typically this processing would be in init() method of Applet

in Table To:


Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Dec 14 1997