Hi
If I have understood your question correctly, ie., you wanted to place your
servlet class (Say PushServlet.class)in
a different folder (d:\temp) and you wanted to access the Servlet.
With these assumptions let me proceed:
In your startup file of the server ( In weblogic it is
startWeblogic.cmd),
set the classpath to point to d:\temp.
In your web.xml, do the following :
<servlet>
<servlet-name>Push</servlet-name>
<servlet-class>Push</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Push</servlet-name>
<url-pattern>/servlet/Push/</url-pattern>
</servlet-mapping>
Now you would be able to access the PushServlet which is in D:\temp using a
browser.
Have I understood the question correctly? Excuse me if I have understood
the question wrongly.
Thanks & Regards
Balasubramaniyan Krithivasan
Software Engineer
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
Galbreath, Mark
Sent: Friday, May 31, 2002 12:03 PM
To: [EMAIL PROTECTED]
Subject: Re: help me ...
You can't (and I have no idea why you would want to), and conform to the
Servlet and J2EE specifications for web applications. This is why every
servlet and EJB container available today automatically creates the
directory structure and why they all know what to do with EAR and WAR files.
You violate the standard at your own peril. You application will be a
nightmare to administer and maintain.
Mark
-----Original Message-----
From: Kurelli Rajshekar [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 31, 2002 5:54 AM
I want all my class files(servlets) to be placed outside.
i mean i dont want to create WEB-INF/Classes for each Web application.
I want all the class files in a common folder for all my web
applications.
where to place them.?? and how to mention the classpath..
please help me out..
Best Regards
Raj
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html