File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes servlets in Oracle Application server for windows2000 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlets in Oracle Application server for windows2000" Watch "servlets in Oracle Application server for windows2000" New topic
Author

servlets in Oracle Application server for windows2000

gov kur
Ranch Hand

Joined: Aug 30, 2004
Posts: 73
hello everybody,
i have just started tinkering around with OAS for WIN2000.
But i am unable to figure out how and where the web.xml (if needed) needs to be kept .This is with regards to the URL Pattern for the servlet that is specified in the web.xml

IF anybody can help me with the structure of the application(say Test)
i would be very gratefull.

my DocumentRoot is :: "C:\ORACLE\iSuites\Apache\Apache/htdocs"
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

It goes in the WEB-INF directory of your web project.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
gov kur
Ranch Hand

Joined: Aug 30, 2004
Posts: 73
I have tried that ... but it says "page not found"

The folder structure is as follows ..

htdocs (Document Root)
|
|Test
|
|WEB-INF
|
|classes/(TestServlet.java)
|
|web.xml


the web.xml is as follows

<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<description>Empty web.xml file for Web Application</description>
<servlet>
<servlet-name>TestServlet</servlet-name>
<servlet-class>TestServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TestServlet</servlet-name>
<url-pattern>/servlet/TestServlet</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<mime-mapping>
<extension>html</extension>
<mime-type>text/html</mime-type>
</mime-mapping>
<mime-mapping>
<extension>txt</extension>
<mime-type>text/plain</mime-type>
</mime-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>

Also strangely there is a htdocs/WEB-INF that is already present .i tried copying my WEB-INF and classes but still no result .
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

I think the spacing got lost. I assume /classes and web.xml are in the WEB-INF directory?

In any event, this is more of a servlets question now than an OAS one, so I'm moving the thread to servlets.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: servlets in Oracle Application server for windows2000
 
Similar Threads
What software do you use
what is the use of xml
How to run simple JSTL page?
JspParseException
How to convert Wicket application into Wicket Portlet application?