Click here to Skip to main content
15,893,668 members

Comments by jhez25 (Top 11 by date)

jhez25 8-Mar-13 22:40pm View    
is that so?? don't torture yourself..
jhez25 8-Mar-13 22:34pm View    
try this..


Private Sub log_in( )

if text1.text=("nathan") and text2.text=("cute") then
form2.show
me.hide
else
msgbox "sorry try to review ur username and password
End sub
jhez25 8-Mar-13 22:31pm View    
Deleted
I am currently developing a web-application in Eclipse with JBOSS, but I am having trouble displaying an applet in one of my jsp pages. When I open the page I get a ClassNotFoundException. I think this is due to the visibility of the applet as I cannot place images in my pages either. I have read that this is because of the fact that the pages, images and applet are located in my WEB-INF folder, and this folder is protected. Is this correct?

I assumed that placing files outside the WEB-INF folder should resolve this problem but so far it has not.

This is what my structure looks like now:
WebContext
>META-INF
>WEB-INF
>web
-GraphApplet.class
-logo.gif
-result.jsp

When I load result.jsp the following code:

<jsp:plugin type="applet" code="GraphApplet" codebase="web/" jreversion="1.6" width="400" height="300">
<jsp:fallback>
Plugin tag OBJECT or EMBED not supported by browser.



Results in this error:

java.lang.ClassNotFoundException: GraphApplet
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Error: java.lang.ClassNotFoundException: GraphApplet
java.lang.ClassFormatError: Incompatible magic value 0 in class file GraphApplet
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Error: java.lang.ClassFormatError: Incompatible magic value 0 in class file GraphApplet
jhez25 8-Mar-13 22:25pm View    
i cn't find.. sorry??:(
jhez25 8-Mar-13 22:14pm View    
you try to find codes in this links..
http://www.facebook.com/pages/Java-Server-Pages/106898082682605?fref=ts&rf=115011585181566