How to load an applet from Cache
I have a signed applet that accesses the file structure of the local machine. I dont want this applet to be downloaded everytime a user goes to that url. I want the applet to be loaded from the browser's cache. The size of the jar file is very big so it takes a lot of time to download the jar files. PLease help
specify the following in the html file containing the applet
i.e. inside the applet tag.
<applet>
<PARAM NAME="cache_option" VALUE="Plugin">
</applet>
In this case, it will take the latest cached version from the java plug installed on ur system.
Have a nice day,
Balaji.
Similar Messages
-
How could I to load my applet from local
hI all,
How can i to load my applet from local file system.
ThanksPut it anywhere you want. Put the associated HTML file in the same directory as your .class file and double click on the HTML file. Your browser should open up and display your Applet.
-
We have to close vulnerabilities for PCI & Cybertrust certification. We have upgraded users running Firefox to version 7.0.1 but we are still receiving the message: Mozilla Firefox SSL Certificate Validation Security Weakness. Researching the issue, it appears to be related to certificates not being revalidated when loading HTTPS pages from cache. The bug report I found is:
Bug 660749 - Firefox doesn't (re)validate certificates when loading a HTTPS page from the cachecookies.squite answer is Today at 5:15 PM .
New profile, same problem.
We've already established it is not a add-ons problem but obviously there will be less add-ons in this new profile to help exclude.
Since there is two PC profiles on the PC, I tried the second profile, same problem. Used the RESET FF function on the second PC profile...same thing...even followed the instruct for uninstall &re-install...same problem.
(3) different virus scanners, no hard core problems.
Suspect how I have something in Windows setup that no one else is using? -
How to load the data from informatica into bw & how to report the data
Hi friends,
how to load the data from informatica into bw & how to report the data
using cognos.(i.e how to access the data in sap bw using cognos 8 BI suite).
Thanks,
madhu.Inorder to report BW data into Cognos you can extract data from using Open Hub to the DB table from which Cognos reads.
For BW informatic integration refer following docs:
http://www.aman.co.il/aman/pfd/DataInteg_BR.q103cd.pdf.pdf
http://h71028.www7.hp.com/enterprise/cache/3889-0-0-225-121.html
http://devnet.informatica.com/learning/ePresentations.asp
http://72.14.203.104/search?q=cache:C741L86Q19oJ:devnet.informatica.com/showcase/resources/Essbase_DataSheet.pdfinformaticapowerconnect(BI)&hl=en&gl=in&ct=clnk&cd=3
http://www.informatica.com/customers/utilities_energy/fpl_group.htm
http://www.informatica.com/solutions/resource_center/technote_sapbw_65241004.pdf#search=%22Informatica%20to%20Bw%22 -
ClassFormatError when attempting to load an applet from within a JSP
Greetings everyone.
I have a problem that i seem unable to solve.
I've created a web application. I'm using Java 1.4.2_05 and Tomcat. Right now i'm trying to load an applet from a JSP and i'm getting an error that, try as i might, i can't understand why it happens.
Here is some detailed info:
The applet's code:
package smpb.myapp.controllers;
import java.applet.Applet;
import java.awt.Graphics;
public class GUIApplet extends Applet
public void init()
public void stop()
public void paint(Graphics g)
g.drawString("Hey hey hey",20,20);
g.drawString("Hellooo World",20,40);
The JSP's code:
<%@ page language="java"
import="java.util.*"
session="true" %>
<%
String name = (String) request.getSession().getAttribute("userName");
%>
<html>
<head>
<title>Login</title>
</head>
<body>
<h1><p align="center">Application</p></h1>
<br>
Welcome <%= name %>! Thank you for logging in!
<br><br><br>
<applet align="middle" code="smpb.myapp.controllers.GUIApplet.class" codebase="./" archive="MyApp_applets.jar">
Your browser does not support this feature.
</applet>
<br><br>
<a href='<%=request.getContextPath() + "/LogOut"%>'>Log Out</a><br>
</body>
</html>-------------------------------------------
When i reach this JSP the applet fails to load and i get the following error message at the java console:
Loading applet ...
Initializing applet ...
Starting applet ...
Connecting http://127.0.0.1/MyApp/MyApp_applets.jar with no proxy
Connecting http://127.0.0.1/MyApp/MyApp_applets.jar with cookie "JSESSIONID=A8EECE5E39458739C760D8907762C507"
Last modified time and/or expiration value is not available. Jar file will not be cached.
Connecting http://127.0.0.1/MyApp/MyApp_applets.jar with no proxy
Connecting http://127.0.0.1/MyApp/MyApp_applets.jar with cookie "JSESSIONID=A8EECE5E39458739C760D8907762C507"
Connecting http://127.0.0.1/MyApp/smpb/myapp/controllers/GUIApplet.class with no proxy
Connecting http://127.0.0.1/MyApp/smpb/myapp/controllers/GUIApplet.class with cookie "JSESSIONID=A8EECE5E39458739C760D8907762C507"
Last modified time and/or expiration value is not available. Jar file will not be cached.
Connecting http://127.0.0.1/MyApp/smpb/myapp/controllers/GUIApplet.class with no proxy
Connecting http://127.0.0.1/MyApp/smpb/myapp/controllers/GUIApplet.class with cookie "JSESSIONID=A8EECE5E39458739C760D8907762C507"
java.lang.ClassFormatError: smpb/myapp/controllers/GUIApplet (Bad magic number)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:157)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:561)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:617)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1856)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:546)
at sun.applet.AppletPanel.run(AppletPanel.java:298)
at java.lang.Thread.run(Thread.java:534)
Exception: java.lang.ClassFormatError: smpb/myapp/controllers/GUIApplet (Bad magic number)-------------------------------------------
The JSP is in the root directory of the web application's path right along with the jar file. The jar file itself has the following structure:
Archive: HelpDesk_applets.jar
Length Date Time Name
0 05-17-06 12:17 META-INF/
106 05-17-06 12:17 META-INF/MANIFEST.MF
0 05-10-06 17:14 smpb/
0 05-10-06 17:14 smpb/myapp/
0 05-12-06 16:50 smpb/myapp/controllers/
794 05-12-06 17:15 smpb/myapp/controllers/GUIApplet.class
900 6 filesNow, i've tried loading the very same jar file that i use in the JSP through a static HTML which is virtually identical to the JSP i presented and everything works just fine. I've checked and rechecked to see if all the permissions to access the jar file were accurate, i checked to see if Tomcat had it's MIME settings correctly configured so that there was no chance that the files were being corrupted during the load (as that is a usual cause for the problem, or so i've gathered) but to no avail. I've searched the web, including these forums, and found similar problems but no conclusive solution. I can't seem to figure out, at all, what could possibly be wrong. Does anyone have any ideas? I've tried to be as thorough as i could from the start, so, any help would be deeply appreciated.Hi mshah101,
This can happen if the applet is compiled using an higher version of java and the browser is pointing to an older version (even if minor version number is higher) -
How to load an Applet application for 1000cards?
Hi Friends..
I want to know How to load an Applet application for 1000cards?..
Assume that, i have an Applet application that need to loaded into 1000cards..
So, how to solve this?
Do i must to load an application manually for each card?
Is there any another way?
Thanks in advance..for 1000 cards you can use a "small" printer like an evolis "dualis" or something like that
we've produced thousands of cards with this method in my company.
the pro is that you can also print the cards in the same time.
they usually have simple APIS like get_new_card_from_loader(), put_card_on_contacts(), eject_card()
you can connect any reader on the printer , the raw card contacts are available on a connector.
some printers also have contactless couplers.
but remember that deploying cards in the field is not just loading an applet.
it's also a cryptographic challenge, you need to change the card keys or anyone will be able to play with your cards, adding and removing applets as they want.
typically this is achieved by using an ultra secret mother key and whatever derivation algorithm you like using data from INIT UPDATE as diversifier. example, you can TDES cipher part of the INIT UPDATE data using the mother key as TDES key, or use something involving SHA1, using a HSM if you are serious, etc.
for your entertainment here is a high volume card personnalization machine. That's amazing.
http://www.youtube.com/watch?v=6ZBF_yKRF5w -
How to load java class from jsp page?
hi all!
Does anyone know how to load java class from jsp page?
I try to load java class from jsp page.
Is it possible to load java class fom jsp page?
thanks and have a good day!What I mean is How to load/open java class file from jsp page?
I think we can open Applet from jsp page by using
<applet code=helloApplet.class width=100 height=100>
</applet>
but, how to open java class which is an application made by Frame?
thanks and have a good day -
Can someone tell me how I load my music from my itunes account onto my new macbook pro??
can someone tell me how to load my music from my itunes account on my iphone to my new macbook pro?
See Here
iTunes: How to move your music to a new computer -
How to Load the data from excel file(Extension is .CSV) into the temp.table
Hi
How to Load the data from excel file(Extension is .CSV) into the temporary table of oracle in Forms11g.
My Forms Version is - Forms [64 Bit] Version 11.1.2.0.0 (Production)
Kindly Suggest the Solution.
Regards,
SachinHello Sachin,
You can use the following metalink note:How to Read Data from an EXCEL Spreadsheet into a Form Using Webutil Client_OLE2 (Doc ID 813535.1) and modify it a little bit.
Instead of copy values into forms you can save them in your temporary table.
Kind regards,
Alex
If someone's helpful or correct please mark it accordingly. -
How to load the data from .csv file to oracle table???
Hi,
I am using oracle 10g , plsql developer. Can anyone help me in how to load the data from .csv file to oracle table. The table is already created with the required columns. The .csv file is having about 10lakh records. Is it possible to load 10lakh records. can any one please tell me how to proceed.
Thanks in advance981145 wrote:
Can you tell more about sql * loader??? how to know that utility is available for me or not??? I am using oracle 10g database and plsql developer???SQL*Loader is part of the Oracle client. If you have a developer installation you should normally have it on your client.
the command is
sqlldrType it and see if you have it installed.
Have a look also at the FAQ link posted by Marwin.
There are plenty of examples also on the web.
Regards.
Al -
How to load the data from excel file into temprory table in Forms 11g?
Hi
How to Load the data from excel file(Extension is .CSV) into the temporary table of oracle in Forms11g.
My Forms Version is - Forms [64 Bit] Version 11.1.2.0.0 (Production)
Kindly Suggest the Solution.
Regards,
SachinDeclare
v_full_filename varchar2(500);
v_server_path varchar2(2000);
v_separator VARCHAR2(1);
v_filename VARCHAR2(400);
filename VARCHAR2 (100);
v_stop_load varchar2 (2000);
v_rec_error_log varchar2(4000);
v_error_log varchar2(4000);
ctr NUMBER (12);
cols NUMBER (2);
btn number;
RES BOOLEAN;
application ole2.obj_type;
workbooks ole2.obj_type;
workbook ole2.obj_type;
worksheets ole2.obj_type;
worksheet ole2.obj_type;
cell ole2.obj_type;
cellType ole2.OBJ_TYPE;
args ole2.obj_type;
PROCEDURE olearg
IS
args ole2.obj_type;
BEGIN
args := ole2.create_arglist;
ole2.add_arg (args, ctr);
ole2.add_arg (args, cols);
cell := ole2.get_obj_property (worksheet, 'Cells', args);
ole2.destroy_arglist (args);
END;
BEGIN
v_full_filename := client_get_file_name(directory_name => null
,file_name => null
,file_filter => 'Excel files (*.xls)|*.xls|'
||'Excel files (*.xlsx)|*.xlsx|'
,message => 'Choose Excel file'
,dialog_type => null
,select_file => null
If v_full_filename is not null Then
v_separator := WEBUTIL_CLIENTINFO.Get_file_Separator ;
v_filename := v_separator||v_full_filename ;
:LOAD_FILE_NAME := substr(v_filename,instr(v_filename,v_separator,-1) + 1);
RES := Webutil_File_Transfer.Client_To_AS(v_full_filename,"server_path"||substr(v_filename,instr(v_filename,v_separator,-1) + 1));
--Begin load data from EXCEL
BEGIN
filename := v_server_path||substr(v_filename,instr(v_filename,v_separator,-1) + 1); -- to pick the file
application := ole2.create_obj ('Excel.Application');
ole2.set_property (application, 'Visible', 'false');
workbooks := ole2.get_obj_property (application, 'Workbooks');
args := ole2.create_arglist;
ole2.add_arg (args, filename); -- file path and name
workbook := ole2.get_obj_property(workbooks,'Open',args);
ole2.destroy_arglist (args);
args := ole2.create_arglist;
ole2.add_arg (args, 'Sheet1');
worksheet := ole2.get_obj_property (workbook, 'Worksheets', args);
ole2.destroy_arglist (args);
ctr := 2; --row number
cols := 1; -- column number
go_block('xxx');
FIRST_RECORD;
LOOP
--Column 1 VALUE --------------------------------------------------------------------
olearg;
v_stop_load := ole2.get_char_property (cell, 'Text'); --cell value of the argument
:item1 := v_stop_load;
cols := cols + 1;
--Column 2 VALUE --------------------------------------------------------------------
olearg;
:item2 := ole2.get_char_property (cell, 'Text'); --cell value of the argument
cols := cols + 1;
--<and so on>
ole2.invoke (application, 'Quit');
ole2.RELEASE_OBJ (cell);
ole2.RELEASE_OBJ (worksheet);
ole2.RELEASE_OBJ (worksheets);
ole2.RELEASE_OBJ (workbook);
ole2.RELEASE_OBJ (workbooks);
ole2.RELEASE_OBJ (application);
END;
--End load data from EXCELPlease mark it as answered if you helped. -
How to load the data from excel file into table in oracle using UTL_FI
How to load the data from excel file into table in oracle
and from table to excel file
using UTL_FILE package
Please give me some exampleThis is something i tried in oracle apex
http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
Regards,
CKLP -
How to load master data from SAP R/3 system like Customer master, materioal master , vendor master.............
Hi Bramha,
Check ...........
Re: master data loading in BI 7.0
/message/4708129#4708129 [original link is broken]
Re: Master data loading.
Regards,
Vijay. -
How to stop the Browser from caching my web pages
Hi There
Can anyone tell how to stop the browser from caching my jsp pages
I am using
<%response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");
response.setDateHeader ("Expires", 0);
%>
but this does not work anduser is able to go back to the previous page
which i dont want and i want the browser to display the message the page has expired
Help appreciated
Thanks
Mumtazresponse.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("max-age", 0);
response.setDateHeader("Expires", 0);
I have cut paste the code from my jsp which is working. There is one additional line. I do not know if that is the cause but there is no harm in trying that out.
Srinivasan Ranganathan -
How to open an Applet from a text link in a HTML Page
Hi There
How to open an Applet from a text link
in a HTML page
For example I have a HyperLink "Open Applet"
When a user clicks that link i want to open a
Applet in a AWT Window.
How can i do this
Will any one help me?
-Ramyau can use javascript for that
<SCRIPT language="javascript">
function loadAppNow() {
document.write("<APPLET ......></APPLET>")
</SCRIPT>
LoadApplet
this will overwrite the applet on current window
There are many good ways other than document.write to open in same window. I don't remember the syntax right now.
Plz. refer to javascript tutorial for that.
even you can insert the applet while retaining previous contents. its quite easy actually.
regards....bhart
Maybe you are looking for
-
Exporting and Importing of Schema
The Export and Import of Schema is not working consistently in SP4. When I create a new repository from the schema, all the subtables get created. The main table is has only one field in it. It reads Category. The other fields in the main table are m
-
I want to buy ipod touch 4 (8GB) , but i dont know is that enough for me
I want to buy ipod touch 4, my friends said i should buy 8GB one, but i dont know is 8GB enough for me to use. some people said that it only have 6.7GB for you to use, cause the ipod apps already used some of it. I want to have maybe 100 songs, some
-
hi all, I bought a DVI to HDMI adapter to use on my G4 and it works like a charm. Do they make any straight forward HDMI video cards to use on older G4 Macs?
-
Been given an iphone 4 by a friend and need to unlock so can use my own SIM
I was given an iphone 4 by a friend but upon putting my SIM in, I realised he'd not unlocked the phone! He isn't able to unlock the phone via his contract (he has a new iphone) because the IMEI isn't showing on his account and it tries to unlock his
-
FG Op., Addition, SALE, Closing Balance Report
Can any one tell me how can i gent the Total Finished Goods Opening, addition/Produced , Sold and Closing Balance for Manufacturing Company ? In the same way for the Trading Company, how can i get the details of the Opeing Goods, Purchased, Goods in