Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse EE: starts applets from JSP
Eclipse EE: starts applets from JSP [message #638418] Thu, 11 November 2010 09:23 Go to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: November 2010
Junior Member
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 19:00 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4425
Registered: July 2009
Senior Member

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


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Eclipse EE: starts applets from JSP [message #639109 is a reply to message #638862] Mon, 15 November 2010 10:50 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: November 2010
Junior Member
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 12:19 Go to previous messageGo to next message
Adina T. is currently offline Adina T.Friend
Messages: 2
Registered: November 2010
Junior Member
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 08:40 Go to previous messageGo to next message
Amit  is currently offline Amit Friend
Messages: 1
Registered: March 2011
Junior Member
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 18:07 Go to previous message
Custer is currently offline CusterFriend
Messages: 8
Registered: September 2011
Junior Member
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 Mar 19 11:51:07 GMT 2024

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

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

Back to the top