---
title: "pass values from jsp to applet"
author: "tanglei198577"
date: "2010-04-16T16:56:50Z"
tags: []
categories: ["编程语言"]
slug: "pass-values-from-jsp-to-applet"
draft: false
lastmod: "2010-04-16T16:56:50Z"
id: 645741
url: "https://tanglei198577.iteye.com/blog/645741"
---

define a object in jsp:

```
<object classid="clsiD:CAFEEFAC-0015-0000-0000-ABCDEFFEDCBA" width=1000 height=750
	codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0-Windows-i586.cab#Version=1,5,0,0">
  <param name="code" value="com.test.class">
  <param name="codebase" value=".">
  <param name="archive" value="test.jar">
  <param name="name" value="TestApplet">
  <param name="type" value="application/x-java-applet;jpi-version=1.5">
  <param name="customerPage" value="no">
  <comment>
     <embed type="application/x-java-applet;jpi-version=1.5"
		CODE="com.test.class" 
		CODEBASE="." archive="test.jar" NAME="TestApplet" 
		WIDTH=1000 HEIGHT=750 ALIGN=middle  scriptable=false 
		pluginspage="http://java.sun.com/update/1.5.0/jinstall-1_5_0-Windows-i586.cab#Version=1,5,0,0"><NOEMBED>
		
	</embed> 
  </comment>
</object>
```

 

then u can use method getParameter() in com.test.class to get the praram u want. by the way, use it after the instance of Class test created