Frontpage 2003 and Java

F

Francis

I have a call to a java app such as:

<applet id="TLL_HR" width="400" height="250"
archive="panoapplet.jar" code="panoapplet.class">
<param name="file" value="TLL_HR.ivr">
</applet>

.... and this works fine. Problem is when I move the "panoapplet.jar" file higher up by one in the directory tree, the code generated is as such:

<applet id="TLL_HR" width="400" height="250"
archive="../panoapplet.jar" code="panoapplet.class">
<param name="file" value="TLL_HR.ivr">
</applet>

Notice the "../panoapplet.jar" change. This is normal for everything else in my web page code, except the call to the change location of the java app dosen't worked. I even tried to add the following:

<applet id="TLL_HR" width="400" height="250"
archive="../panoapplet.jar" code="panoapplet.class" codebase="../">
<param name="file" value="TLL_HR.ivr">
</applet>

But still I don't get a running java app. When I fix back the code and put the "panoapplet.jar" back in the same directory as my web page... everything is fine. Am I missing something? Please help.

- Francis

(PS. Sorry for the HTML)
 
S

Stefan B Rusynko

Not sure about the archive attribute and /jar,
but you probably need the .class and .jar file in the same folder and may need to add a codebase attribute codebase="../" in the
applet tag when you move them

- trust you are aware users w/ JAVA shut off for security reasons (or that don't have a java engine installed) see nothing

--




I have a call to a java app such as:

<applet id="TLL_HR" width="400" height="250"
archive="panoapplet.jar" code="panoapplet.class">
<param name="file" value="TLL_HR.ivr">
</applet>

.... and this works fine. Problem is when I move the "panoapplet.jar" file higher up by one in the directory tree, the code
generated is as such:

<applet id="TLL_HR" width="400" height="250"
archive="../panoapplet.jar" code="panoapplet.class">
<param name="file" value="TLL_HR.ivr">
</applet>

Notice the "../panoapplet.jar" change. This is normal for everything else in my web page code, except the call to the change
location of the java app dosen't worked. I even tried to add the following:

<applet id="TLL_HR" width="400" height="250"
archive="../panoapplet.jar" code="panoapplet.class" codebase="../">
<param name="file" value="TLL_HR.ivr">
</applet>

But still I don't get a running java app. When I fix back the code and put the "panoapplet.jar" back in the same directory as my
web page... everything is fine. Am I missing something? Please help.

- Francis

(PS. Sorry for the HTML)
 
F

Francis

I tried to add the codebase="../", but still the same thing. :(
The panoapplet.class will get loaded from the .jar archive, so it doesn't
really get put into the same directory. I assume that is put into the
browsers cache. No need for a directory reference for it. This java is to
display picture panoramas in a website I'm setting up for fun.

Would you think that most would accept a small java app? The panoramas can
also be displayed in a small QuickTime plug-in... do you think this would be
better?

Any advice would be nice. :)

- Francis


Stefan B Rusynko said:
Not sure about the archive attribute and /jar,
but you probably need the .class and .jar file in the same folder and may
need to add a codebase attribute codebase="../" in the
applet tag when you move them

- trust you are aware users w/ JAVA shut off for security reasons (or that
don't have a java engine installed) see nothing
 
J

Jack Brewster

Francis,

I don't know much about embedding Java apps, but I'll take a stab and see
where it goes.

I wonder if it's having a problem with the pathing. Depending on your
server configuration, it may be disallowing path reference such as "../"
(disabled parent paths). Try modifying the code to an explicit path, i.e.:

<applet id="TLL_HR" width="400" height="250"
archive="http://www.example.com/folder/that/contains/panoapplet.jar"
code="panoapplet.class">
<param name="file" value="TLL_HR.ivr">
</applet>

I really have no clue if that will fix the problem, but would like to know
if it does.

Also, have you considered asking the developer of the Java applet for advice
(if possible)? It may be coded in such a way that there are path
restrictions.

The limitation of using Java on your site is that you should't rely on it
for your users to use your site. It's one thing to offer extra content to
those who have a JVM installed and enabled in their browsers. It's another
thing entirely to require it, as in the case of the FrontPage Java Hover
Buttons, which when they fail, render site navigation impossible.

As long as you don't chase away or lose visitors by using a Java
application, you should be fine.

Good luck!
 
F

Francis

Thanks for replying. The problem with these panoramas is that they need
some kind of external app such as a java app or a QuickTime plug-in to work.
This is what I need to do these nifty panorama views with. As for the
server... I know I'm going to get in shit, but currently I'm running PWS
with XP Pro from my home computer (cablemodem don't you know). I don't want
to have a fixed path because my IP changes every couple of months. I've
been able to get around this with some tricks of redirects I've created with
the fear of a changes IP address. I want the "../" to facilitate not have
to have that java app in every subdirectory that needs it.

- Francis
 
S

santos

Try removing the ../ from this line of code. This will make the java
gremlin go away and you should see your applet!

It has a nasty way of reconfiguring itself.



archive="../panoapplet.jar" code="panoapplet.class" codebase="../">
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top