I can see a typo in there - you don't have a "<" before PARAM....

To check the output of your servlet, are you running it, using
"view source", saving the results then trying to run *that*?
This procedure will ensure you are testing exactly what
your servlet is generating...

> -----Original Message-----
> From: Subha Gowri K V [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, December 18, 2000 12:22 PM
> To:   [EMAIL PROTECTED]
> Subject:      Pbm. in setting the parameter for an applet in servlet...
> 
> 
> Hi,
> 
> We have a problem in passing parameter to an applet which is called by a
> servlet.
> 
> 1. In servlet we are setting the param like :
> 
>         out.println("<APPLET CODE=ResultApplet.class
> CODEBASE=\"http://hostname/dir\"" + " WIDTH=50 HEIGHT=100>");
>         out.println("<ALIGN=TOP>");
>         out.println("PARAM NAME=\"Results\" VALUE=\""+"Hello"+"\">");
>         out.println("</APPLET>");
> 
> 2. We are fetching the parameter in applet like
>       String s = getParameter("Results");
> 
> But in applet we are getting null value only.
> 
> 3. If I call the same applet from a simple html page, it is passing
> parameters correctly.
> 
> Note : We are using Tomcat as the servlet engine & apache as the
> web-server.
> 
> Any idea?....
> 
> Thanks in advance.
> 
> Regards,
> Subha

Reply via email to