473,320 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Want to load local applet via HTML served by Tomcat over network - Any clues to making this work?

dB
I want to load an applet locally from the client's hard drive from an
html/jsp page served by Tomcat on the local machine or a remote server.
The motivation is that I need to print to the local printer, but don't
want to fork out $$$ for a cert.

The applet is simple, and is only being used to try this whole scheme out.
Here it is:

// -------------------------------------------------------
import javax.swing.JApplet;
import javax.swing.JLabel;
public class TestApplet extends JApplet {
public void init() {
getContentPane().add(new JLabel("Applet!"));
}
}
// -------------------------------------------------------

The html file, TestApplet.html, is here:

<HTML>
<HEAD>
<TITLE>Applet Local Load Test</TITLE>
</HEAD>
<BODY BGCOLOR=#eeeeee style="font-family: Arial Narrow,,sans-serif; font-
size: 10pt; font-weight: 600;">
Test Applet<BR>
<applet code="TestApplet.class" codebase="file:///c:/temp/"
archive="TestApplet.jar" width=100 height=100></applet>
</BODY>
</HTML>

I then put the applet .class file in a jar and saved it in C:\temp on my
local machine.

I can put TestApplet.html anywhere on my local machine and everything
works great, but when I take the TestApplet.html file and move it to an
app directory under $TOMCAT_HOME/webapps/, either on the my local machine
or a remote one, things don't work.

I don't get a Java console load error, but I do get the the text from the
html page surrounding (top and bottom) a white 100x100 box which contains
only a graphics icon - like you get when a graphics file on a server is
not available for display.

Any clues?

Thanks in advance - dB

Jul 17 '05 #1
0 3049

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Robert Tarantino | last post by:
Hello, I am trying to find a way to create a scheduled task or service that will copy my local profile folders under "Documents and settings" to a network drive. This would allow me to restore...
7
by: Eric.Jones | last post by:
I've encountered a strange error with loading delimited files from a Samba (SMB) network drive, has anyone else seen this before? (Platform: WinXP Pro, UDB PE 8015, level 02060106, SAMPLE db) ...
0
by: SeanGallavan | last post by:
Our Environment: Two network load balanced (using Microsoft NLB software) webservers with session maintained in a SQL Server database. NLB is configured with no affinity settings and two...
13
by: Thom Little | last post by:
My first ASP.NET application on Visual Studio 2005 and .NET Framework 2.0 The application compiles and executes correctly on the development machine. I then publish it to an empty directory on...
6
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a...
2
by: SteMc | last post by:
Hi, I'm using vb 2003 and have a browser window. Previsouly I used the command... "main_browser.navigate("C:\....\html files\main.html") and the browser succesfully navigated to the designated...
5
by: iainfogg | last post by:
I had an ASP.NET 2.0 site which works fine on my PC. I have just copied it to a server, and set it up to run in a virtual folder. The web pages work fine, but the graphics won't load - if I try to...
0
by: dhillarun | last post by:
Hi all, Problem (in short): Disabling the applet cache. Problem (in detail): I have developed an Applet application. I am creating the contents of the applet by reading a text file in...
2
by: ManidipSengupta | last post by:
Hi, a few (3) questions for the Java experts, and let me know if this is the right forum. It deals with 100% java code (reason for posting here) but manages a Web browser with Javascript. Thanks in...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.