Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Re: Setting up a new dynamic web project
Re: Setting up a new dynamic web project [message #226812] Fri, 16 January 2009 11:42 Go to previous message
Eclipse User
Originally posted by: nickboldt+eclipse+newsgroup.gmail.com

Copying to eclipse.webtools.

Mila Mitra wrote:
> Hello,
> I am a newbie to Eclipse.
> I have been handed two projects as directory structures, a web project
> with jsp, html, and js files. Also a separate project which has many
> Java packages and servlets.
>
> I am able to import the Java web structure to an Eclipse Java project,
> and the webfiles to a dynamic web project/WebContent area.
>
> However, the JSP files in the dynamic web project use the Java classes
> (page imports).
>
> My question is how to make this work?
> 1. Keep these as separate projects (1 dynamic web project and one Java
> project). In that case how do the import statements work from another
> project?
> OR
> 2. Put the Java packages also in the Java:src area of the dynamic web
> project? Where do I place the Servlets?
>
> This is how it currently looks:
> - TestJava (java project)
> /src
> com.app.techassist
> TechAssistApp.java
>
> - wsdev (dynamic web project)
> /WebContent
> main.jsp
>
> main.jsp has <%@ page import="com.app.techassist.TechAssistApp" %>
>
> How can I make main.jsp see the Java package? Also, how would I build
> this whole thing?
>
> I would appreciate any help.
> Thanks, Mila
>
>
>

--
Nick Boldt :: http://wiki.eclipse.org/User:Nickb
 
Read Message
Read Message
Previous Topic:Web Services Explorer for UDDI v3
Next Topic:Creating a web project around an existing file structure?
Goto Forum:
  


Current Time: Fri May 24 14:01:31 EDT 2013

Powered by FUDForum. Page generated in 0.08454 seconds