codice:
import javax.swing.*;
public class readParam extends JApplet {
private JTextField parametro;
public void init() {
parametro = new JTextField( this.getParameter("nome"));
this.getContentPane().add(parametro);
}
}
e relativo file html
codice:
<html>
<head>
<title>Leggi Parametro</title>
</head>
<body>
<applet height="400" width="300" code="readParam.class" >
<param name="nome" value="Ciao c'è uno spazio">
</applet>
</body>
</html>
Questo dovrebbe andare... sei sicuro che non si combini qualche casino quando chiedi ad asp di scrivere il nome del file? Controlla il sorgente html che il browser si trova ad interpretare.