permaculture playing cards*
The moose likes BEA/Weblogic and the fly likes urgent Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "urgent" Watch "urgent" New topic
Author

urgent

AmitCdac Grover
Greenhorn

Joined: Mar 30, 2005
Posts: 26
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.
Senthil B Kumar
Ranch Hand

Joined: Feb 09, 2004
Posts: 140
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.


Work like you don't need the money. Love like you've never been hated. Dance like nobody's watching. Sing like nobody's listening. Live like it's Heaven on Earth.
Currently I Reside Here WEBlog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: urgent
 
Similar Threads
How to deploy web application in Weblogic 10
which jar file for classpath ?
Weblogic
Servlet engine info required.
Need Directory Structure Info ...