I haven't had much success with slashes by themselves in the action field
and usually you post to another page.

Did you possibly mean either just "login" to point to something named login
in the same location or did you mean to put a subfolder name in front of the
slash?
>     <form action="/login"

Margaret


-----Original Message-----
From: Geeta Ramani [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 02, 2002 3:38 PM
To: [EMAIL PROTECTED]
Subject: Re: about servletoutputstream


Ok, Julia, if the html just doesn't display, maybe it is just a minor html
problem: like not closing some tag or something. Can you post the html that
is
not getting displayed?
Geeta

Julia Zheng wrote:

> hi, there
>
> I  go to  the "web view source" tag  in the JBuilder,
> all file are there, just didn't get display.
>
> thank you very much for your help
>
> my simple html form like this:
> <HTML>
>
> <BODY BGCOLOR="#F0FFFF"> <strong>Enter your name and
> password in the input fields below.</strong>
>      <br><br>
>
>     <form action="/login" method="POST">
>    ID<br>
>
>    <input type=text name=ID value="" size=4
> maxlength=4>
>     <br><br>
>    Password<br>
>
>      <input type=password name=Password value=""
> size=6 maxlength=6>
>      <br><br><br><br>
>
>    <input type=submit value=Submit>
>    &nbsp;&nbsp
>    <input type=reset value=Reset>
>    </form>
>
> </BODY>
>
> </HTML>
>
> --- Geeta Ramani <[EMAIL PROTECTED]> wrote:
> > Julia: If the screen is empty, did you try to view
> > the source? Also, what does
> > your (entire) form tag look like?
> > Geeta
> >
> > Julia Zheng wrote:
> >
> > > Richard:
> > >
> > > I invoke my servlet via a html file. Since it
> > doesn't
> > > work properly, I didn't use any request parameters
> > at
> > > this time. When I invoke doPost(req, res) by using
> > > <method = "POST" >, nothing get display, the
> > screen is
> > > empty. also nothing in the log file.
> > >
> > > thank you so much for help. I really have no idea.
> > >
> > > julia
> > >
> > > --- Richard Yee <[EMAIL PROTECTED]> wrote:
> > > > Julia,
> > > > How are you invoking the servlet via the post
> > > > method?  It doesn't seem to
> > > > use any request parameters.  What happens when
> > you
> > > > try and invoke it via
> > > > the post method?  Have you check your server
> > logs?
> > > >
> > > > Regards,
> > > >
> > > > Richard
> > > >
> > > >
> > > > At 01:31 PM 12/31/2001 -0800, you wrote:
> > > > >thank you for your reply!
> > > > >
> > > > >yes, I do implement doPost() method.
> > > > >
> > > > >my coding:
> > > > >
> > > > >  public void doPost(HttpServletRequest
> > request,
> > > > >HttpServletResponse response)
> > > > >    throws ServletException, IOException
> > > > >     {
> > > > >        ServletOutputStream  out =
> > > > >response.getOutputStream ();
> > > > >       // Set the output data's mime type
> > > > >       response.setContentType(CONTENT_TYPE);
> > > > >      // create an input stream from fileURL
> > > > >      String fileURL =
> > > > "http://com.company.abc.xml";;
> > > > >     //Content-disposition header - open in
> > browser
> > > > >      response.setHeader("Content-disposition",
> > > > >"inline" );
> > > > >
> > > > >      BufferedInputStream  bis = null;
> > > > >      BufferedOutputStream bos = null;
> > > > >      URL url = new URL ( fileURL );
> > > > >
> > > > >      try
> > > > >       {
> > > > >         URLConnection conn =
> > url.openConnection();
> > > > >         // Use Buffered Stream for
> > > > reading/writing.
> > > > >         bis = new
> > > > >BufferedInputStream(conn.getInputStream());
> > > > >         bos = new BufferedOutputStream(out);
> > > > >         byte[] buff = new byte[2048];
> > > > >         int bytesRead;
> > > > >         // Simple read/write loop.
> > > > >         while(-1 != (bytesRead =
> > bis.read(buff, 0,
> > > > >buff.length)))
> > > > >          {
> > > > >             bos.write(buff, 0, bytesRead);
> > > > >          }
> > > > >          out.flush();
> > > > >          bos.flush();
> > > > >      }
> > > > >      catch(final MalformedURLException e)
> > > > >      {
> > > > >         cat.error ( "MalformedURLException."
> > );
> > > > >         throw e;
> > > > >      }
> > > > >      catch(final IOException e) {
> > > > >         cat.error ( "IOException." );
> > > > >         throw e;
> > > > >     }
> > > > >     finally
> > > > >     {
> > > > >         if (bis != null)
> > > > >             bis.close();
> > > > >         if (bos != null)
> > > > >             bos.close();
> > > > >     }
> > > > >
> > > > >public void doGet(HttpServletRequest request,
> > > > >HttpServletResponse response)
> > > > >    throws ServletException, IOException
> > > > >     {
> > > > >       doPost(request, response);
> > > > >}
> > > > >
> > > > >julia
> > > >
> > > >
> > >
> >
>
___________________________________________________________________________
> > > > 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!?
> > > Send your FREE holiday greetings online!
> > > http://greetings.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
> >
> >
>
___________________________________________________________________________
> > 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!?
> Send your FREE holiday greetings online!
> http://greetings.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

___________________________________________________________________________
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

Reply via email to