tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julio Serje (@canada.com)" <jse...@home.com>
Subject Re: Pbm. in setting the parameter for an applet in servlet...
Date Tue, 19 Dec 2000 03:58:59 GMT
Try putting the <param> tags before <align>

----- Original Message -----
From: Subha Gowri K V <subha@indts.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Monday, December 18, 2000 6:22 AM
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
>


Mime
View raw message