Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

urgent

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi.....

i am new to weblogic . i want to use servlet and jsp in weblogic 7.0 . i would like to know that in which folder i put my servlet and jsp. is there is any need to deploy servlet and jsp to weblogic.
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
When you mean by which folder to put these files, i hope you have already worked with TomCat kinda servers.

In weblogic, you have a DefaultWebApp folder, which is a default web application installed, there you can put your servlets and JSP's.

When it comes to deployment. The JSP's need not be deployed, if you are putting in the DefaultWebApp folder (since this application is already deployed), but the new servlet should be registered in the web.xml of this default application.

Instead, if you want to have your own folders, then Define a folder called MyWebApp anywhere in your machine. Say C:\>MyWebApp.

Create a WEB-INF folder under MyWebApp. C:\>MyWebApp\WEB-INF
Create a classes folder under WEB-INF C:\>MyWebApp\WEB-INF\classes
Create a jsp folder under MyWebApp C:\>MyWebApp\jsp


Put a web.xml under WEB-INF folder , which will contain the servlet registration information.

Put the servlets under the classes folder.

Put the jsp's under the jsp folder.

Now give the path C:\MyWebApp as the path of the web application, during deployment. Weblogic searches for a META-INF foler, and it finds, then under it it searches for web.xml , it finds it. Then it uses the info in it to deploy the application.

Now you can start your development.
 
WARNING! Do not activate jet boots indoors or you will see a tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic