Applet in a portal?

Hi Group,
Using WLW8.1, I have a portal application with a Portal project and
a Java project:
- PortalApplication
- PortalProject
- JavaProject
The library contains an Applet that I would like to reference from
a jsp in either a portlet jsp or from somewhere within the framework.
How do I reference the JavaProject.jar from the applet tag in the jsp?
<applet archive="???/JavaProject.jar" code="Applet.class"></applet>
TIA,
Claus Ljunggren

Well, normally just somewhere under the webapp would work. Try accessing
the URL specified by the archive attribute of your applet (as it looks
in the resulting HTML) directly to make sure it's correct.
At this point, if you have JavaProject.jar under the PortalProject
directory and your archive attribute is correct, it doesn't sound like a
workshop issue. I haven't used applets in a long time, nor have I used
the java plugin (that's how long it's been) to know its issues.
Greg
Claus Ljunggren wrote:
Thanks Greg,
I am in doubt though where "inside the web-app" actually is ?
I have tried to copy it manually in the first place just to see
that I could reach the applet class from the web page, but
without luck - where does it go?
/Claus Ljunggren
"Gregory Smith" <[email protected]> wrote in message
news:[email protected]..
You will need to make sure the JavaProject.jar gets copied into the
Webapp. You can do this by creating a custom build for JavaProject that
does this -- there should be some docs on the Workshop part of
http://e-docs.bea.com on how to configure a java project build.
Once you've got JavaProject.jar in PortalProject, you can just do:
<applet archive="<%=request.getContextPath()%>/JavaProject.jar"
code="Applet.class"></applet>
Greg
Claus Ljunggren wrote:
Hi Group,
Using WLW8.1, I have a portal application with a Portal project and
a Java project:
- PortalApplication
- PortalProject
- JavaProject
The library contains an Applet that I would like to reference from
a jsp in either a portlet jsp or from somewhere within the framework.
How do I reference the JavaProject.jar from the applet tag in the jsp?
<applet archive="???/JavaProject.jar" code="Applet.class"></applet>
TIA,
Claus Ljunggren

Similar Messages

  • How to add an applet in a portal page??

    I need to add an applet in a page. Should I create an applet portlet, or should I use it with the typical way by calling it from an html file? Any suggestions??? Please help. It's important. I have an applet which is a video conference application and I need to use it from my portal. But I'll need to add some more applets but I cant find the way.
    Best Regards,
    George Drepaniotis

         <h:form id="registrationForm">
         <h:panel_grid headerClass="panel-background" footerClass="panel-background">
                   <h:column>                    
                        <h:output_text value="My Applet:"/>
                   </h:column>     
                   <h:column>
                        <f:verbatim escape="false">
                        <jsp:plugin type="applet" code="smartcard.SmartCardApplet"
                             archive="/sharedlib/SmartCardApplet_signed.jar"
                                  name="SmartCardApplet" width="360" height="120">
                        </jsp:plugin>
                        </f:verbatim>
                   </h:column>     
         </h:panel_grid>
         <h:command_button styleClass="style-button" id="register" value="Register"
              action="#{MyBean.register}"/>
         </h:form>
    <table>
    <tbody><tr>
    <td>My Applet:</td>
    </tr>
    <tr>
    <td><OBJECT classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93 name="SmartCardApplet" width="360" height="120" codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0">
    <PARAM name="java_code" value="smartcard.SmartCardApplet">
    <PARAM name="java_archive" value="/sharedlib/SmartCardApplet_signed.jar">
    <PARAM name="type" value="application/x-java-applet;">
    <COMMENT>
    <EMBED type="application/x-java-applet;" name="SmartCardApplet" width="360" height="120" pluginspage="http://java.sun.com/products/plugin/" java_code="smartcard.SmartCardApplet" java_archive="/sharedlib/SmartCardApplet_signed.jar"/>
    <NOEMBED>
    </NOEMBED>
    </COMMENT>
    </OBJECT></td>
    </tr>
    </tbody></table>

  • How to establish communication between dynpro and Applet running in Portal

    Hello SDN,
    I have a problem with concept of my app and would be glad if You can help me. 
    -  I needed a graphics engine to draw a map during a dynpro runtime, and i made applet for it because dynpro don't offer suitable api.
    Map have to show some data from Bussines Warehouse and R/3 and also have to return coordinates onMouse click to dynpro app.
    My question is how to pass params from web dynpro app to applet and receive coordinates after mouse click on map.
    I made dynpage and placed my applet inside for EPCF but don't know how to use it in applet?

    1. First of all set up the Rfc connection between System A and System B.
       If you are calling the function module which is avlaible on Syetem A  and calling in system B. In system A, go to SM59 opt for R\3 connection and give all the details in "Technical settings" and "logon & Security" tabs and test your connection. If you are returning any value Back to system A , make the same settings in system B.
    2. While creating the Function module check the Radio-button "Remote-Enabled Module" in the attributes tab.
    3. Call function <function-name> Destination <Destination-name>.

  • Passing parameter from applet to portal is failing

    hi all.
    We have an external applet that we can view on the portal. We want to have two parameter (parm1 and parm2) passed from the applet to the gateway and thus have them re-written by the portal gateway.
    When we access the applet from the portal, and View Source inside the browser's window, we see that the gateway URL does not precede the parameter's url:
    we see:
    <PARAM NAME = "param1" VALUE="http://host.domain.com:8080/JUPL/...
    instead of:
    <PARAM NAME = "param1" VALUE="https://http://host.domain.com/http://host.domain.com:8080/JUPL/...
    However, we are following sun docs on how to apply rules for HTML content (As in http://docs.sun.com/source/816-6359-10/rewrtadm.html#23362).
    here's our rule:
         <Applet source="*/applet1.jsp" code="java2.applet1.client.MApplet.class"
         param="param1;param2;"/>
    Any ideas on how to solve this?
    Thanks!

    Here this shold work for ya
    you just have to add a extra text file or what ever but this will give you some ideas
      import java.awt.*;
    import java.net.*;
    import java.awt.event.*;
    import java.applet.*;
    import javax.swing.*;
    public class a extends Applet implements ActionListener {
    Button button = new Button("click");
    TextField field = new TextField(20);
    JFrame frame = new JFrame();
      String gg;
    public void init() {
      add(button);
       add(field);
       button.addActionListener(this);
    public void actionPerformed(ActionEvent eve) {
           if(eve.getSource() == button) {
                try{
                         gg = field.getText();
                     JOptionPane.showMessageDialog(frame, gg);
               } catch(Exception e) {}
    }hope this helps

  • Applets on Portal!?!

    Hi,
    has anybody made any Applets working on portal pages?
    I tried to do some, but it doesn't work. I found some information in Portlet Developenet Kit, but there is something wrong, "applet not found" , even if I make on server some envoroment variables and in PDK was written to add some paths to jserv.properties file....
    It's always "applet not found".
    Maybe some examples or step by step instruction?
    Krzysiek
    null

    Hi Krysztof,
    We have stored procedures in which we call applets with the help of Oracle's htp.p-procedure (we call applets outside the database stored in a file on the web-server). We have so far not succeeded in calling applets from a dynamic page in Oracle Portal.
    Below a simplified version of the code that we use in a stored procedure which runs successfully at our client's.
    Details:
    The codebase refers to the directory in which the file with the java-class (the applet) is stored. The first four parameters shown have values that are dynamically determined, the last two have fixed values. So, inside htp.p() is one long concatenated string with all the necessary code.
    Good luck!
    htp.p('
    <applet
    code="BarChartRegio.class"
    codebase="/content/im/peter"
    name="BarChartApplet"
    width=500
    height=300
    >
    <param name=redAboveNorm value='&#0124; &#0124;l_rood_boven_norm&#0124; &#0124;'>
    <param name=minValue value='&#0124; &#0124;l_min_value&#0124; &#0124;'>
    <param name=normValue value='&#0124; &#0124;l_norm&#0124; &#0124;'>
    <param name=bar1Height value='&#0124; &#0124;l_result(9)&#0124; &#0124;'>
    <param name=bar1LabelTop value="Regio">
    <param name=bar1LabelBottom value="1-8">
    </applet>');
    null

  • How would/should you invoke a javascriptable applet from WDA or WDJ?

    The background to this question is here:
    OK - finally a bioinformatic coding problem that may not be so easy ...
    The question is as follows.
    Suppose you have a javascriptable applet - that is, an applet whose behavior can be tailored by passing it certain parameters from javascript.
    What would the best way be to invoke the javascript from WDA or WDJ, assuming that you wanted to "pop" the applet in a separate HTML frame within tne WDA or WDJ application?

    Anton -
    Glad to see you contributing again!
    Well, your original comment about RasMol shamed me into doing some research into molecular viewers callable as applets.
    Here are the latest responses I've gotten from Angel Herraez at Jmol.  (You might find it fun to join the Jmol project at SourceForge and also subscribe to its jmol-users list-server.)
    I told Angel that here's what I want to do:
    > 1) we're in Frame1 of a portal that has two other frames in it: FrameA and
    > FrameB.
    >
    > 2) A query in Frame1 against a certain database brings back two sets of
    > specifications for Jmol, say:
    >
    > a 1hru, A, 123-145
    > b) 2eqa, A, 144-167
    >
    > 3) Via "client-side eventing" at the portal level , the portal passes the
    > parameters in (a) to JMol and Jmol runs in FrameA to display the "partial"
    > structure view requested (with rotate capability, same as in interactive
    > JMol;
    >
    > 4) At the same time , the portal passes the parameters in (b) to JMol and
    > Jmol runs in FrameB to display the "partial" structure view requested (with
    > rotate capability, same as in interactive JMol;
    >
    > Is this scenario currently possible as JMol is currently written?
    He then responded:
    As long as you have already set the means to communicate with the
    Jmol applets in your portal system, I think it is indeed.
    This is what I'd pass to Jmol in FrameA:
    load "1hru.pdb"; display *:A and 123-145;
    and this to jmol in FrameB:
    load "2eqa.pdb"; display *:A and 144-167;
    (you will have to adjust the loading of the pdb file depending on
    where it is located)
    "display" is a better choice than the alternative, "restrict", for
    reason I won't discuss now (but we can separately, if you need it)
    Depending on your ways of inserting Jmol into your frames, there may
    be some details to solve, but on the Jmol scripting side that's all
    needed.
    > Or would I have to settle for the portal simply invoking Jmol in FrameB
    > and again in FrameC and letting the user manipulate settings in the
    > console, as you suggest.
    No, I won't suggest so, you can indeed preprogram what you want.
    I also asked him about capturing the views after rotating in each frame to get the desired view of each structure, and here's his response to that:
    Yes, the views can be captured to the user's computer, in a web page
    (e.g. popup window) from where the user can copy or save them to
    disk, using the browser's capabilities.
    If you need to "capture" to the server, I cannot say *but see below.
    The discussion on how to make snapshots is quite long. There are
    several mesages in the list some time ago and there are several
    places that use this functionality; Bob has at least one, I dont0
    remember exactly where right now, and I have a testpage/tutorial at
    http://biomodel.uah.es/Jmol/export-image/index.htm
    See if you can make it from that, then ask if you need help.
    >From the screenshot, displayed inside the browser, you can save
    directly to your disk in some browsers, or else copy-paste into any
    image editing program (I would not recommend Powerpoint, as the
    quality of saved images is poor). You get a jpeg file directly.
    Now that I think of it, in fact all the trouble was getting the
    server-generated image into the client browser, so there should be a
    way to store the image in the server maybe.
    Anyway, will you be in LasVegas?
    If so, will you be at SDN Community Day?
    If neither, do you have MS shareview ????
    Anyway, I will be talking soon (this weekend) in the WIKI about "alignments" and how I have to use them to get the results at StrucClues (http://strucclue.ornl.gov).
    This is where the really interesting and heavy regex-ing and returned html parsing is going to come in, so I hope you will remain interested long enough to solve the new propblems I am going to pose.  They will be much more related to real scripting problems - I just wanted to get this "view/rotate" issue out of the way, so that I could do an honest job at my SDN Community Day Session.
    Very best regards
    djh

  • POP3 support with iPlanet portal server

    Greetings,
    We are looking to use a web client (NetMail lite) or thin client (NetMail
    lite applet) with iPlanet Portal Server 6.0 sp3 out-of-the-box that will
    support POP3. It appears that NetMail lite used to support POP3, but it
    appears to only support IMAP now? Is this true?
    We are not using iPlanet Messenger Server, we are integrating with existing
    POP3 servers. Has anyone found an iPlanet client for this or used a third
    party tool for this?

    Mike Mahon wrote:
    Greetings,
    We are looking to use a web client (NetMail lite) or thin client (NetMail
    lite applet) with iPlanet Portal Server 6.0 sp3 out-of-the-box that will
    support POP3. It appears that NetMail lite used to support POP3, but it
    appears to only support IMAP now? Is this true?To my knowledge, NetMail, either the applet or lite) have never supported
    pop3.
    >
    We are not using iPlanet Messenger Server, we are integrating with existing
    POP3 servers. Has anyone found an iPlanet client for this or used a third
    party tool for this?The manual talkes about writing netlet rules that lets you your pop3 client,
    through the netlet, to access your pop3 server.
    Kent
    "For everything there is a season, and a time for every matter
    under heaven: ... a time to love, and a time to hate; a time
    for war, and a time for peace."
    -- Ecclesiastes 3:1,8

  • Single Sign-on and SSL problems

    We are using WebLogic Portal and Server (version 8.1 SP3). We want to have a single sign-on when entering the portal, so that users do not need to reauthenticate each time they access an application via an applet in the portal. We also want to protect the username/password authentication and all other connection information using SSL. We have applications in multiple domains.
    When not using SSL, SSO works okay. We are challenged for username/password exactly once, whether we access the Portal, or an application directly. As soon as we enable SSL, we are challenged repeatedly, and in some cases cannot access the applications at all, as the challenge always fails.
    We suspect that there is a Session cookie problem and that something is clobering the cookie and thus breaking the session. Does anyone have any idea on what might be causing the problem?

    Hi Derick,
    I want to make our discussion into 2 parts
    1) Sign on
    2) Viewing data based on the Heirarchy
    1)Before discussing about the Sign on i want to know which connectivity you are using ? Live offcie or QaaWS.
    2) We can make the second point possible in two ways One is with providing restriction at universe level
    and the other one is through the use of flash variables.
    Using flash variables:
    The main idea of using flash variables is reading the User ID from BO authentication and based on that we fetch the Heirarchy level of that user. Then we use some excel logic to hide the data from Low level heirarchy(Here we use Dynamic Visibility for components).
    I hope this is what you ar looking for....
    If so i have more points to acheive such scenario.
    Please provide the your BO environment details, such that it will be easy to identify the better best wat to acheve it.
    Regards,
    AnjaniKumar C.A.

  • Not fair, not fair!  It's not fair!

    Mark (Finnern) !!!!! -
    You've scheduled my session in the same slot as Ed's.
    But I'm going to Ed's!!!
    Anyone who's not going either thinks he/she knows more than Ed (doubtful) or is from the "dark side" (Java-side).
    So I guess I won't be giving my session after all.
    Hmmm ... maybe that's what you intended ...
    Do I detect the fine hand of Craig Cmehil in here somewhere ?????
    Just kidding, Craig ... just kidding.
    Seriously, though -  please cancel my session cause I ain't missin' Ed's.
    Best
    djh

    Mark -
    I'm really sorry you misinterpreted the tone of my post ... I'm not frustrated or angry or even annoyed or anything negative like that.  To the contrary, I think it's kind of funny and no big deal at all.
    Here's why.
    There are only two reasons for anyone to attend my session:
    i) they're interested in the issue of whether SAP is going to eventually force folks to call applets at the portal level, because it's too much of a support nuisance for SAP to have to tell people that they're using a WDA iframe unsafely (see my long conversations with Thomas about this in various theads);
    ii) they agree with my basic premise that SAP should market NW7 as a stand-alone IDE without any SAP applications at all.
    The number of folks in (ii) is vanishingly small, so no loss there if I dont' give the session.
    And as far as is concerned, eventually some one in MM is going to wake up and say:
    "Hey, I'd like a WDA application that presents a BOM tree and when I double click a component in the tree, it triggers an external app that lets me rotate a 3-D view of the component (not just display a "static" Documentum or Maximo picture, or a "static" picture that's a static attachment in a native content server.)"
    And when that happens, folks will realize the point of the session I had in mind, so there's no loss on that side either.
    Really - I mean it.  I wasn't being "pissy" at all - in fact, I found the whole thing kind of funny. 
    To me, the Jung/Heilman/McWeeney/Hermann sessions are probably one of the main reasons for going to all of Tech Ed ... I just wish they had been scheduled in a regular track on Tues, Wed, or Thurs.
    Best
    djh

  • Dashboards

    I know many of you have done this, but....since I can't use Flash I need to use AJAX (I guess) Anyone been successful using AJAX without the default "in page refresh of 5.0.4"? ANyone using Dundas chart with AJAX?
    My users want Flash gizmos like functionality.
    Also, anyone tried a C# "applet" in the portal?
    Message was edited by:
    mbowles

    What's a dashboard portlet? What features would it have/what would it do?
    Chris Bucchere | bdg | [email protected] | http://www.thebdgway.com

  • Swing and EP 6.0

    Hi everyone,
    Can we program swing components under the EP 6.0 ?
    Can we create an iView that will point to that code ?
    Thanks !

    Hi David,
    "Swing components" would mean Java applications or applets. That would mean Java on the client side. Theoretically, you could start applets within the portal or give a link to a WebStart driven Java applications. But both possibilities do not seem to make too much sense in the portal context, which is based on a classic client-server web-architecture.
    You also don't ask to develop swing components under struts, do you?!
    Hope this could clarify this topic a bit
    Detlev

  • Applet is not shown when viewing in liferay portal (magic value error)

    Hi A,
    When i am viewing applet in a portlet in liferay portal it is giving me following error..
    java.lang.ClassFormatError: Incompatible magic value 218762506 in class file html/portlet/kale/Scribble
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Pls let me know in case any one knows abt this?
    Regards,
    Neeraj.

    Assuming you are talking about http://www.liferay.com/ I think either they serve
    the applet the wrong way and the jre gets a garbage class or jar file.
    Or you are using a meddling proxy that messes up the class, proxy's can check
    script, classes and other stuff for security reasons and change them accordingly.
    Try to open the .class or jar file in your browser (download) and open it with a text
    editor if the proxy did something it might send you a message in clear text instead
    of the class file.

  • How to call Java Applet on a Oracle Portal page

    I have completed the below steps to add an Java Applet class file to the Oracle Portal.
    1. On the Portal Builder page, click the Navigator link.
    2. Click the Database Objects tab.
    3. In the Name column, scroll down to the schema in which you want to build the 4. object.
    5. Click the schema's name.
    6. Click Create New...Java Object.
    7. Click Java Class.
    8. Complete each wizard page until you reach this page.
    9. Granted PUBLIC access.
    I have created an html portlet on page an added:
    <applet class ="XXCPORT.MyJavaApplet">
    </applet>
    However, it does find the applet when I view the page. Is there some additional path or parameters I need to add?

    If you are asking if you can execute an external process (application/applet) from another application/applet - the answer is yes and no.
    Yes. If you have the security settings/policy to do so.
    No. This may require a security policy to be allowed - as an applet.

  • Using the Portal Single Sign-On for java applet clients

    Hi
    We have a task to build a java applet working within a portlet and comunicating to some session EJB(wrapped BC4J) running on the OC4J. The applet is presumably connecting to server via RMI. This connection should be restricted to some groups of portal users.
    When a user is entering the applet he is supposed to be already logged into the Portal.
    There is a lot of information on building custom secure portlets using only a pure HTML(same as JSP) client whith the help of the Portal Single Sign-On.
    But, is it possible to use the Single Sign-On for establishing a secure RMI connection from applet to OC4J without entering a password in the applet once more?
    Yuriy

    Perhaps you can write a small JSP page or PLSQL
    web procedure that will grab user name from
    the SSO Server (via SSOSDK/mod_osso)
    and invoke the applet with encrypted user name.
    The applet will receive the encrypted username
    and decrypt it to get the clear user name.
    This help to get Single Sign-On.
    To make sure that environment is secure, encrypted
    user name parameter should have random salt,
    user name, and time stamp to prevent replay attack.
    Applet must make sure that the encrypted users name
    time stamp set by the JSP/PLSQL page has value
    within a reasonable time limit like 5 minutes

  • Portal SSO to a Java Applet

    Hello,
    I have a customer that is looking to set up SSO with an application that uses a Java Applet as its login screen to the app.
    Any advice on how this can be set up. SSO via External Application doesn't seem to work since it doesn't use a GET or POST method.
    Thank You!
    Padmini

    An applet (with normal security setup) can only open up socket connections to the host from whence the applet came. Sounds like your applet is trying to talk to port 5000 on the client's box. Can't do that, unless:
    a) The client's box is the server (which is the case under your first scenario)
    b) The applet is signed or otherwise set up to be "trusted" that it doesn't contain harmful code.
    The security policy is there for a reason. I, for example, wouldn't want to stumble across some rogue applet out on the internet which then tries to open up socket connections to things on my corporate intranet or local machine -- unless I KNEW it was going to do that (I "trust" it).

Maybe you are looking for

  • History Project Stock

    Hi, I need to get past stocks of special stocks with special stock indicator "Q". Is there any standard report like MC.9 or table for this purpose? Regards, Saumya

  • Problem with define operation

    I have wsdl file (simple part of it here) <message name="otnAsyncServiceRequestMessage"> <part name="peiSessionID" type="xsd:string"> </message> <message name="otnAsyncServiceResultMessage"> <part name="payload" type="xsd:string"/> </message> <portTy

  • Images in all programs are reddisch

    If you draw a picture in the length or larger, the image turns reddish. it is in all programs.

  • Error Code 0x8002006D

    Hi all, sorry if this has been covered in the Mac Pro forum but I couldn't find anything when I did a search. The problem comes when I tried to burn CD's through finder. I get the Error Code above and it ejects the disk. I've seen that this problem h

  • What do I need to do to get my new CS6 to read my 5D Marklll raw photos?

    What do I need to do to get my new cs6 to read my 5D Marklll raw photos?