Deploying web app [message #168827] |
Tue, 09 May 2006 18:40 |
Eclipse User |
|
|
|
Originally posted by: david.rushtone.com
I've been using Eclipse for some time now, but I know I've only
scratched the surface of what it can do.
When doing web projects, I've found 2 ways to get the Eclipse directory
structure (under workspace) to inter-operate with my web server /
servlet engine's directory structure.
1. Create a "linked folder" (that I call webapp) in the Eclipse project
that's connected over to the web server and servlet engine's directory
structure, and tell Eclipse to put complied class files down in
webapp/WEB-INF/classes, and I put my associated HTML and JSP files under
webapp.
2. Keep everything in the Eclipse project, then do an "Export" (under
the File menu) to create a WAR file over in the web server / servlet
engine's directory.
Option 1 seems like a kludge, but it works.
Option 2 is more sophisticated and works (so far with my simple
testing, anyway), but clicking File, Export, and filling in all the
fields in the wizard every time is a pain, esp. when only testing minor
HTML changes.
Please tell me there's a better way!
David
|
|
|
|
Re: Deploying web app [message #169121 is a reply to message #168827] |
Thu, 11 May 2006 13:35 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
It doesn't appear that you are using Web Tool's Dynamic Web Project.
Doing so would make Option 2 much simpler. Since your Option 1 is a
fairly simple case, I can't say whether Web Tool's server support would
be as convenient. It would depend on the which servlet engine you are
using, which isn't mentioned.
Cheers,
Larry
David Rush wrote:
> I've been using Eclipse for some time now, but I know I've only
> scratched the surface of what it can do.
>
> When doing web projects, I've found 2 ways to get the Eclipse directory
> structure (under workspace) to inter-operate with my web server /
> servlet engine's directory structure.
>
> 1. Create a "linked folder" (that I call webapp) in the Eclipse project
> that's connected over to the web server and servlet engine's directory
> structure, and tell Eclipse to put complied class files down in
> webapp/WEB-INF/classes, and I put my associated HTML and JSP files under
> webapp.
>
> 2. Keep everything in the Eclipse project, then do an "Export" (under
> the File menu) to create a WAR file over in the web server / servlet
> engine's directory.
>
> Option 1 seems like a kludge, but it works.
>
> Option 2 is more sophisticated and works (so far with my simple testing,
> anyway), but clicking File, Export, and filling in all the fields in the
> wizard every time is a pain, esp. when only testing minor HTML changes.
>
> Please tell me there's a better way!
>
> David
|
|
|
Powered by
FUDForum. Page generated in 0.03740 seconds