Skip to main content



      Home
Home » Newcomers » Newcomers » Eclipse EE: starts applets from JSP
Eclipse EE: starts applets from JSP [message #638418] Thu, 11 November 2010 04:23 Go to next message
Eclipse UserFriend
Hi,

how can I use JavaApplets in a JSP-Project? My Problem is, that I'm using Eclipse EE. The folder structure in Eclipse (in the Package Explorer) for a dynamic web projekt is like following:

ProjectnameJSP
+...
+Java Resources
-->+src
+...
+WebContent

In the sub folder src (directly under Java Resources) I saved my java files (for example AppletOne.java and AppletTwo.java). In the folder WebContent the JSP-files are saved (for example CallApplet.jsp).

The problem is, when I compile the project and deploy it to the server I have following structure.

ProjectNameJSP
--> CallApplet.jsp
ProjectNameJSP/WEB-INF/classes/package --> AppletOne.class and AppletTwo.class

You can't start applets which are located under the folder WEB-INF. How can I say Eclipse, that its should deploy the Applet-class in the same Folder like where the JSP-file is located?

Thanks for response
Re: Eclipse EE: starts applets from JSP [message #638862 is a reply to message #638418] Fri, 12 November 2010 14:00 Go to previous messageGo to next message
Eclipse UserFriend
On 11/11/2010 4:24 AM, der_guenn@yahoo.de wrote:
> The problem is, when I compile the project and deploy it to the server I
> have following structure.
>
> ProjectNameJSP --> CallApplet.jsp
> ProjectNameJSP/WEB-INF/classes/package --> AppletOne.class and
> AppletTwo.class
>
> You can't start applets which are located under the folder WEB-INF. How
> can I say Eclipse, that its should deploy the Applet-class in the same
> Folder like where the JSP-file is located?
>
> Thanks for response

Resources under WEB-INF are only visible on the server; they are never
sent to the client.

--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational
Re: Eclipse EE: starts applets from JSP [message #639109 is a reply to message #638862] Mon, 15 November 2010 05:50 Go to previous messageGo to next message
Eclipse UserFriend
Thats right and I understand it

I try to deploy the applet classes directly in the main project folder (in that case: ProjectNameJSP). The WEB-INF Folder is a subfolder of Folder "ProjectNameJSP".
Re: Eclipse EE: starts applets from JSP [message #639141 is a reply to message #638418] Mon, 15 November 2010 07:19 Go to previous messageGo to next message
Eclipse UserFriend
I'm facing with a similar problem, but from HTML.
I'm using J2EE, Eclipse Ganymede and a Dynamic Web Project.

My directory structure is:
Java Resources: src->Surse->AdinaApplet.java
WebContent>index.html.

The code that refer the applet in the index.html is:

<applet code=EchoApplet.class width="500" height="200"></applet>

When I'm launching the index.html from server, this doesn't do anything. When I'm running the AdinaApplet like a Java Applet, the applet is displayed.

Please help me with what I do wrong.

Adina
Re: Eclipse EE: starts applets from JSP [message #660171 is a reply to message #638418] Thu, 17 March 2011 04:40 Go to previous messageGo to next message
Eclipse UserFriend
I m Also facing same problem,Unable to run applet on browser.
Re: Eclipse EE: starts applets from JSP [message #734427 is a reply to message #639141] Fri, 07 October 2011 14:07 Go to previous message
Eclipse UserFriend
Hi Adina and Amidt -
Did you ever find a solution to your problem? I'm having the same trouble figuring out how to create a jar that can be run using an <APPLET> tag on a web page.
Very frustrating.
-C
Previous Topic:Installing plugins inside Eclipse problem
Next Topic:[Help] Compiling multiple packages from eclipse
Goto Forum:
  


Current Time: Tue Jul 01 05:28:35 EDT 2025

Powered by FUDForum. Page generated in 0.59884 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top