Hi Mo,
   I find that using the 'Server Manager' with NES4 is easier than editing
the servlets.properties files. However, let me give you a simple example,
which may highlight where you're going wrong.

Take the following servlet...

---START testargs.java---
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class testargs extends HttpServlet
{
 public void doGet(HttpServletRequest req, HttpServletResponse res) throws 
ServletException, IOException
 {
  res.setContentType("text/html");
  PrintWriter out = res.getWriter();

  out.println("<HTML>");
  out.println("<BODY>");
  out.println("The 'test' init parameter is "+getInitParameter("test")+"<br>");
  out.println("The 'test2' init parameter is "+getInitParameter("test")+"<br>");
  out.println("</BODY>");
  out.println("</HTML>");
 }
}
---END testargs.java---

In your servlets.properties file... (Note I've deliberately mapped the name
testargs to myTestArgs to avoid confusion, although I think you can just use
the same name if you prefer).

servlet.myTestArgs.classpath=/home/davidf/servlets
servlet.myTestArgs.code=testargs
servlet.myTestArgs.initArgs=test=hello,test2=world

Then you need to configure a virtual path translation in your
rules.preferences file...
/df/runTestArgs=myTestArgs

I can then access my Servlet via http://'myhost'/df/runTestArgs

I hope this helps you.

Regards

David Finch, Programmer.

Xpedite Systems Ltd (Premiere Document Distribution Europe).
Pioneer Business Park,
Clifton Moor, York YO30 4GJ
http://www.xpedite.co.uk

> -----Original Message-----
>  All,
>
> Does anyone have experience of installing Java Servlets on Netscape
> Enterprise Server  4.0 and in particular the setting up
> of servlet.properties file.
>
> The problem is that The Arguments that have beem specified in the properties
> file are not being picked up by the servlet.
> ( However, they are picked up when I use servletrunner.)
>
> servlet.Report.initArgs=.......
>
>
> Any suggestions appreciated.
>
> Regards,
> Mo.
>

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

Premiere Technologies (UK)
**********************************************************************

___________________________________________________________________________
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

Reply via email to