Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

Java 3d applet and HTML

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm trying to pass an .obj file name into a java 3d applet but it just doesn't want to work for me! The code in the applet is as follows:
String ModelName;
public void init() {
ModelName = getParameter("MODELNAME");
if (filename == null) {
try {
URL path = getCodeBase();
filename = new URL(path.toString() + ModelName);
catch (MalformedURLException e) {
The HTML is as follows:
<Object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = 400 HEIGHT = 400 ALIGN = "center" >
<PARAM NAME = ModelName VALUE = "Model.obj" >
<EMBED type="application/x-java-applet;version=1.2.2" CODE = "Model.class" WIDTH = 400 HEIGHT = 400 ALIGN = "center" scriptable=false pluginspage=""></embed><NOEMBED>;
Any suggestions would be greatly appreciated - thanks
Saloon Keeper
Posts: 22137
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Hel Bel"
We'd like to welcome you to the JavaRanch, but we have a naming policy here designed to help promote the fiction that we're all a bunch of cultured professional-type folks here, despite all evidence to the contrary. Please visit our page at for more information.
Oh, sure, you could do that. Or you could eat some pie. While reading this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic