>From: Pierre-Yves Saumont<[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology."<[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: Inconsistent behaviour in Servlet output
>Date: Tue, 18 Sep 2001 15:12:13 +0200
>
>Hi,

>i am new to this group and servlets

at the moment im doin my degree in computer programming in ireland and for my final year project i have decided to do something that utilises servlets and XML but if i want to use credit cards i have to use security 

i would very much appreciate it if someone out there could tell me something about security in java and what security i wil require

colin 

>Do you mean you are developping without access to the servlet container
>console? Which servlet container do you use? If you use Tomcat or other
>container that can run in standalone mode, you should probably install a
>local copy for testing purpose. If you really can't, you can log debug info
>and read it from your server. You can do this several ways. You can write
>the debug info to disk and read it through another servlet, or you can use a
>database, or you can use a static counter to count requests, or you can
>simply add a member variable to your servlet. This is the easiest way,
>although not very reliable, but it should at least give you some info.
>
>Just add an int member to your servlet, increment it in the doGet method an
>display it in the response. This way, you will know if the servlet is called
>more than once (unless the servlet is unloaded and reloaded by the
>container).
>
>Pierre-Yves
>
>-----Message d'origine-----
>De : A mailing list for discussion about Sun Microsystem's Java Servlet
>API Technology. [mailto:[EMAIL PROTECTED]]De la part de
>Graham, Billy
>Envoyé : mardi 18 septembre 2001 14:24
>À : [EMAIL PROTECTED]
>Objet : Re: Inconsistent behaviour in Servlet output
>
>
>Hi Pierre-Yves,
>
>Excuse my ignorance, but how do you get a console window displayed when a
>servlet is running? I can do this OK with a java application but have never
>seen a console appear during servlet execution?
>
>Thanks, Billy.
>
>
>
>-----Original Message-----
>From: Pierre-Yves Saumont [mailto:[EMAIL PROTECTED]]
>Sent: 18 September 2001 10:37
>To: [EMAIL PROTECTED]
>Subject: Re: Inconsistent behaviour in Servlet output
>
>
>Hi, Billy,
>
>Did you check how many times the request is issued ? You can check this by
>including a System.out.println("....") in you servlet and look at the
>console to see how many times it is displayed for each "single" request. (I
>don't know about Adobe SVG add-in, but this was the source of a bug with the
>Adobe Acrobat plug-in).
>
>Pierre-Yves
>
>-----Message d'origine-----
>De : A mailing list for discussion about Sun Microsystem's Java Servlet
>API Technology. [mailto:[EMAIL PROTECTED]]De la part de
>Graham, Billy
>Envoyé : mardi 18 septembre 2001 09:36
>À : [EMAIL PROTECTED]
>Objet : Inconsistent behaviour in Servlet output
>
>
>Hi to all.
>
>I have a problem that I've been trying to overcome for a number of days now
>and cannot see what is going wrong - hopefully someone will be able to point
>me in the right direction. I am still fairly new to servlets so please
>excuse me if the problem I pose is basic.
>
>I have written a servlet that queries a database, extracts the data and
>writes the data to the client (MSIE5.5) as SVG (XML) where it is displayed
>as graphs by the Adobe SVG add-in (V2). All this works perfectly - most of
>the time! Sometimes the graphs do not display in the correct position,
>totally messing up the display. To source the 'bug' I have written out
>various variables to a file on the server and examined them afterwards.
>Basically some of the variables I am using as counters, to place the graphs
>on-screen, occasionally change value 'for no reason at all' that I can
>determine, certainly I am not changing them directly in my code.
>
>I use doGet() to send my data request to the servlet from a web page. This
>usually works fine, but if I edit the URL data directly, in the client
>browser address line, to select different data then the resultant graphs are
>usually not displayed correctly (i.e. the file shows the counter variables
>have incremented incorrectly). If however I then click on 'REFRESH' on the
>client browser (with the manually edited URL still in force) the new graphs
>then display OK on the second time of asking. This behaviour seems to be
>consistent. The only clue to what is going on is that the web server
>displays two messages during the erroneous manual editing phase but only one
>message during the 'good' REFRESH phase. I have displayed the messages below
>in full but I have to admit I only have basic knowledge in this area so am
>not sure what they mean. Can anyone please point me in the right
>direction???
>
>Manual Editing messages (2 off) :
>[1]:
>Tue, 18 Sep 2001 08:02:01 GMT+01 localhost/127.0.0.1 -
>80: GET
>/servlet/QSee4?Dep=BG&Ana=PLUTO&Controls=VER1&Tests=Na&Tests=CL&Tests=Ca
>HTTP/1.1
>200 OK 4080
>[2]:
>Tue, 18 Sep 2001 08:02:02 GMT+01 localhost/127.0.0.1 -
>80: GET
>/servlet/QSee4?Dep=BG&Ana=PLUTO&Controls=VER1&Tests=Na&Tests=CL&Tests=Ca
>HTTP/1.1
>200 OK 68138
>
>REFRESH message (1 off) :
>[1]:
>Tue, 18 Sep 2001 08:03:13 GMT+01 localhost/127.0.0.1 -
>80: GET
>/servlet/QSee4?Dep=BG&Ana=PLUTO&Controls=VER1&Tests=Na&Tests=CL&Tests=Ca
>HTTP/1.1
>200 OK 4080
>
>
>Many thanks in anticipation.
>
>Regards, Billy Graham.
>
>___________________________________________________________________________
>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
>
hi


Get your FREE download of MSN Explorer at http://explorer.msn.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