----------------------------------------------------------------
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]

Reply via email to