cancel
Showing results for 
Search instead for 
Did you mean: 

Applet inside an Amp

lucagia
Champ in-the-making
Champ in-the-making
Hi all.
I'm developing an amp that includes a jsp, which has inside an applet (which points to a rest interface).
The jsp is mapped to /alfresco/jsp/sign/sign.jsp.

My problem is that I get an error when going to the jsp page … saying that the applet is "notinitiated" (the page works correctly but not the applet).

I've put the applet jar inside the lib folder of my amp, and so it's deployed to /alfresco/WEB-INF/lib. But it is not working.
    <applet code="org.myapplet.Applet" archive="applet.jar" WIDTH="0" HEIGHT="0" ID="applet" VIEWASTEXT
             style="visibility:visible" MAYSCRIPT scriptable>
            <PARAM NAME = "user" VALUE="just_to_try"/>
            <NOAPPLET>Unable to load applet</NOAPPLET>
    </applet>


I also tried to change the archive path to
archive="../../WEB-INF/lib/applet.jar" but it's still the same.

The applet is ok … cause I've tried the same jsp with the same applet in Jetty and it works without problems.

Thanks in advance
3 REPLIES 3

lucagia
Champ in-the-making
Champ in-the-making
I've solved the problem … putting the applet in the same folder of jsp page.

But I've now another problem. How I've to pass some parameters from DialogManager to applet.

<PARAM NAME = "user" VALUE="#{DialogManager.bean.userName}"/>

this seems not working … But if I put the #{DialogManager.bean.userName} inside an hSmiley SurprisedutputText it works.

Please help  Smiley Sad

libman
Champ in-the-making
Champ in-the-making
Passing Parameters to Applets 


<applet

  code = "DisplayMessage.class"

  width = 200

  height = 50>

<param name=MESSAGE value="Welcome
    to Java"> 

<param name=X value=20> 

<param name=Y value=20>

alt="You must have a Java-enabled   browser to view the applet"

</applet>
From: http://cs.joensuu.fi/pages/koles/oop/12slide.ppt

lucagia
Champ in-the-making
Champ in-the-making
libman thanks for your answer.

The fact is that i need to pass the value from DialogManager.bean.
I've not static value, but the value elaborated from that class.

I've tried also to use <object > instead of <applet> but the value of userName, #{DialogManager.bean.userName}, is not passed to the applet