Applet's Param Tag

What are uses of Param tag?
Can I get some demo programmes which uses param tag?

<OBJECT
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="500" height="350" align="baseline"
     codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0">
<PARAM NAME="code" VALUE="psw.applets.um.UserManager.class">
<PARAM NAME="archive" VALUE="CriJacsUm.jar">
<PARAM NAME="codebase" VALUE=".">
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.2.2">
<PARAM NAME="ServerIP" VALUE="<%=ComDef.ServerIP%>">
<COMMENT>
<EMBED type="application/x-java-applet;version=1.2.2"
width="500" height="350" align="baseline"
code="UserManager.class" archive="CriJacsUm.jar" codebase="."
     pluginspage="http://java.sun.com/products/plugin/1.2/plugin-install.html">
<NOEMBED>
</COMMENT></NOEMBED>
</EMBED>
</OBJECT>

Similar Messages

  • Reading the PARAM tags in advance???

    Hi,
    I have just started working on GUI's in HTML using applets.
    In order to make an applets fully configured from the html though,
    the use of the PARAM tags is necessary.
    Is it possible to read in the beginning of the applet all the PARAM tags
    entered in the html document?
    Thank you for your time.

    What you could do, however, is to have one parameter that tells the names of the other parameters present, as a comma-separated list.
    <param name="parameters" value="imagelist,lang_prop_file">
    <param name="imagelist" value="images.dat">
    <param name="lang_prop_file" value="jp.prop">
    Then you can use that first parameter to make an array or vector or hastable yourself:     String s = getParameter(name);
        if ("".equals(s) || s == null) {
            System.err.println(
                "No parameter " + name + " in applet tag");
            return null;
        java.util.StringTokenizer st =
            new java.util.StringTokenizer(s, ",");
        String[] parameterNames = new String[st.countTokens()];
        for (int i = 0; i < parameterNames.length; ++i) {
            parameterNames[i] = st.nextToken();
        HashTable parameters;
        for (int j=0; j<parameterNames.length; ++j) {
            parameters.put(parameterNames[j],
                           getParameter(parameterNames[j]);

  • Parsing & handling of object and param tags

    Hi all,
    I'm working on allowing people to paste certain embedded video code into a wysiwyg / html editor we've built with the help of (amongst others) javax.swing.text.html.HTMLWriter.
    I'm facing the following problem here:
    When i try to parse the <object><param></param></object> piece, it removes the <param> tags, and incorporates these in the <object> tag. For example:
    <object width="300" height="250"><param name="allowscriptaccess" value="always"></param></object>becomes:
    <object width="300" height="250" allowScriptAccess="always"></object>All param tags get converted into the object tag as String attributes. Problem with this is that the allowScriptAccess attribute is not a valid attribute of the object tag.
    Is there any way to prevent this conversion so it will retain the <param> tags?
    Thank you in advance.
    Edited by: Floxxx on Dec 28, 2009 10:16 AM

    This seems to be default behaviour in HTMLWriter, function Write().
    There it retrieves all elements with their attributes. The attributes summed up in the param tags show up as attributes for the object tag.
    Edited by: Floxxx on Dec 28, 2009 10:54 AM

  • SSI PARAM tag

    We are trying to implement server side includes for our servlets, but are
              having difficulty retrieving parameters passed using the param tag. Our
              shtml code is as follows:
              <HTML>
              <BODY>
              <SERVLET NAME=NavigationServlet>
              <PARAM NAME=Path VALUE=Job>
              </SERVLET>
              </BODY>
              </HTML>
              Inside the servlet, we run the following code to try to retrieve the value
              of "Path":
              String path = req.getParameter("Path");
              This returns null. If we try to pass the path as part of the URL
              (http://hostname/weblogic/test.shtml?Job=Path), the above statement is able
              to retrieve it; it only fails when passed in the <PARAM> tag on the .shtml
              page. Any ideas?
              Dave
              

    Yup! We're experiencing the exact same problem here! The only diff is our
              page code is in a .html file, and we direct *.html to SSIServlet. Here's
              the kicker: We have been doing this all through WL 4.5.1, and it WORKED
              THEN! The <PARAM> tag stopped working as of 5.1 upgrade! (Or perhaps it
              has something to do with JSDK 2.2 upgrade from 2.1, which we did
              concurrently with 5.1 upgrade)
              What's going on, and what's the solution, other than appending all our param
              name-values to the end of the servlet alias tag???
              Gene
              "David Salpeter" <[email protected]> wrote in message
              news:01bfa3bb$029b3080$4dea7bcf@7926CY570369...
              > We are trying to implement server side includes for our servlets, but are
              > having difficulty retrieving parameters passed using the param tag. Our
              > shtml code is as follows:
              >
              > <HTML>
              > <BODY>
              > <SERVLET NAME=NavigationServlet>
              > <PARAM NAME=Path VALUE=Job>
              > </SERVLET>
              > </BODY>
              > </HTML>
              >
              > Inside the servlet, we run the following code to try to retrieve the value
              > of "Path":
              >
              > String path = req.getParameter("Path");
              >
              > This returns null. If we try to pass the path as part of the URL
              > (http://hostname/weblogic/test.shtml?Job=Path), the above statement is
              able
              > to retrieve it; it only fails when passed in the <PARAM> tag on the .shtml
              > page. Any ideas?
              >
              > Dave
              

  • Init-param tags and related settings?

    Hello all,
    I am completely new to all this and just recently started training for a product called ServiceCenter and was wondering how the servlet technology works in conjunction with the product.
    There are servlet tags available in the web.xml for servlet names AttachmentDownload, FileDownload, FileUpload, ImageUpload, AttachmentUpload, UniqueUpload, Attachment, Image, Messages, HtmlViewer, SCLink, NavMenu, and ThemeServlet.
    At this time I can find no documentation available for all the init-param tags and related settings along with explanations. If I can understand how this works, I'm sure I can get the appropriate info from the SC engineers.
    And when I say I'm new to this, even that is an understatement but I look forward to a looong career and learning every bit of information passed my way.
    Thanks,
    Andrew

    Sounds like 3rd party API.
    First find out the package names for all of that stuff and then google on that to find the manfacturer's website.

  • JSP Compilation problem - fmt:param tags

    Weblogic server 9.1 throws validation errors for jstl fmt:param tags. Body content is present so I'm not sure why the validation error. My code appears below :
              <fmt:message key="project.overview.archived.error"><fmt:param>${fn:escapeXml(baseAppViewBean.currentProjectName)}</fmt:param></fmt:message>
              The error is :
              The page failed validation from validator: "A body is necessary inside the "fmt:param" tag, given its attributes.".

    Found a solution to the problem. As long as there is a space between the end of the fn tag and the closing fmt:param tag, it works in 9.1. The following code works-
              This issue has been filed with BEA and will be addressed in a patch or a version after 9.2.
              <c:set var="imgAlt"><fmt:message key="document.type.508"><fmt:param>${fn:escapeXml(documentUIBean.displayString)} </fmt:param>
              </fmt:message></c:set>

  • JSTL fmt:param tag question

    <%@taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
    <fmt:message key="result_display">
         <fmt:param value="${resultBean.sourceNumber}"/>
         <fmt:param value="${resultBean.resultValue}"/>
    </fmt:message>
    As far as I can tell, the "value" attribute of the <fmt:param> tag is capable of taking an EL. And yet, the code above does not compile. I get the error message "According to TLD or attribute directive in tag file, attribute value does not accept any expressions". If I use the <fmt_rt:param> tag, everything works fine. Am I reading the spec wrong?

    You're not reading the spec wrong, but I think you are using the wrong version of JSTL. Are you using Tomcat 5? (Or another JSP2.0 container?)
    If so, you should be using JSTL1.1
    It has a uri of "http://java.sun.com/jsp/jstl/fmt"
    Note the extra /jsp in there.
    Tomcat 5 treats ${  } as runtime expressions. To a JSP2.0 container, they ARE runtime expressions. Thus in JSTL 1.1, the fmt:param tag does accept runtime expressions.
    In JSTL1.0 because the ${  } expressions WEREN'T understood by the container, they made the tags so as not to accept runtime expressions, and called their custom evaluator.
    You are using the 1.0 uri, which specifies that it doesn't accept runtime expressions. It is complaining that ${ } is a runtime expression - so you must be using a JSP2.0 container.
    In short: You probably have a JSP2.0 container, and should be using JSTL1.1 uri: <%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
    Cheers,
    evnafets

  • [svn] 3313: Fix for SDK-16981 - @ param tag does not recognize tab character as delimiter between paramName and paramDescription

    Revision: 3313
    Author: [email protected]
    Date: 2008-09-23 10:02:50 -0700 (Tue, 23 Sep 2008)
    Log Message:
    Fix for SDK-16981 - @param tag does not recognize tab character as delimiter between paramName and paramDescription
    QA: Yes
    Doc:
    Tests: checkintests
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-16981
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va

  • String Param tag replace with Br tag

    original text:
    <P ALIGN="LEFT">sample text1</P><P ALIGN="LEFT">sample text2</P><P ALIGN="LEFT">sample text3</P>
    I need to: <br/>sample text1<br2>sample text2<br2>sample text3
    can help me

    var reg:RegExp = /\<\/?P.*?\/?\>/igm;
      var _m=messageField.htmlText//<P ALIGN="LEFT">sample text1</P><P ALIGN="LEFT">sample text2</P><P ALIGN="LEFT">sample text3</P>
      _m=_m.replace(reg, '<br/>');
    trace(_m) //  "<br/>sampletext1<br/><br/>sampletext2<br/><br/>sampletext3<br/>"
    Iam getting double breaks i need only one break.
    Re: String Param tag replace with Br tag 

  • Applet can get arbitrary objects as a param tag?

    I wonder if I can get an ViewObject(which is in Info table ) as a value of value
    attribute in applet tag. I mean an object in the infotable of jsp containing the
    applet can be a value of value attribute in applet tag.
    I have this question, since I should give a viewobject to applet when I push
    submit button in jsp containing the applet.
    Help! please~

    Hi Sam,
    Instead of point 1, can you try poin 2 to see.
    1.
    <jsp:include page="test2.jsp" flush="true">
         <jsp:param name="fname" value="FirstName"/>
         <jsp:param name="lname" value="LastName"/>
         <jsp:param name="age" value="11"/>     
    </jsp:include>
    2.
    <jsp:include page="test2.jsp?fname=FirstName&lname=LastName&age=11" flush="true"/>
    3. test2.jsp
    <%=request.getParameter("fname")%>
    <%=request.getParameter("lname")%>
    <%=request.getParameter("age")%>
    -- Paul

  • Applet in Object tag IE8

    Hi Ppl,
    I have got a requirement where i need to invoke an applet from browser and should be working across all browsers. Since APPLET tag is deprecated since HTML4, i was trying to use OBJECT tag to embed it, and it works fine in FF and Chrome, but in IE8 it doesnt work.Any thoughts on how to make it work on IE8 and above?
    The HTML file is something like below
    <!doctype html>
    <object
    width="0px" height="0px" tabIndex="-1"
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    codeBase="https://java.sun.com/update/1.6.0/jinstall-6u16-windows-i586.cab#Version=1,4,2"
    type="application/x-java-applet" >
    <param name="archive" value="applettext.jar" />
    <param name="code" value="DrawingLines" >
    <param name="mayscript" value="yes">
    <param name="scriptable" value="true">
    </object>

    841335 wrote:
    ..I have got a requirement where i need to invoke an applet from browser and should be working across all browsers. .. That will never happen. There is always some browser/JRE/applet interaction bug. Besides that, some end users do not have Java installed and either will not (through personal choice) or cannot (through system administrator choice) install it.
    ..Since APPLET tag is deprecated since HTML4, i was trying to use OBJECT tag to embed it, ..Don't. Instead use Oracle's deployJava.js to check for a minimum JRE, prompt the user to install it if missing, and launch the applet.
    The HTML file is something like below2 points.
    <li> When posting code, code snippets, HTML/XML or input/output, please use the code tags as described on the 'sticky post' on the top of the forum thread listing.
    <li> Please do not waste you time, or attempt to waste mine, with any of the above that is +'something like'+ what you have. Either copy/paste it, or don't waste the bandwidth.

  • Run applet with object tag

    Hi people.
    I need your assistance in my problem.
    I try to run the simple applet (from Java Tutorial Documents):
    import java.applet.Applet;
    import java.awt.Graphics;
    public class HelloApplet extends Applet {
    public void paint(Graphics g) {
    g.drawString("Hello Applet!!", 10, 10);
    with a help of two different HTMLs.
    First with an <APPLET> tag:
    <HTML>
    <BODY>
    <APPLET CODE="dir1.class" WIDTH=150 HEIGHT=25>
    </APPLET>
    </BODY>
    </HTML>
    Second with an <OBJECT> tag:
    <HTML>
    <BODY>
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
         codebase="http://javaweb.eng/plugin/jre-1_2_2-win.exe#Version=1,2,0,0"
         align="left" border="0" width="100%" height="100%">
    <param name="code" value="dir2.class">
    <param name="codebase" value="./">
    <param name="type" value="application/x-java-applet;version=1.2">
    </OBJECT>
    </BODY>
    </HTML>
    The problem is that in case of <APPLET> tag everything is OK.
    In case of <OBJECT> tag the applet don�t run.
    And that is only on my machine.
    On the others everything is OK in both cases.
    HELP!!!
    My machine properties:
         Win95
         IE5.5
    PlugIN: jre1_2_2-win.exe

    Hmmm... I've already seen the Java Plugin going mad if you make too much experimentations with it.
    My advice : uninstall it properly and make it be reinstalled by the automatic plugin installation of IE (just by loading the HTML page with the <OBJECT> tag).
    I hope it will work...
    Matthieu

  • JDK 1.4.2_10; problem with applet/classpath/OBJECT tag

    I'm supporting an applet that needs to run in JDK 1.4.2_10 in order to work. (I don't own the code, so I can't fix the issue)
    I'd like to force that particular applet to run under JDK 1.4.2_10, but allow other applets to run on the current default JVM.
    I'm trying to do this by using the JDK's htmlconverter.exe utility to force the use of JDK 1.4.2_10. That part is working as expected, but I'm experiencing a side effect.
    The problem is that, when I use the OBJECT tag instead of the APPLET tag, the browser attempts to download the class with this URL
    http://hostname.here.com/app.testing/app.testbed/classes/appls%2fDOLARS%2fuser%2fApplet%2fclass.class
    instead of this URL
    http://hostname.here.com/app.testing/app.testbed/classes/appls/DOLARS/user/Applet.class
    The second URL works; the first does not. When I use the APPLET tag, it generates the second URL and downloads the class successfully.
    I'd like to a) use the OBJECT tag. b) get it to use the correct URL to download the Applet.class file. What do I need to do to make this happen?
    Thanks,
    Tom Valesky

    Here's the exception I'm getting (slightly sanitized):
    Java Plug-in 1.4.2_10
    Using JRE version 1.4.2_10 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\tvalesky
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to
    load: class appls/DOLARS/user/Applet.class not found.
    java.lang.ClassNotFoundException: appls.DOLARS.user.Applet.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed:http://hostname.com/DOLARS.testing/dolars.testbed/classes/appls%2fDOLARS%2fuser%2fApplet%2fclass.class
         at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 7 more
    Exception: java.lang.ClassNotFoundException: appls.DOLARS.user.Applet.class

  • Passing an Array to an Applet using PARAM

    Is it possibly to pass values as an arrary to an applet from the HTML page. Like so:
    <param name="images" value="'/archives/4/6-26-1/10/04-01-06-26-10-00-07-00.jpg',
    '/archives/4/6-26-1/10/04-01-06-26-10-00-17-00.jpg',
    '/archives/4/6-26-1/10/04-01-06-26-10-00-27-00.jpg',
    '/archives/4/6-26-1/10/04-01-06-26-10-00-37-00.jpg',
    '/archives/4/6-26-1/10/04-01-06-26-10-00-47-00.jpg'">
    And how would I be able to stick that in an arrary inside my java applet?

    so your parameter list would look like this:
    <param name="images" value-"/archives/4/6-26-1/10/04-01-06-26-10-00-07-00.jpg,
    /archives/4/6-26-1/10/04-01-06-26-10-00-17-00.jpg,
    /archives/4/6-26-1/10/04-01-06-26-10-00-27-00.jpg,
    /archives/4/6-26-1/10/04-01-06-26-10-00-37-00.jpg,
    /archives/4/6-26-1/10/04-01-06-26-10-00-47-00.jpg">
    and in your applet you do this:String allImages = getParameter("images");
    StringTokenizer st = new StringTokenizer(allImages, ",");
    String[] imageNames = new String[st.countTokens()];
    while (st.hasMoreTokens()){
    imageNames[i++] = st.nextToken();

  • Applet or Object tag attributes

    Hi everyone,
    Here is my question :
    I'm loading the same applet 2 times in the same html page.
    I would like all classes to be loaded for each of those 2 applets and not only one time as it happens right now, but always using the same .jar file of course.
    I read once that depending on the attributes you enter in the <applet> tag in your html code, classes will be loaded for each <applet> or not.
    For example :
    <applet name="app1" code="code.jar" id="applet1">
    <applet name="app2" code="code.jar" id="applet1">
    --> classes are loaded just one time and used for app1 and app2
    <applet name="app1" code="code.jar" id="applet1">
    <applet name="app2" code="code.jar" id="applet2">
    --> classes are loaded for each applet ( app1 and app2 )
    What I have just written in my example is wrong, actually I would like to retrieve those rules that make an <applet> tag to reload every classes.
    I hope you can understand what I mean.
    Thanx a lot for any help.

    try this
    <APPLET code="app1.class" width="200" height="200" ARCHIVE="code.jar">
    </APPLET>
    <APPLET code="app2.class" width="200" height="200" ARCHIVE="code.jar">
    </APPLET>
    but applet is deprecated with <OBJECT>
    hi Alex

Maybe you are looking for

  • IN MIRO ECS CLEARING ACCOUNT PROBLEM

    Dear All, SAP VERSION SAP ECC 5 I have a MIGO Part II enteries are as follows, BED-140-DR ECS-2.8-DR SHCESS-1.4 DR CLEARING ACCOUNT-144.2 CR AND IT IS CORRECT. BUT WHEN I SIMULATE THE MIRO ENTRY SHOWS AS BELOW VENDOR-1178.53 CR GR/IR-1000-DR CLEARING

  • How can I use the MacBook Pro webcam with Windows XP apps under Parallel?

    Thank you in advance for your help with this matter. I have a MacBook Pro and I have just installed Parallel with Windows XP. I would like to use the webcam that comes with the laptop for applications that run under Windows XP (ex.: PalTalk). The app

  • I am unable drag and drop icons on to customized toolbar... they simply will not drag How do I resolve this? Do I need to download something?

    I click to customize toolbar and add a new one. Then I try to drag an icon from the panel onto the new toolbar. Nothing. I am unable to do so. None of the icons are grabbable, despite the fact that the fat hand appears when I hover over them, indicat

  • Pie Chart not showing

    Hi I'm trying to display a pie chart in the WAD, I have a query associated to my Data provider, but it doesn't display properly. I'm running WAD 3.x and support package 7. I tried to use different charts and it seems to display my results fine. Any i

  • Iweb messing up the layout

    Dear all, iweb is messing up my website layout. here is the page which is driving me mad: http://www.graphtec-italia.it/Graphtec-Italia/CAMEO.html As you can see, all goes fine in the first paragraphs, then after the first box (the one named "Carta e