----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------


I can't tell for sure based on what I see there, but it looks to me like
you may be making call to the response printWriter method and then doing
the redirect - that's not allowed.

If that's not the case, my apologies.

At 11:51 AM 4/17/2000 -0700, Drew Smith wrote:
>----------------------------------------------------------------
>BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
>WHEN YOU POST, include all relevant version numbers, log files,
>and configuration files.  Don't make us guess your problem!!!
>----------------------------------------------------------------
>
>
>       Hey all,
>
>       Firstly - I'm still not a programmer; I just admin the machines.
>
>       I've recently implemented JServ on a development webserver - the
>production box is running JRun, and I feel this is an improvement.
>
>       The devel server is about to go into production, but there's one
>niggling bug that's holding us back, and I was hoping that someone may
>be able to shed some light on it for me.
>
>       One of the servlets we run does a database connection and reads
>information - pretty basic, but it's slightly sensitive data, so we
>require the user to login first.  This goes well, from a main page form
>that does a POST to a servlet.  The servlet (wv_checkAccount) checks the
>username and password, and does a redirect to the servlet that actually
>serves out the information.  The code looks like this:
>
><SNIPPIT>
>       ...
>                       sess.putValue("HolderName", HolderName);
>                       sess.putValue("CompanyName", CompanyName);
>                       sess.putValue("MeetingInfo", MeetingInfo);
>                       sess.putValue("BlankMgmt", BlankMgmt);
>                       sess.putValue("BlankDis", BlankDis);
>                       
>res.sendRedirect("http://sam.stocktronics.com/servlets/wv_display");
>               }
>       } catch (Exception e) {
>               out.println("** Error ** " + e.getMessage());
>       }
>   }
>}
>private boolean OpenFiles() throws ServletException, IOException {
>       boolean Ok = true;
>       int i;
>       int t;
>
>       out.println("<html><head><title>WebVote</title></head><body bgcolor=");
>       out.println("\"#FFFFFF\"><table cellspacing=\"0\" cellpadding=\"0\" ");
>       out.println("border=\"0\"><tr><td width=\"5\" height=\"9\" valign=");
>       out.println("\"top\"></td><td width=\"120\" height=\"400\" rowspan=");
>
>...
>
></SNIPPIT>
>
>(etc, etc, etc - cut for brevity)
>
>Below this line, 
>
>
>       According to our coders, this servlet should authenticate, then this
>line should redirect them to the actual servlet - however, the redirect
>simply isn't happening.  Everything else in the code works, up to and
>including the html output - but for some reason, the redirect just
>doesn't happen.
>
>       Any ideas on this?  Is this simply something I'm missing?  I don't
>code, as a rule, but I can usually read code and spot errors - and this
>looks ok to me.  
>
>       Cheers,
>       - Drew.
>
>
>--
>--------------------------------------------------------------
>Please read the FAQ! <http://java.apache.org/faq/>
>To subscribe:        [EMAIL PROTECTED]
>To unsubscribe:      [EMAIL PROTECTED]
>Archives and Other:  <http://java.apache.org/main/mail.html>
>Problems?:           [EMAIL PROTECTED]
>
>

==========================================================================
Jim Miani
ICANON Associates, Inc.
Phone: 610-313-1850 x 121
Fax: 610-313-1848

NEWZware™ is a product of ICANON Inc. - Visit our web site at
http://www.icanon.com/ for more information on ICANON, the company, and its
suite of products and services.


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to