This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

jsp:plugin using applet & mayscript

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any help on the following problem will be appreciated.

I am using java/jre version 1.5 and IE version 6.0.
I am trying to use jsp:plugin to load applet which calls the JSobject; however when the applet loads, it throws the "netscape.javascript.JSException unknown name". The jsp:plugin details from the jsp page is pasted below.

I tried the following:
1) used mayscript as one of the parameters in the jsp:plugin, got this exception:
org.apache.jasper.JasperException: /acdappletplugin.jsp(28,0) Plugin has invalid attribute: mayscript
2) I used mayscript as a jsp:param as the converted html code in IE is like how I have used below; I get the "netscape.javascript.JSException unknown name".
3)If I use it in plain html with the applet tag and mayscript it works fine;

<jsp:plugin type="applet" code="JSobjectApplet.class" archive="jsobjectapplet.jar" width="340" height="169">
<jsp:param name="AGENT_ID" value="${param.AGENT_ID}"/>
<jsp:param name="AGENT_PASSWORD" value="${param.AGENT_PASSWORD}"/>
<jsp:param name="AGENT_TERMINAL" value="${param.AGENT_TERMINAL}"/>
<jsp:param name="LOGIN" value="{param.LOGIN}"/>
<jsp:param name="PASSWORD" value="{param.PASSWORD}"/>
<jsp:param name="SERVICENAME" value="{param.SERVICENAME}"/>
<jsp:param name="MAYSCRIPT" value="true"/>

Plugin tag OBJECT or EMBED not supported by browser.

When I use applet & mayscript in a jsp:plugin I am facing this problem. JSP 2.0 shows support for mayscript; so I am not sure why this is happening. Has anyone come across this?

Thanks in advance!
    Bookmark Topic Watch Topic
  • New Topic