• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jsp:plugin using applet & mayscript

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
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:params>
<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"/>
</jsp:params>

<jsp:fallback>
Plugin tag OBJECT or EMBED not supported by browser.
</jsp:fallback>
</jsp:plugin>


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!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic