Hay,

If I understand this question correctly

edit httpd.conf(apache installation directory/conf/httpd.conf) this file and
change the following parameter

#
# Port: The port to which the standalone server listens. For
# ports < 1023, you will need httpd to be run as root initially.
#
Port 8081( from 8080)

and restart your server and try again.
let me know if this is not clear

-Sankar


>From: Li Xu <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Servlet and apache listen to the same port?
>Date: Tue, 28 Sep 1999 08:48:45 -0500
>
>Hi, all,
>I have a servlet that receives form data from a HTML form and then
>return another HTML page containing some regular HTML form components
>such as checkbox, radiobutton as well as an applet. My problem is that
>when this applet is loaded, I can tell the servlet is hit for the second
>time because I have something that only  can be printed out when
>reaching the servlet. If I take out this applet on this page, the
>servlet is only hit once. So I want to direct the request for this
>applet to the apache server, i.e. let apache server get this applet and
>send it to client rather than let the applet request go through the
>servlet so that servlet won't be hit the second time when loading this
>applet.
>What I tried is to write the full URL of the applet's class in the
>codebase:
><applet code="Applet1.class"
>codebase=http://111.111.1.1/applets/></applet>
>while I put Applet1.class under apache/htdocs/applets direcotry
>
>I assume if apache and servlet are listening to different ports, this
>full URL should  let apache server  take care of the applet without
>going through the servlet. But it didn't work that way. Is it because
>apache and servlet are listening to the same port?(my servlet listens to
>8080). If so, how to find out the apache port and change it(I am using NT)?
>Or
>if not, do you have any suggestions?
>thanks in advance.
>li
>
>___________________________________________________________________________
>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 Your Private, Free Email at http://www.hotmail.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