Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Deploying web app
Deploying web app [message #168827] Tue, 09 May 2006 18:40 Go to next message
Eclipse UserFriend
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 #169035 is a reply to message #168827] Thu, 11 May 2006 08:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jlagarde.assu2000.fr

You can configure a server in eclipse and set publication strategy in
Window/Preferences.../Server


Jer.
Re: Deploying web app [message #169121 is a reply to message #168827] Thu, 11 May 2006 13:35 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
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
Previous Topic:Tutorial on Ajax reusable Java GUI Classes
Next Topic:Publishing a webapp when resource files are locked
Goto Forum:
  


Current Time: Tue Mar 19 05:08:46 GMT 2024

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

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

Back to the top