Meaningless Drivel is fun!*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Intersection of Development and Deployment Environments Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Intersection of Development and Deployment Environments" Watch "Intersection of Development and Deployment Environments" New topic
Author

Intersection of Development and Deployment Environments

Sandra Bachan
Ranch Hand

Joined: Feb 18, 2010
Posts: 434
Hello,

I am reading Head First Servlets and JSP and am on Chapter 3. Screenshot of the depicted Development and Deployment environment are attached.

I just do not understand where they would intersect. Where should I create my Development environment in terms of my Deployment environment? Should they share a common directory. I am really confused when the book says:


Create this HTML fle, call it form.html, and save it in your development
environment under the /beerV1/web/ directory.

Place a copy of the form.html fle into tomcat/webapps/Beer-v1/.
(Remember, your tomcat home directory might have a different name).


I know where Beer-v1 is because I set up Tomcat, but I haven't created beerV1...






[Thumbnail for Development.png]

[Thumbnail for Deployment.png]


Marriage Made in Heaven
http://www.youtube.com/user/RohitWaliaWedsSonia
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3064
    
  33

In your Deployment Environment- You only have the class files, JSPs, HTML and other resources like images, css, javascript files. But in Development environment you have all these plus the source code of you Java classes, servlet classes.

Your deployment environment would exist only if you have your development environment- in other words- you do some development and then move those resources required for running the application into the deployment environment.


Mohamed Sanaulla | My Blog
Sandra Bachan
Ranch Hand

Joined: Feb 18, 2010
Posts: 434
Mohamed Sanaulla wrote:In your Deployment Environment- You only have the class files, JSPs, HTML and other resources like images, css, javascript files. But in Development environment you have all these plus the source code of you Java classes, servlet classes.

Your deployment environment would exist only if you have your development environment- in other words- you do some development and then move those resources required for running the application into the deployment environment.




Hello Mohamed,

Now I understand little better. Originally I wanted to know whether Development environment and Deployment environment shared any directory. I then went back few pages in Head First, and it says

But first, you need to set up your development environment—a project directory
structure that’s separate from your actual deployed app.


My understanding it that Development and Deployment environment should be totally separate.

Just trying to grasp this new concept...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Intersection of Development and Deployment Environments
 
Similar Threads
Servlet in Package Issue
404 error
requested resource cannot be found.
Error in HFSJSP?
How To Compile Servlet