Path Pronlem with jsp:plugin 's codebase
I am unable to call my JApplet Class with <jsp:plugin> tag in my JSP Page. I have tried almost every combination for codebase (absolute and relative paths ) but still there is an Error ClassNotFound .
Please tell me the right way to call the Applet in JSP.
along with a small example ...
Jsp and the Class File exists in Different directories in My Web Project.
Well, then I would just put in the object/embed tags yourself. You can get whatever the plugin tag writes by just using the tag once with static values and view the source in the browser and copy it out, then replace whatever values with scriptlets (or other taglib tags) to fill in the correct values.
Similar Messages
-
I have a JSP with the following jsp:plugin code:
<jsp:plugin type="applet"
code="com.package.Applet.class"
codebase="/application1/applets/" width="50"
height="50">
</jsp:plugin>
Web applications, which run this applet, specify different codebase, such as /application2/applets/,
/application3/applets/ and so on.
Unfortunatelly JSP specification doesn't allow dynamic codebase in jsp:plugin and we create a new JSP for
each new web domain to specify another hardcoded codebase attribute.
Could you please advice a trick to generate codebase attribute at run-time, to deploy the same JSP in all
applications.
Evgeny Gesin
JavadeskWell, then I would just put in the object/embed tags yourself. You can get whatever the plugin tag writes by just using the tag once with static values and view the source in the browser and copy it out, then replace whatever values with scriptlets (or other taglib tags) to fill in the correct values.
-
How to deploy a JSP with jsp:plugin with applet type?
Hi,
I am a new comer for JSP and when to try to a simple JSP with plugin for applet. Following is part of my JSP script:
<jsp:plugin type="applet" code="DigitalClock" align="center" height="25" width="300"
>
<jsp:params>
<jsp:param name="language" value="<%=request.getLocale().getLanguage()%>" />
<jsp:param name="country" value="<%=request.getLocale().getCountry()%>" />
<jsp:param name="bgcolor" value="FFFFFF" />
<jsp:param name="fgcolor" value="CC0066" />
</jsp:params>
<jsp:fallback>
<p>Unable to start plugin.</p>
</jsp:fallback>
</jsp:plugin>
===========
And Java plugin tell me that can't find DigitalClock class. I want to ask how to deply this JSP using deploytool.
Thanks,
WiseHi
It should be in such a way,
The Jsp:param is similar to PARAM used in Applet.
<jsp:plugin type="applet"
code="MyApplet.class"
width="475" height="350"
<jsp:params>
<jsp:param name = "PARAM1" value="VALUE1" />
</jsp:params>
</jsp:plugin>
jsp:fallback Element
It provides alternate text to browsers that do not Support OBJECT or EMBED. You can use this element in the same way as you provide alternate text in your applet.
<jsp:fallback>
<b> Error: This example requires java </b>
</jsp:fallback>
</jsp:plugin>
I hope this will help you.
Thanks
Bakrudeen
Technical Support Engineer
Sun MicroSystems Inc, India -
Is jsp:plugin supported in weblogic 5.1 or 6.0?
I tried to compile %WEBLOGIC_ROOT%\examples\applets\phonebook12.jsp in WLS5.1.The generated servlet class(using a java decompiler to generate a source code or using anotepad to view the class file directly) still has <jsp:plugin> tag in it.jspc does NOT generate <object> or <embed> tag.weblogic6.0 jsp trouble shooting document says "If you see <jsp:plugin> ... anywhere in the (HTML) page, the syntax of the tag(original <jsp:plugin> tag) is not correct."For weblogic 5.1, this is the ONLY example jsp file containing <jsp:plugin> tag. In weblogic 6.0, there is NO jsp example which contains the <jsp:plugin> tag.I tried very simple jsp page with <jsp:plugin> tag (and a simple applet), I always see <jsp:plugin> tag in the generated HTML. Should it be <object> or <embed> tag??Could anyone tell me whether <jsp:plugin> is really supported in Weblogic5.1 and/or 6.0? If it is not supported yet or there are bugs to fix, please let me know, so I stop trying for now. I will appreciate greatly any help.ChenpingSoftware ArchitectBEZ Systems, Inc.
hi, i have the same problem in WL5.1
At last i have to use <applet> tag
"Chenping Ni" <[email protected]> wrote in message
news:3aa01e55$[email protected]..
> I tried to compile %WEBLOGIC_ROOT%\examples\applets\phonebook12.jsp in
WLS5.1.The generated servlet class(using a java decompiler to generate a
source code or using anotepad to view the class file directly) still has
<jsp:plugin> tag in it.jspc does NOT generate <object> or <embed>
tag.weblogic6.0 jsp trouble shooting document says "If you see <jsp:plugin>
... anywhere in the (HTML) page, the syntax of the tag(original <jsp:plugin>
tag) is not correct."For weblogic 5.1, this is the ONLY example jsp file
containing <jsp:plugin> tag. In weblogic 6.0, there is NO jsp example which
contains the <jsp:plugin> tag.I tried very simple jsp page with <jsp:plugin>
tag (and a simple applet), I always see <jsp:plugin> tag in the generated
HTML. Should it be <object> or <embed> tag??Could anyone tell me whether
<jsp:plugin> is really supported in Weblogic5.1 and/or 6.0? If it is not
supported yet or there are bugs to fix, please let me know, so I stop trying
for now. I will appreciate greatly any help.ChenpingSoftware ArchitectBEZ
Systems, Inc.
-
JSP Plugin tag for applets with codebase - WLS 6.1 sp2
Could someone please tell me what I am doing wrong?
I have the following Plugin tag in my JSP.
<jsp:plugin type="applet"
code="com.xxx.efm.frontend.view.EFMApplet"
codebase="/lib"
archive="applets/EFMFrontend.jar, EfmCommon.jar, TrimmedWeblogic.jar, dom4j-full.jar,
/classes/"
jreversion="1.3"
nspluginurl="http://java.sun.com/products/plugin/1.3/plugin-install.html"
iepluginurl="http://java.sun.com/products/plugin/1.3/jinstall-131-win32.cab">
<jsp:params>
<jsp:param name="Delimiter" value="<%=delimiter%>" />
<jsp:param name="ComponentMap" value="<%=componentMapValues%>" />
<jsp:param name="ServerConfig" value="<%=serverConfigValues%>" />
<jsp:param name="GUIConfig" value="<%=guiConfigValues%>" />
</jsp:params>
</jsp:plugin>
I am trying to load the JSP using Netscape 4.7. When I don't have a plug-in installed
the page
displays "Click here to get the plugin". On clicking on it the browser pops up
a "Plugin not loaded" dialog.
All this is fine except that the dialog says it can retrieve the plugin from "/lib".
When I click on
"Get the plugin" button the new browser window tries to load the URL: http://localhost:2002/lib/?application/x-java-applet;version=1.3.
It totally ignores the netscape URL for plugin. Something similar happens with
IE as well.
I tried the same JSP without the codebase tag and all worked fine (except for
my applets). Yeah, I can append a "/lib" to each of
my jars in my archive and it just might work. But should I be doing anything different?.
Any help is appreciated.
Thanks,
Gopal
I am facing the same problem with netscape (4.7x). Gopal, did you find any
solution?
IE works fine for me. I use the foll pluginurl
iepluginurl="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#V
ersion=1,3,1,1"
_Jp
"Gopal" <[email protected]> wrote in message
news:[email protected]...
>
> Could someone please tell me what I am doing wrong?
>
> I have the following Plugin tag in my JSP.
>
> <jsp:plugin type="applet"
> code="com.xxx.efm.frontend.view.EFMApplet"
> codebase="/lib"
> archive="applets/EFMFrontend.jar, EfmCommon.jar,
TrimmedWeblogic.jar, dom4j-full.jar,
> /classes/"
> jreversion="1.3"
>
nspluginurl="http://java.sun.com/products/plugin/1.3/plugin-install.html"
>
iepluginurl="http://java.sun.com/products/plugin/1.3/jinstall-131-win32.cab"
>
>
> <jsp:params>
> <jsp:param name="Delimiter" value="<%=delimiter%>" />
> <jsp:param name="ComponentMap" value="<%=componentMapValues%>" />
> <jsp:param name="ServerConfig" value="<%=serverConfigValues%>" />
> <jsp:param name="GUIConfig" value="<%=guiConfigValues%>" />
> </jsp:params>
> </jsp:plugin>
>
> I am trying to load the JSP using Netscape 4.7. When I don't have a
plug-in installed
> the page
> displays "Click here to get the plugin". On clicking on it the browser
pops up
> a "Plugin not loaded" dialog.
> All this is fine except that the dialog says it can retrieve the plugin
from "/lib".
> When I click on
> "Get the plugin" button the new browser window tries to load the URL:
http://localhost:2002/lib/?application/x-java-applet;version=1.3.
> It totally ignores the netscape URL for plugin. Something similar happens
with
> IE as well.
>
> I tried the same JSP without the codebase tag and all worked fine (except
for
> my applets). Yeah, I can append a "/lib" to each of
> my jars in my archive and it just might work. But should I be doing
anything different?.
> Any help is appreciated.
>
> Thanks,
> Gopal
-
Can't get jsp:plugin to work with jb5
I am trying to get a Swing applet compiled with JDK 1.3.1 to run on a jsp page using the <jsp:plugin> tag. At this stage it is a ridiculously simple applet (just some JLabels and JTextFields) but I can't get it to work. Here is the jsp code:
<jsp:plugin type="applet" code="nz.astarte.ganttapplet.GanttApplet"
codebase="./WEB-INF/classes" jreversion="1.3.1"
width="400" height="175">
<jsp:fallback>
Plugin support could not be determined
</jsp:fallback>
</jsp:plugin>
When I run it in the jb5 ide nothing shows up at all. OK, I figured the ide doesn't support the plugin, so leaving the ide running (which provides me with a web server) I go into IE (version 5) and enter the url to the page, which is http://localhost:8080/AppletCommunications/GanttApplet.jsp
I get the page, and the gray box saying loading the applet but the plugin console tells me:
load: class nz.astarte.ganttapplet.GanttApplet not found.
java.lang.ClassNotFoundException: java.io.FileNotFoundException: http://localhost:8080/AppletCommunications/WEB-INF/classes/nz/astarte/ganttapplet/GanttApplet.class
Why not? Under the directory where the jsp page is located is the directory structure WEB-INF/classes/nz/astarte/ganttapplet and in that directory is a GanttApplet.class file.
I cannot understand why it isn't found. Do applets work with the jb5 ide? Is there something blindingly obvious that I've missed?
Thanks, AndrewI appear to have solved it, but it is not clear to me why.
I created a jar file of the required classes, and placed it in the same directory as the jsp file. My jsp code then looked like:
<jsp:plugin type="applet" code="nz.astarte.ganttapplet.GanttApplet"
codebase="."
archive="GanttApplet.jar"
jreversion="1.3.1"
width="400" height="175">
<jsp:fallback>
Plugin support could not be determined
</jsp:fallback>
</jsp:plugin>
This works fine. However I would expect to be able to move the jar file to some other directory, so that the jar file and jsp files are separated. I spent hours trying to work out why it wouldn't work when I had the jar
file in WEB-INF/classes (under the jsp file directory) and had codebase="WEB-INF/classes/". In the end I put the jar file into a directory I defined separately called wotnot and defined codebase="wotnot/"
Now it works. However I still think I should be able to have the jar file anywhere, including WEB-INF/classes and would love for someone to tell me why not!
Thanks, Andrew -
How to use jsp:plugin action with type = bean
Hi everybody,
I'm new to JSP so it could be a stupid question but I'm wondering how can I use a jsp:plugin action with a type equal to "bean".
Everyone is talking about type equal to applet so the browser can display this applet but if the type will be a bean so then
does it mean I can send a javaBean class to the client?
If yes, then can the javaBean object be executed on a client machine?
Or maybe I'm wrong. I don't know how it works.
Please give me a resolution.
Thanks,
Rafal.its not working.. it shows exception class not found exception.
i have placed the jsp and applet class in the same folder. but its not working.
jsp file path : OracleSpatial\mypackage\webmap.jsp
applet class : OracleSpatial\mypackage\demoApplet.class
demoApplet class inside package "mypackage".
code inside JSP is :
<jsp:plugin type="applet"
code="mypackage.demoApplet.class" width = "100%" height = "100%" >
</jsp:plugin> -
Jsp:plugin codebase problem
suppose the applet class is in
TOMCAT_HOME/webapps/myapp/WEB-INF/classes/mypackage/applet.class
what the corresponding codebase for the jsp:plugin should be?
ThanksThe WEB-INF/lib and WEB-INF/classes directories are off limits cannot be referenced.
You must create and use another directory (I usually use jars) in your application's context to supply the applet. -
Is Tomcat 4's jsp:plugin tag hardwired to 1.2?
Is Tomcat 4's <jsp:plugin > tag hardwired to version 1.2 of the JPI?
I was absolutely horrified today at a job interview when, proudly navigating to the page containing the 1.4-demanding applet I embedded in the page using <jsp:plugin ...> the plugin installation dialogue came up -- asking whether they wanted to install the 1.2 plugin (up until recently, I had the applet's object tag embedded manually... switching to jsp:plugin was fairly recent).
As it turns out, the <object> tag generated by Tomcat was specifying the download path for the 1.2 plugin, even though I specified jreversion="1.4" in the <jsp:plugin> tag:
<OBJECT
classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
name="theApplet"
width="550"
height="400"
align="middle"
codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0">The "clsid" value can be changed in web.xml by changing the jsp servlet's "ieClassId" initParam, but as far as I can tell there's NO mechanism for changing the "codebase" value anywhere.
Is the <jsp:plugin> tag (under Tomcat 4, at least) just useless for Applets that must have 1.4, or is there a configuration parameter somewhere to set the "codebase" value generated by the tag?
I know I could always put the manually-specified code back in, but I'd prefer to stay with the <jsp:plugin> tag if possible just because it makes the jsp source cleaner. What's strange is that nobody seems to have complained about that problem on the usual places (Usenet/dejanews/Google, jguru.com, etc). Whether that's just because nobody writes applets that actually demand 1.4, or whether everybody who does just embeds the <object> tag manually, I'm not sure.
In any case, I'm trying to figure out how to make <jsp:plugin> generate the right HTML for 1.4-using applets... or whether it's even possible.Sigh. I found it. It's actually specified as the "iepluginurl" property of the <jsp:plugin> tag.
<emotion:frustration variation="anger">
Now I just need to figure out what *$%!# value to use for it.
The JPI's developer guide has to be the worst document I've ever seen from Sun. Normally, Sun's documents are good. Often, exceptionally so. But the JPI guide... well, after reading http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/using_tags.html multiple times, I'm still not sure what #$%^&* URL corresponds to "The newest released JPI equal to or newer than 1.4.0". The only URL on the whole page that they even imply works is hardwired to 1.4.0, and in the same breath they imply that every other codebase URL on the page is wrong, hypothetical, and shouldn't be used... oh, and for that matter, the 1.4_0 one shouldn't really be used ether, because it might change in the future. Grrrrr.
If there's a pattern to the following URLs (all used on the same page) that's supposed to illustrate something besides abyssmally bad editing and apparent indecision, I haven't seen it yet:
http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0
http://java.sun.com/products/plugin/1.4/jinstall-14-win32.cab#Version=1,4,0,mn
http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,1,mn
http://java.sun.com/products/plugin/autodl/jinstall-1_4_0-win.cabHmmm. Let's see here. They're all the same up to http://java.sun.com/products/plugin, but from that point one diverges into /1.4/, while the others continue into /autodl/. But even past that point, two imply that the filename follows the pattern jinstall-1_4-windows-i586.cab#Version=1,4,x,* ... but whether developers who really, truly, don't care about the specific maintenance release should use "0" or "mn" is left up in the air.
Furthermore, the ONE URL on the entire page that they come halfway close to implying will work is the last one I listed above, which itself goes totally against whatever hypthetical pattern they were trying to imply with the other three. For now I'll probably stick the last one listed as the parameter because it's the only one they actually come out and say will work, but I suspect the first one is probably the "right" one.
Of course, there's always the matter of Macintosh users running IE. Or Windows users running Mozilla (which is technically Netscape, but uses MSIE ActiveX plugins). Does Mozilla get fed the value of "iepluginurl", or the value of "nspluginurl"? Sigh.
</emotion:frustration> -
Hi all, I've been wondering if applets can be dynamically called from a jsp or servlet using strings in the applet code section. would this be good if a database was used to store the paths of the applets?
i've tried this with a small applet in different ways, just to see the effect in Apache Tomcat 4.1.24, but it didn't really work. could anyone help me out here?
the coding i've been using is below :
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
Here is the applet!
<br>
<jsp:plugin type="applet" code="ElecBill_a" codebase="." height="200" width="200" >
<jsp:fallback>
<p> Unable to use Java Plugin</p>
</jsp:fallback>
</jsp:plugin>
<br>
<applet code = "ElecBill_a.class" height="200" width="200"></applet>
//up to here it works fine, both applets appear. but below, the string is read directly and causes an error
<%! String myapplet = new String("ElecBill_a"); %>
<%! public String getName() {return myapplet; } %>
<br> The name of the class file is <%= getName() %>
<br>
<jsp:plugin type="applet" code="<%= "myapplet" %>" codebase="." height="200" width="200" >
<jsp:fallback>
<p> Unable to use Java Plugin</p>
</jsp:fallback>
</jsp:plugin>
</body>
</html>yes, i suppose it doesn't. i've tried to insert it using the original way with the applet tag like this
<APPLET code = <%= getName() %> width=300 height=300>
</APPLET>
and this works...so i might go with this for a short term solution until i can figure out a better way...thanks! -
Hi,
I am trying to make an applet accessible within a JSP, but it won't load, I have the following error in my browser's Java console:
java.lang.ClassFormatError: Incompatible magic value 1013461310 in class file MyApplet
The applet is in the same directory of the JSP that calls it wich is the root of the project. Here's the code in the JSP:
<jsp:plugin type="applet" codebase="." code="MyApplet.class" width="408" height="410" >
<jsp:fallback>
Plugin tag OBJECT or EMBED not supported by browser.
</jsp:fallback>
</jsp:plugin>
There are no preblems when I call the applet from a usual html file with the applet tag.
What am I doing wrong?in order to pass information from your applet to the JSP page, you could call your JSP page from applet.
you may for example open a new browser window whitch is redirected to your JSP page, and user responses are sent as parameter concatanated to the URL
or you could use post instead of get, anyhow, the idea is that you try to connect to your JSP's url and send these user responses as well...
but if you would like the page, on which the applet is, to change according to user response, then you cannot do that (if you are not changing content of forms -- that can be done with LiveConnect <- calling javascript from java applet)
i hope you get some ideas.
L. -
I have created a jsp page and inserted an applet using jsp plugin.
the location of the jsp is C:\JDEV\testapp\test_project\public_html
and the location of the applet class is C:\JDEV\testapp\test_project\classes\test_project.
How can I supply the codebase information during plugin as' \ ' is treated as escape character.
How can I bind an applet with an action button of a jsp page?
ThanksYou need to place the class files needed to run your applet in some browser-accessible location. The WEB-INF/classes is not one of those client-accessible directories.
Think of the way you store your images on the server. Same concept here. -
The applet is not showing image on applet when running through following url. Remember It runs by simple applet tag in html but not through <jsp:plugin tag in jsp file.
the following two links for same inker.jar file.
not ok not running=====>"http://mycgiserver.com/~aftmycgijsp/jhan3.jsp"
ok runing==============>"http://mycgiserver.com/~aftmycgijsp/jhan3.html"
a) Tum.class in inker.jar with Image.jpg contain following code:
image2 = getImage(getCodeBase(),"Image.jpg");
g.drawImage(image2,0,0,this);
b) I am using following tags in my jsp file,
jhan3.jsp
<html>
<head>
<jsp:plugin type="applet" code="Tum.class" codebase="http://www.mycgiserver.com/~aftmycgijsp/applets/jhan" jreversion="1.2" archive="inker.jar" width="171" height="185" >
<jsp:fallback>
Plugin tag OBJECT or EMBED not supported by browser.
</jsp:fallback>
</jsp:plugin>
</body>
</html>
c) and the source file in my browser appears for above jsp is translated as to me as,
<html>
<head>
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0" height="185" width="171">
<param name="java_archive" value="inker.jar">
<param name="java_codebase" value="http://www.mycgiserver.com/~aftmycgijsp/applets/jhan">
<param name="java_code" value="Tum.class">
<param name="type" value="application/x-java-applet;version=1.2">
<comment><embed type="application/x-java-applet;version=1.2" codebase="http://java.sun.com/products/plugin/" height="185" width="171" java_archive="inker.jar" java_codebase="http://www.mycgiserver.com/~aftmycgijsp/applets/jhan" java_code="Tum.class">
<noembed></comment>
Plugin tag OBJECT or EMBED not supported by browser.
</noembed></embed></object>
</body>
</html>
please send any suggestions.This jsp:plugin tag should work. BUt the problem is that not showing image from jar file. but ok when used with html applet tag.
-
hi,
i am using jsp:plugin to handle applets.when i am placing the applet class file in the same jsp files directory itself its working.but,when i am placing the applet class file in the WEB-INF/classes directory it couldn't point the class file and its not working.here is the tag,
<jsp:plugin type="applet" code="SampleAppletExample" codebase="WEB-INF/classes" height="400" width="500">
</jsp:plugin>
what is the problem with the tag.how can i pont the class file from jsp:plugin tag.
any one knows please help me.
regards,
j.mouliHi,
Please check your codebase parameter again. That part of the directory (web-inf\classes is not visible to client i.e he cann't access it. By default the classes stored under web-inf\classes directory can be accessed from the jsp.
Please find the extract from apache site related to this.
"WEB-INF/classes/ - This directory contains any Java class files (and associated resources) required for your application, including both servlet and non-servlet classes, that are not combined into JAR files. If your classes are organized into Java packages, you must reflect this in the directory hierarchy under WEB-INF/classes/. For example, a Java class named com.mycompany.mypackage.MyServlet would need to be stored in a file named WEB-INF/classes/com/mycompany/mypackage/MyServlet.class.
For further information on this, please browse through the 'Standard Directory Layout' section at http://jakarta.apache.org/tomcat/tomcat-3.3-doc/appdev/deployment.html
Hope this helps.
Good Luck.
Gayam.Srinivasa Reddy
Developer Technical Support
Sun Micro Sysytems
http://www.sun.com/developers/support/ -
Jsp:plugin jreversion1.4 - tomcat4.1.10 - how do I do this?
I would like to get Tomcat 4.1.10 to recognize jreversion's other than 1.2.2 when using the jsp:plugin tag.
<b>My setup:</b>
Windows XP Professional
Tomcat 4.1.10
JDK 1.4.0_01
I wrote a cheezy applet that just displays "Helloworld"
and works fine in a simple page with just a simple applet tag.
I have a short JSP page with the following plugin line:
<code>
<jsp:plugin type="applet" code="forgetech.web.ForgeApplet" codebase="." archive="ForgeApplet.jar" height="100" width="200" jreversion="1.4.1">
<jsp:fallback>
<b> JRE 1.4.1 could not be installed. </b>
</jsp:fallback>
</jsp:plugin>
</code>
The page works fine for all machines that already have a JVM.
But
On a Windows 2000 Professional box w/ IE6 and no Sun JVM; when
I navigate to the page it tries to download and install the 1.2.2 plugin. I want it to download the latest JRE instead. How can I get Tomcat to recognize 1.4 (or soon 1.4.1) and download the appropriate JRE? I tried looking through some of the config files looking for some kind of mapping but did not see anything.
I know I can use the <b>nspluginurl</b> and <b>iepluginurl</b>, but I really dont like hardcoding links into my code.
As a bonus; is there a way to fill in jsp:plugin jreversion attribute with a JNDI lookup. This would be nice so that I can set all of my JSP's on my Tomcat server to push the latest and greatest JRE with their applets.
Thanx in advance,
- ChrisOops; I used the special tokens wrong. Sorry peoples... here is the post correctly formatted:
I would like to get Tomcat 4.1.10 to recognize jreversion's other than 1.2.2 when using the jsp:plugin tag.
My setup:
Windows XP Professional
Tomcat 4.1.10
JDK 1.4.0_01
I wrote a cheezy applet that just displays "Helloworld"
and works fine in a simple page with just a simple applet tag.
I have a short JSP page with the following plugin line:
<jsp:plugin type="applet" code="forgetech.web.ForgeApplet" codebase="." archive="ForgeApplet.jar" height="100" width="200" jreversion="1.4.1">
<jsp:fallback>
<b> JRE 1.4.1 could not be installed. </b>
</jsp:fallback>
</jsp:plugin>The page works fine for all machines that already have a JVM.
But
On a Windows 2000 Professional box w/ IE6 and no Sun JVM; when
I navigate to the page it tries to download and install the 1.2.2 plugin. I want it to download the latest JRE instead. How can I get Tomcat to recognize 1.4 (or soon 1.4.1) and download the appropriate JRE? I tried looking through some of the config files looking for some kind of mapping but did not see anything.
I know I can use the nspluginurl and iepluginurl, but I really dont like hardcoding links into my code.
As a bonus; is there a way to fill in jsp:plugin jreversion attribute with a JNDI lookup. This would be nice so that I can set all of my JSP's on my Tomcat server to push the latest and greatest JRE with their applets.
Thanx in advance,
- Chris
Maybe you are looking for
-
Creating vertical line in pages
How do I include a vertical line in every page of my Pages document?
-
Payment check Sapscript prints all in one page
Hi; we are facing a problem, days ago we printed payment checks with no problem, we prepare N amount of payment checks and send them to print and work ok. Now, if we do the same all payment checks are printed in the first check. We already did word d
-
Unable to connect to ACE30 from 3845/2811 -ssh - Invalid modulus length
Hi, I`ve seen quite a lot of posts regarding SSH issues and the above SSH error. However the fix mainly involves upgrading clients but in this instance the client is are Cisco routers 3845 / 2811 - which we use for out and inband management. Conne
-
Menu selection issues in Flash CS4 for Mac
I'm having a few menu selection issues in Flash. It seems some fields are de-selecting automatically (and quickly). For instance: 1) When I double-click a layer to change it's name, it highlights then immediately de-selects. I can only rename by righ
-
ITunes hangs everytime when I try to start a video since I updated it to version 10.7.
Hello, everytime when I try to start a video at iTunes the programm hangs and I have to close it via task manager. Quicktime works and I also tryed to reinstall it but I have the same problem. I aslo tryed to install the older version but I had the s