hi,may be  this code help u.
hope this will work fine.
but b're using this u have to set securiry through
admin.

help java


import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;

public class AuthSecurity extends  HttpServlet
{
        public void init(ServletConfig config) throws
ServletException
        {
                super.init(config);
        }

        public void doGet(HttpServletRequest req,
HttpServletResponse res)
        {
                try
                {
                        res.setContentType("text/html");
                        PrintWriter out = res.getWriter();
                        out.println("<html><head><title>
Authentication</title></head><body>");
                        out.println("Hello "  +  req.getRemoteUser() + "I
am glad to see u passed security");
                        out.println("</body></html>");
                        out.close();
                }

                catch(Exception ex)
                {
                        System.err.println(ex.getMessage());
                }
        }
}










--- Aditya satyadev <[EMAIL PROTECTED]> wrote:
> Hi I have not worked with JWS2.0 on win-NT but as
> far as windows 98 is
> concerned you are very right ..
> port number 9090 is used for admin purposes
> Regards
> aditya
>
> -----Original Message-----
> From: A mailing list for discussion about Sun
> Microsystem's Java Servlet
> API Technology.
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> AMIT
> BHATIA
> Sent: Saturday, September 09, 2000 1:26 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [How to start secure service on JWS2.0
> on Win-NT?]
>
>
> hello all..
>
> well, correct me if i'm wrong...isn't port no.
> "9090" for adminstrative
> purposes, instead of 7070??
>
> best regards,
> amit bhatia.
>
>
>
> Remote <[EMAIL PROTECTED]> wrote:
> > hello forum.,
> > I have installed Javawebserver2.0 on an NT
> workstation machine.
> > But I seem to be unable to get the Secure web
> service started on port 7070
> using the Administrative service.
> > (Login -->Secure service --> setup-->start).
> > The start button gets active again.
> > Can someone help me on how to :
> > 1.Start the service?
> > 2.Test whether it is actually working or not.
> >    -- thanks in advance
> >      Vamsi
> >
> > _________________________________________________
> > Get Your Free Email At, http://www.rediffmail.com
> >
> > For fabulous shopping deals visit:
> http://www.rediff.co.in/shopping/index.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
>
>
>
____________________________________________________________________
> Get free email and a permanent address at
> http://www.netaddress.com/?N=1
>
>
___________________________________________________________________________
> 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


__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

___________________________________________________________________________
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