# tomcat-users mailing list archives

##### Site index · List index
Message view
Top
From longinus <longi...@zeus.polsl.gliwice.pl>
Subject Re: Applets in Servlets
Date Tue, 06 Nov 2001 14:49:38 GMT
```Do I also have to put the applet through html converter? If so, where
can I get it? Why is it essential to do it?

"Etienne Baert (SPSInfoquest nv)" schrieb:
>
> Long,
>
> as said in my previous mail, you need to use <EMBED> with netscape,
> you can find the specifiations at
> http://java.sun.com/products/plugin/1.3/docs/tags.html
>
> There is no problem to pass parameters to the applet, you just need
> to add them between the <OBJECT> and </OBJECT> tags. It works
> the same with <EMBED>.
>
> Regarding the CLASSID, it is specific to the plug-in to be used and
> can be retrieved from the java.sun.com web site (the above URL for
> example).
>
> The same URL also gives you examples of HTML that allow the applet
> to be executed by both IE and Netscape.
>
> Cheers,
> Etienne
>
> -----Original Message-----
> From: longinus [mailto:longinus@zeus.polsl.gliwice.pl]
> Sent: mardi 6 novembre 2001 15:07
> To: Tomcat Users List
> Subject: Re: Applets in Servlets
>
> How can I get classid of the applet? What if my applet is intended to be
> used with Netscape?
>
> There is also some more parameters I am passing to the applet
>
> <applet mayscript codebase="." code="tcaldate.class" width="160"
> height="170" name="tL1" id="tL1">
>               <param name=script value="javascript:SeeDate('%Y.%M.%D')">
>               <param name="help" value="javascript:HideDate()">
>               <param name=_jvalid value=63>
>               <param name=target value="_none">
>               <param name=font value="Arial">
>               <param name=fontsize value=12>
>               <param name=fontstyle value=1>
>               <param name=bgcolor value=13684944>
>               <param name=bgcolor2 value=14737663>
>               <param name=bgcolor3 value=400>
>               <param name=current  value="2001/11/14">
>               <param name=startsunday value=0>
>               <param name=t_col1 value=400>
>               <param name=t_col2 value=8421520>
>               <param name=t_col3 value=14737663>
>               <param name=weeknumber    value="no">
>             </applet>
>
> they can be used with object tag?
> Does <applet> tag starts JVM from Microsoft?
>
> > In my case, I am successfully starting up applets from html pages
> generated
> > by servlets. Html that is generated looks like :
> >
> >
> CODEBASE="http://java.sun.com/products/plugin/1.3.0_01/jinstall-130_01-win32
> > .cab#Version=1,3,0,1"
> >  HEIGHT="600"
> >  WIDTH="800"
> >  NAME="AppletName">
> > <PARAM NAME="CODEBASE" VALUE=".">
> > <PARAM NAME="CODE" VALUE="com/example/visual/AppletName.class">
> > <PARAM NAME="ARCHIVE" VALUE="archive.jar\">
> > </OBJECT>
> >
> > The servlet that generates the html is accessed using such an URL:
> > http://myserver:port/dir/servletname
> > that maps the following physical location (on Win)
> > d:\projects\dir\www\
> >
> > It tells the browser to look into that directory whether he finds the
> > archive
> > containing the applet class (archive.jar).
> > If your archive or your class is located elsewhere, you have to tell it
> > using the codebase parameter.
> > codebase="applet" means the browser will try to retrieve the applet from
> > http://myserver:port/dir/applet/ (d:\projects\dir\www\applet\)
> > codebase="/applet" means it will try from http://myserver:port/applet/
> >
> > Hope this helps,
> > Etienne Baert
> >
> > -----Original Message-----
> > From: longinus [mailto:longinus@zeus.polsl.gliwice.pl]
> > Sent: mardi 6 novembre 2001 14:02
> > To: Tomcat Users List
> > Subject: Re: Applets in Servlets
> >
> > The following Applet tag is generated:
> >
> > <applet mayscript codebase="." code="tcaldate.class" width="160"
> > height="170" name="tL1" id="tL1">
> >
> > the applet class is in the %TOMCAT_DIR%/webapps/ROOT/tcaldate.class
> >
> > and the adress of the servlet is http://myserver:port/servlet/app
> >
> > Servlet generates the html page but the applet cannot be loaded.
> > but when requesting the page from the server then it works ok.
> >
> > What should be in the codebase?
> >
> > long
> >
> > Barney Hamish schrieb:
> > >
> > > It sounds like there is a problem in your HTML. Do a view source and see
> > > whether the HTML your servlet is generating is correct.
> > > Hamish
> > >
> > > -----Original Message-----
> > > From: longinus [mailto:longinus@zeus.polsl.gliwice.pl]
> > > Sent: Tuesday, November 06, 2001 1:49 PM
> > > To: Tomcat Users List
> > > Subject: Re: Applets in Servlets
> > >
> > > I have exactly the same problem, so if you find the solution, please let
> > > me know.
> > >
> > > Shen Shengjun schrieb:
> > > >
> > > > Hi, there,
> > > >
> > > > I was trying to put some applets in a servlet page. The applet itself
> > > works
> > > > fine when resides in a html page. However, if I plug it into a servlet
> > > page,
> > > > the browser complains that the applet can't be loaded. I tried either
> > the
> > > > class name itself or the class name with it's package qualifier.
> > > >
> > > > Does anybody here have experience on this? Or is this not worthy of
> > trying
> > > > (I mean we all work on servlets...)?
> > > >
> > > > Thanks in advance for help me out.
> > > >
> > > > shen
> > > >
> > > > __________________________________________________
> > > > Do You Yahoo!?
> > > > Find a job, post your resume.
> > > > http://careers.yahoo.com
> > > >
> > > > --
> > > > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > > > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > > > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> > >
> > > --
> > > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> > >
> > > --
> > > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> >
> > --
> > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> >
> > --
> > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
{"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8892911076545715, "perplexity": 23188.270922378677}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2016-07/segments/1454701160822.87/warc/CC-MAIN-20160205193920-00311-ip-10-236-182-209.ec2.internal.warc.gz"}