Thanx for prompt reply. Btw what will be the url for this servlet
 
or
 
 
or something else
 
plz also tell in which mode i will have to start the server. Developement or production mode or any of these two will do.
 
Thanx
Awdhesh kumar
----- Original Message -----
Sent: Monday, April 29, 2002 5:39 PM
Subject: Re: accessign a servlet on weblogic

Hi
 
 
    In applications\DefaultWebApp\WEB-INFof your weblogic installation you will find an xml file called web.xml.
 
    In the xml file, you have to configure your servlet as follows:
 
  <servlet>
    <servlet-name>testServlet</servlet-name>
    <servlet-class>testServlet</servlet-class>
    <init-param>
      <param-name>Properties</param-name>
      <param-value>testProperties</param-value>
    </init-param>

  </servlet>
  <servlet-mapping>
    <servlet-name>testServlet</servlet-name>
    <url-pattern>/servlet/testServlet/*</url-pattern>
  </servlet-mapping>
 
Hope this helps you!
 
 
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 Awdhesh Kumar
Sent: Monday, April 29, 2002 8:38 AM
To: [EMAIL PROTECTED]
Subject: accessign a servlet on weblogic

Hi,
    I am new for weblogic. I just want to run a servlet in weblogic Server 6.1 SP2. I made a war with one jsp and two servlets, and put under "install-root/mydomain/applications" . Problem is, I can access the jsp of this war application, but while accessing servlet it says 404. If anyone has any idea how to access a default servlet( not part of any war application) that will also do.
 
Thanx in advance.
 
Regards
Awdhesh  

Reply via email to