Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / January 2006

Tip: Looking for answers? Try searching our database.

jsp:plugin

Thread view: 
C P - 30 Jan 2006 17:22 GMT
Hello
Sorry for reposting, hope it is not a transgression, however I really am
nonplused on this.  I just cant get jsp:plugin to work at all in any way I
read that it should.  I will not repost again.  Thanks for any help or
insight.

ello
I am having difficulty with the jsp lugin. I have a working applet, however
when I try to load it with a jsp as below it fails. Even though the browser
has the 1.4.2_10 plugin for NS and even the 1.5.0_06 pluginnot matter what I
put in for the jreversion, it keeps asking for the plugin. Even when I dn
again the jre/plugin it fails. The generated html is below. Can someone
inform me how to use the jsp lugin to work correctly? tia.

<%@ page errorPage="showParams_error.jsp" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql" %>
<%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
<html>
<head>
<title>
showParams
</title>
</head>
<body bgcolor="#ffffff">
<h1>
JBuilder Generated JSP
</h1>
Here we attempt to use jsp lugin to load the plugin and parameterize the
applet
<br/>
<jsp lugin type="applet" code="jscript01.showParams.class" archive="jscript01.

jar"

codebase="." jreversion="1.5.0_06">
<jsp arams>
<jsp aram name="card" value=""/>
<jsp aram name="name" value=""/>
<jsp aram name="address" value=""/>
<jsp aram name="expiry" value=""/>
<jsp aram name="ccv" value=""/>
</jsp arams>
<jsp:fallback>
Sorry we are unable to start the Java plugin. You must first dn stuff>
</jsp:fallback>
</jsp lugin>

html:
<html>
<head>
<title>
showParams
</title>
</head>
<body bgcolor="#ffffff">

<h1>
JBuilder Generated JSP
</h1>
Here we attempt to use jsp lugin to load the plugin and parameterize the
applet
<br/>
<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

">
<PARAM name="java_code" value="jscript01.showParams.class">
<PARAM name="java_codebase" value=".">
<PARAM name="java_archive" value="jscript01.jar">
<PARAM name="type" value="application/x-java-applet;version=1.5.0_06">
<PARAM name="card" value="">
<PARAM name="name" value="">
<PARAM name="address" value="">
<PARAM name="expiry" value="">
<PARAM name="ccv" value="">
<COMMENT>
<EMBED type="application/x-java-applet;version=1.5.0_06" pluginspage="
http://java.sun.com/products/plugin/" java_code="jscript01.showParams.class"
java_codebase="." java_archive="jscript01.jar"
card="" name="" address="" expiry="" ccv="">

<NOEMBED>
</COMMENT>

Sorry we are unable to start the Java plugin. You must first dn stuff>

</NOEMBED></EMBED>
</OBJECT>

</body>
</html>
Erwin Moller - 31 Jan 2006 13:32 GMT
> Hello
> Sorry for reposting, hope it is not a transgression, however I really am
[quoted text clipped - 20 lines]
> <%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql" %>
> <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>

They all exist, right?
You DID check it???

> <html>
> <head>
[quoted text clipped - 10 lines]
> <br/>
> <jsp lugin type="applet" code="jscript01.showParams.class"

lugin instead of plugin?

> archive="jscript01.
>
> jar"
>
> codebase="." jreversion="1.5.0_06">
> <jsp arams>

arams instead of Params?

> <jsp aram name="card" value=""/>

Again aram instead of param.

I am not sure what goes wrong, but first fixing these typos looks like a
good start to me.

Regards,
Erwin Moller
C P - 31 Jan 2006 17:25 GMT
Hi Erwin
I eliminated the lines and still the problem.  The other typos are not in the
source.  Looking at the generated html source I think  it is a typo in that;
there is a space between the tag and the rest.  

codebase="."
 archive  =" applets.jar"
 code     =" applets.client.myApplet.class"

Upon close scrutiny there is a space in the ClassNotFoundException reporting
in the Java Console.

------------------------------------------------
load: class applets.client.myApplet.class
not found. java.lang.ClassNotFoundException: applets.client.myApplet.class
at
..............................................................................
......^
sun.applet.AppletClassLoader.findClass(Unknown Source)

I cant believe it.  I am sure no else is reporting the same, but it is there
in two places, the generated source and the Console reporting.  How do I
close up that space?  I am using NetBeans 5RC2 & Tomcat 5.5.12.  In this case,
I hate being unique, grin.  All comments greatly appreciated.  

>> Hello
>> Sorry for reposting, hope it is not a transgression, however I really am
[quoted text clipped - 31 lines]
>Regards,
>Erwin Moller


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.