Skip to main content

How to use My Eclipse in Java part5


Q.) What is the web applications directory structure?

Web project development
Q.) How to create web project? 

File -> new -> Web project > "Application name"
Q.) What is the directory structure of web application? 

=> According to the sun microsystem there won't be any webroot in the directory structure. But
if we are creating the web project in myelipse it will include Webroot in the directory structure
and it ill is removed while deploying the application into the server.
=> All the servlets should be there inside src and all the jsps should be there inside webroot or inside
web-inf.

=> We cannot access the wEB-inf jsp's directly.So in some projects we keep one jsp outside the WEB-INF and all
the remaining jsps we keep inside the WEB-INF.
=> All the generated .class files for the servlets should be there inside classes folder.

=> Eclipse automatically will move all the .class files to classes folder because the path is
configured automatically to check the path.

Default output folder => classes.

Comments

Popular posts from this blog

దోసకాయ పూర్ణం | cucumber curry

How to merge Objects in Javascript

 let person = {     firstName: 'Rocky',     lastName: 'g',     age: 23 }; let job = {     jobTitle: 'Angular Developer',     location: 'UK' }; let employee = {     ...person,     ...job }; console.log(employee);

క్యారెట్ ఊరగాయ | carrot pickle