Re: Embedding Applet in JSP which gets dynamic input| Pls help

Hi All,
We are into a project in Oracle Portal Server where in we want to embed a result of a standalone application(Which is applet) in JSP.
This standalone application generates applet based on the input it gets from the current application's database.
If it was static we could have used jsp:plugin but, it fails in our case!
We are clueless as to how to embed an applet which will pick up the data dynamically.
Can anyone of you help me in this regard?
Thanks & Regards
Arthi

Well instead of generating entire applet ,you can have a generic applet which takes parameters as ( <PARAM name="name" value="value"> ) inputs and process those inputs to generate output.
In this case the output of the stand alone program would be a object. And in JSP page you need to access this object, then you can get the values which need to be passed to Applet.
Else
1.Identify the real path of the applet class file
ServletContext context = session.getServletContext();
String realContextPath = context.getRealPath(request.getContextPath());2.Copy the file to a standard location in your web application
Regards,
-John-

Similar Messages

  • Re: Embedding Applet which takes dynamic input, into JSP | Need help

    Hi All,
    We are into a project in Oracle Portal Server where in we want to embed a result of a standalone application(Which is applet) in JSP.
    This standalone application generates applet based on the input it gets from the current application's database.
    If it was static we could have used jsp:plugin but, it fails in our case!
    We are clueless as to how to embed an applet which will pick up the data dynamically.
    Can anyone of you help me in this regard?
    Thanks & Regards
    Arthi

    You can call an applet's public methods from JavaScript.
    (And even the other way around, using JSObject).

  • My fire fox download helper not detected current video on you tube. It's always shows only the first video which i was downloaded.pls help

    My fire fox download helper not detected current video on you tube. It's always shows only the first video which i was downloaded.pls help

    You need to refresh the page (F5) to update the items in the download menu. Apparently YouTube refreshes the page in such a way that the extension doesn't gets notified, so you need to refresh the page manually if you want to download a media file from this page.

  • Embedding Applets in JSP

    Hello all,
              I have an unusual requirement . Part of my Java applet has parameters
              like this.
              I am embedding this java applet into a JSP page
              << portions of applet reproduced below>>
              VALUE = '
              Param1 = "Multiple Bars and Lines Combo";
              Param2 = "test0"
              Param3 = "test1";
              Param4 = "test2";
              Background = ("Some string1","Some string 2",12,2);
              HeaderBox = (null,NONE,5,null,TILE,black);
              Legend = ("",black,"SansSerif",10,0);
              Goes on and on and on . Very big
              >>
              I dont want to write it in my JSP page as it would become very big. I
              have 2 or three applets.
              But making a JAva class to return this applet string is posing to be a
              problem. This is because of a large number of characters like Comma,
              Semicolon, brackets.
              which will give an error if i compile. Of course, i can write escape
              characters. I will be having several hundred escape characters.
              Anyone have a solution to this?. How can i return the applet
              definition as a string to my JSP form?. Note that some parameters may
              change as i have to embed more than one applet. Can i store this as a
              string somewhere and return this back with a few parameters changed?.
              I ampassing parameters to the applet froim my JSP page.
              Thanks, very much in advance
              

    One idea is to store it in a property file / resource bundle, which even has
              a
              mechanism for parameter replacement, internationalization, etc.
              See:
              http://developer.java.sun.com/developer/technicalArticles/Intl/IntlIntro/
              For big files you may be interested in the following tool:
              http://oss.software.ibm.com/icu4j/demo_tools/RBManager.html
              regards,
              -Ade
              "jock" <[email protected]> wrote in message
              news:[email protected]...
              > Hello all,
              >
              > I have an unusual requirement . Part of my Java applet has parameters
              > like this.
              > I am embedding this java applet into a JSP page
              >
              > << portions of applet reproduced below>>
              > VALUE = '
              > Param1 = "Multiple Bars and Lines Combo";
              > Param2 = "test0"
              > Param3 = "test1";
              > Param4 = "test2";
              > Background = ("Some string1","Some string 2",12,2);
              > HeaderBox = (null,NONE,5,null,TILE,black);
              > Legend = ("",black,"SansSerif",10,0);
              > Goes on and on and on . Very big
              > >>
              >
              > I dont want to write it in my JSP page as it would become very big. I
              > have 2 or three applets.
              > But making a JAva class to return this applet string is posing to be a
              > problem. This is because of a large number of characters like Comma,
              > Semicolon, brackets.
              > which will give an error if i compile. Of course, i can write escape
              > characters. I will be having several hundred escape characters.
              >
              > Anyone have a solution to this?. How can i return the applet
              > definition as a string to my JSP form?. Note that some parameters may
              > change as i have to embed more than one applet. Can i store this as a
              > string somewhere and return this back with a few parameters changed?.
              > I ampassing parameters to the applet froim my JSP page.
              >
              > Thanks, very much in advance
              

  • Getting Dynamic Context Sensitive Help API to work with Visual Studio 2012 and 64 bit?

    We have RH 9.
    Our developers are working on implementing RH's dynamic CSH API inside of our software product:
    http://help.adobe.com/en_US/robohelp/robohtml/WSa7dd8288c271d662-26f4398e12b0c229082-8000. html
    The instructions our developer found say:
    Call your Help projects with the function RH_ShowHelp. The source code for this function is contained in the support files which you import into your development project. Languages supported are Visual Basic, C/C++, JavaScript, and Java. The files are in C:\Program Files\Adobe\Adobe RoboHelp [version]\CSH API. The files are:
        CSH API\RoboHelp_CSH.cpp (C/C++, dependent on the .h)
        CSH API\RoboHelp_CSH.h (C/C++, dependent on the .cpp)
    I zipped up the CSH API from my RH 9 version and sent it to the developer. We're using Visual Studio 2012.
    But now the dev is asking, "Is there a newer version? This one doesn't compile in win32 without me making some tweaks, and doesn't work at all in x64..." and "Is RoboHelp10 an option? 9 doesn't seem VS2012 compatible or x64 compatible."
    Does anyone know if there are there is a later version of the API available that works for 64-bit / VS 2012?

    Hi,
    The RoboHelp 10 API should work for WebHelp created with RoboHelp 9. Since the RH10 API will now support Multiscreen HTML5 (introduced with RoboHelp 10), I imagine it will work with VS 2012. But I’ve not tried that. You can try the RH10 API, but Adobe won’t support it
    Alternatively: A colleague of mine created a custom C# API some time ago. That might work for you: http://www.wvanweelden.eu/blog/2012/08/03/custom-webhelp-apis
    Greet,
    Willam

  • How to pass set 'Relation' between blocks dynamically..Pls help

    Dear all,
    Best wishes,
    Please help me to find solution for this..
    I have two forms A and B. Form A will pass 4 parameter to form B so that B will fetch the details. till this everry thing is fine..
    Form A -- > Uses Table A --> col1,col2,col3,col4
    Form b ----> Uses Table B ---> col1,col2,col3
    table a col1 = table b col1
    a col2 = b col2
    a col3 = b col3
    a col4(already exist) = b.col4(newly added) (no data exist for col4 table B for current records but will have future records)
    Form A passes all these 4 col as parameter to form B.
    But actual problem is for all new records (will have all the relation records i.e. Table A col1,col2,col3,col4= Table B col1,col2,col3,col4) so existing relation works fine Form B while fetching the data ( I manully edited relation between these two tables by adding Table A.col4=TableB.col4)
    How ever this relation is giving problems for EXISTING RECORDS in Table B which does not which is not having corresponding equal value to Col4 in Table A.
    so now scenario is if i remove that addition I made , THEN IT ONLY WORKS FOR EXISTING RECORDS
    and
    if i keep update relation between block (updated one including col4) then IT ONLY WORKS FOR NEW RECORDS since col4 parameter passes as null to form B then since no records in Form B.
    what my idea is to pass 'relation' dynamically creating relation for old and new records.
    like "telling form B to check -- if Table B.col4 is null where TableA.col1 = TableB.col then -- opt for relation which DOES NOT INCLUDE a.col4=b.col4 in relation statement
    or
    if Table B.col4 is notnull (Table having correspoiding records) where TableA.col1 = TableB.col then -- opt for relation which INCLUDE a.col4=b.col4 in relation statement
    Sorry for long post..hope i am clear on my requirements..
    Any suggestions are welcome...
    thanks in advance
    Prasanth

    Prasanth,
    Were I in your situation, I would push back on the author of the requirement and inform them that the data in Table 1 must be updated to conform with new requirement. This eliminates any DDL change to the tables and it is not unreasable to require a DML change to the data to support a "New" requirement. If the author of the requirement still will not see reason and wants you to make it work as is, then it could be made to work as is, but it will require a complete redesign of the Form and a complete regression test of the form to ensure the new Form process doesn't break functionality or have unexpected side-affects. Provide development time and cost estimates so the "author" can determine the cost effectiveness of the options.
    As to the options, you could make this work using a From Clause Query based block or a Procedure based block. Both options will allow you to use NVL or DECODE, but will require you to handle any Forms DML manually using the On-Ins, On-Upd and On-Del triggers. Both options will also allow you to use the Relationship feature of data blocks.
    If you have access to My Oracle Support, take a look at the following documents:
    <ul>
    <li>How to use Fro m Clause Query in Forms [ID: 69884.1]
    <li>Basing a Block on a Stored Procedure - Sample Code [ID: 66887.1]
    <li>Master/Detail Relationship Based on Stored Procedures [ID: 124650.1]
    </ul>
    If you don't have My Oracle Support access, take a look at this URL for some examples:
    Oracle Forms 10g release 2 : Demos, Tips and Techniques and scroll to 2.3.2 Block based on stored procedures.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Query to  get  Week number  Pls help

    I need to get week number of the current year in the format 2008-W47 ( this is for sysdate
    when i try
    select to_CHAR(sysdate,'YYYY'||'-IW')
    FROM DUAL
    i get 2008-47
    but in the format 2008-W47
    Help
    s

    SQL> select to_CHAR(sysdate,'YYYY')||'-W'||to_char(sysdate,'IW') from dual
      2  /
    TO_CHAR(
    2008-W47

  • How to run i tunes version 10.6.3 on mac os x 10.6, 32 bit mode? it gives mesg to go into 32 bit mode but i cant get into it pls help

    how to run i tunes version 10.6.3 on mac os x 10.6, 32 bit mode? it is downloded in 64 bit mode. when i start i tunes it gives mesg to go into 32 bit mode by going into finder, choose the the "get info command" then check the check box "32 bit mode in window" but i am not finding the check box of 32 bit mode. pls help

    That crash appears to be casued by the Facebook plug-in.
    Create a new account (systempreferences -> accounts or Users & Groups on 10.7 and 10.8), make a new Library in that account, import some shots  and see if the problem is repeated there. If it is, then a re-install of the app might be indicated. If it's not, then it's likely the app is okay and the problem is something in the main account.

  • I have problem in web page when i go to open home page but there given some massage that massage is upgread modern browser how can i get modern? pls help me.

    when i go to open youtube at that time my computer says upgread the modern browser .i am using windows xp how can i get moder browser?
    == URL of affected sites ==
    http://youtube
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; AskTB5.6)

    You can get Firefox 3.6.3 from here:
    http://www.mozilla.com/en-US/firefox/
    or
    http://www.mozilla.com/en-US/firefox/all.html

  • Problem on loading applet netscape4.73 in macos9 very urgent pls help me

    Hello,
    Problems on loading applet in Netscape4.73(jre1.1.5) AppleMac OS-9.
    when i try to load applet of size ~ 200kb in Netscape 4.73 AppleMac os9, then browser abruptly closing with the AppleMac os error message :- the Applicarion " Netscape Communicator " has unexpectedly quit because an error of type 2 occured. And then asking for system restart.
    Since i am new to the AppleMac environment i cant adjust the settings please help me to overcome the problem. Its Very urgent and i am in great hurry pls.
    thanks in advance.
    Rao. V.N.

    Hi Rao,
    I'm not a mac-os specialist (even I had some business with mac !!), and it is very difficult speaking in blind, but I have severals questions that may help you.
    - Did you try you applet in other AppleMac plateform ?
    - Does your applet work fine in other browser/plateform ?
    - Does a small applet work fine on this plateform with this browser ?
    - Does you applet contains instructions like System.exit, System.* or try to access (read or write) to local files ?
    Otherelse it is possible you have problem with your jre config, try to configure your plugin with command like : -Xmx64m -Xms16m
    (These commands tell the plugin to use at least 16 Mo memory and 64 Mo for the maximum see : http://java.sun.com/docs/hotspot/gc/)
    Hope that will help you

  • JSP and JavaBean simple question, pls help

    Hello,
    I am new to JSP. I just installed Sun Java Studio Enterprise 8 to create a JSP project. I created a jsp file and java class file in the same project. the class file is in default package. I use <jsp:useBean id="date" class="DateFormatBean"/> in jsp file to call the java class. When I run the jsp page I got the error:
    cannot resolve symbol
    symbol : class DateFormateBean
    if I add a package in the class file, I got the error: package com.mycom.projsp does not exist.
    Also I tried to add a jar file into the library and tried to import it in my jsp page, I also got package doesn't exist error.
    I know I need to set the classpath and I did it, but still got the error. Could someone help me out? Do I miss some settings? I am using Tomcat.
    Thanks in advance!

    i'm not familiar with Java Studio Enterprise 8 so i'm not sure how it is organizing its project. However, i know tomcat...and if for test purposes you take your jsp file and put it in $TOMCAT_HOME/webapps/ROOT and your class file and put it in $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes, things should work out. perhaps the web app isn't being organized properly in your tool.
    hope that helps.

  • HT1424 I want to subscribe for one year but could nt get through. Pls help

    I want to subscribe for one year but could not get through. Every time it says wrong Id or password and hence it could not be purchased.
    Pls help

    That means that the password you entered is not the correct one for the Apple ID listed.
    First go to Settings>iTunes and App Store and sign out and sign back in.
    Next reset the password. After resetting you have to sign out and sing back in before making a purchase

  • Re Iphone 4s.  When I touch photos I get maps.  Pls help.

    Please help - I cannot get into my photos.  When I touch the photos icon (the flower) I get a map from the map icon.  I moved both icons so that they would not be together but it still happens.  I get a map instead of my photos.  I also reset the Iphone.  I do not know what else to do.  Thank you

    Open the photo app again and make sure that on the bottom of the screen "Albums" (on the left side) is selected,  "Places" on the right side of the screen will show you a map of the locations where you took the photos.

  • HT204074 i have recently reset my i phone 4 all the ring tones are gone and i cant get them back pls help

    why cant i get my ringtones back after a reset

    You should be importing pics to your computer regularly as you would with any digital camera.  Nothing should only be on your iphone.  You should keep everything on your computer.
    If you have failed to do this, then they are gone.
    You can try restoring from backup.

  • BOM component sizes are getting doubled?Pls help?

    Dear Gurus,
    While creating PO with item cat "L"...In delivery schedule tab, I m selecting the delivery schedule for 79 47 grid value size, and clicking on "object list" to enter bom components.
    After entering the components, I am going back to the PO and again clicking on  "object list" to check once again.
    This, time the units are multiplied...strange behaviour of the system....
    Can anybody help me out to sort this issue?
    Thanks...

    thanks...

Maybe you are looking for

  • Help/explanation needed - Using an external hard drive

    Hi everyone, I bought an external 250gb hard drive as my MBP was very close to full capacity. Yesterday, I had a bit of a scare... 1. I backed up my Aperture Library onto the external hard drive. 2. I had about 500 of my favourite images rated 5 star

  • Error while setting the SSL with trusted cert --  any help on this?

    Connecting to Node Manager ... <Aug 3, 2010 5:20:17 PM CDT> <Warning> <Security> <BEA-090542> <Certificate chai n received from localhost - 127.0.0.1 was not trusted causing SSL handshake fail ure. Check the certificate chain to determine if it shoul

  • .mac and Mail on a new Mac

    I just switched to a new DualCore mac. I transferred my mail information from my previous G5 by saving the mail folder on the old machine and replacing the folder on my new machine. I imported my .pop mail account from work and it loaded just fine. H

  • Why is my debit card being rejected when attempting to purchase music?

    Why is my debit card being rejected when attempting to purchase music? I have money in my card and am unsure as to why it is being rejected

  • Importing memos help

    my computer crashed. had to do a recovery of the software. had many voice memos that were not imported into itunes yet. since my ipod software is not loaded back on, what can i do in order not to lose these. i need them loaded. i do not have a burner