Servlet-Servlet HTTPS

2002-08-15 Thread Gardner Monte
I have a Servlet which needs to communicate with another servlet which will probably be on another server somewhere. The data communicated needs to be secured in some way so that the bad guys can't read it :) We're thinking that using a https connection will be the most convenient way, but when I

redirect and sessions

2002-08-10 Thread Gardner Monte
I just found something weird. I'm creating a JSP app, using IE 5.5 to view it. In one page, I was writing an object to the session variable like so request.getSession(true).setAttribute("user",user); response.sendRedirect("portfolio.jsp"); then, in portfolio.jsp, the next page, I was trying

JSP single-threaded

2002-08-09 Thread Gardner Monte
Is there a way to have a JSP page compile to a servlet that implements the single-threaded model? --Monte Glenn Gardner ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERV

Re: response.sendRedirect();

2002-08-01 Thread Gardner Monte
If I want to prevent further execution after a redirect then, would simply using a return statement be the best thing to do? --Monte Glenn Gardner ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body

response.sendRedirect();

2002-08-01 Thread Gardner Monte
does issuing a call to response.sendRedirect() prevent the rest of a servlet or JSP page from beeing executed? --Monte Glenn Gardner ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message

Re: Action Servlet??

2002-07-31 Thread Gardner Monte
An easy, but perhaps less flexible way to do this, atleast for HTML files, is to write all your html files as .jsp files, and call the same method in each of those .jsp files. --Monte Glenn Gardner On Wed, 31 Jul 2002, Wil Moore III wrote: > I wanted to create a web app that performs some acti

Re: newbie question: Little help

2002-07-23 Thread Gardner Monte
Maybe this is oversimplisitic, but have you checked to make sure that you spelled all your class names right, including capitalization. iF yOu get Your Capitals wRong, it will Mess things uP :). --Monte Glenn Gardner On Tue, 23 Jul 2002, h t wrote: > Hi, > > I have the problem with running

Re: file type in html

2002-07-23 Thread Gardner Monte
use javascript. forms have an onsubmit() method which, if it returns false, will prevent submission of the form. --Monte Glenn Gardner On Tue, 23 Jul 2002, [iso-8859-9] Serdar BOZDAƐ wrote: > hi, > i have an html page which has a form. in this form there is an input whose type is >file > s

File Permissions in Servlet

2002-07-18 Thread Gardner Monte
I have a servlet application that allows users to upload files to the Web-Server. In some cases they may have to upload the same file again, thus overwriting the original one. So, when my Servlet reads the file from input and then writes it to the Server hard disk, it needs to set the file Permi

Re: servlet

2001-12-07 Thread Gardner Monte
I'm not sure what you mean, but I think that each time you make a connection to a servlet via a web browser or application, the servlet container creates a seperate thread in which the servlet is executed to respond to that request. It's possible to have several 'instances' of you servlet runnin

File length

2001-12-02 Thread Gardner Monte
What is the best way for a servlet to find out the number of bytes in a file on the server? --Monte Glenn Gardner ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-IN

Re: Packages

2001-11-30 Thread Gardner Monte
gt; > - Original Message - > From: "Gardner Monte" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, November 29, 2001 7:06 PM > Subject: Re: Packages > > > > The javax.com and javax.comm.http are packages of Source files that

Bouncing Integers: Solution

2001-11-30 Thread Gardner Monte
I've discovered the two errors I made, and the Application / Servlet combination works now. First, like Peter Huber said, the 'outermost' outputStream should be the one to be flushed and closed, and also, the Server side of the program has to have the line response.setContentType("application/octe

Re: Packages

2001-11-29 Thread Gardner Monte
The javax.com and javax.comm.http are packages of Source files that have been compiled and placed in a directory called the CLASSPATH. That directory is where the Java Virtual Machine looks when it tries to 'import' something. You have to find out where your classpath is, and then put the Oreilly

Bouncing Integers

2001-11-28 Thread Gardner Monte
I'm trying to write an application consisting of a client side application and a Server side Servlet. To start out, the client is supposed to send an integer to the Servlet, and then the Servlet is supposed to send an Integer back. this is the important part of the service method my Servlet is u

Re: File reader

2001-11-28 Thread Gardner Monte
If I understand your question correctly, you want to read certain parts of a file without going through the whole thing. Have you looked at the RandomAccessFile class? It allows access to the bytes at a specific index in a file. --Monte Glenn Gardner On Wed, 28 Nov 2001, Javier Alonso wrote

Re: DataOutputStream

2001-11-27 Thread Gardner Monte
eral purpose > tool to send arbitrary sets of variables with their values. Using schema, > you can even type them on the sending side. > Dave > > > -----Original Message- > From: Gardner Monte [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 27, 2001 4:02 PM > To: [

DataOutputStream

2001-11-27 Thread Gardner Monte
I'm planning a series of communications between a Java Application, and a Java Servlet. The client needs to send a integer, then two different strings to the Servlet. What I'm thinking of doing is using dataInputStreams and DataOutputStreams and their corresponding writeInt, and writeChars method

MultiPartParser - Bizzare looping

2001-11-17 Thread Gardner Monte
I'm running the following Code, mostly copied from the Demo for the MultiPart Parser from Servlets.com public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); response.setContentType(

Re: Stream XML from servlet to applet

2001-11-15 Thread Gardner Monte
es in the archive as well, > with no obvious solution. > > Thanks anyway for your help, > Dave > > -Original Message- > From: Gardner Monte [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 15, 2001 10:58 AM > To: [EMAIL PROTECTED] > Subject: Re: Stream XML f

Re: CGI File Upload

2001-11-15 Thread Gardner Monte
Like the others said, there's a good package for this at www.servlets.com. I have a small servlet application that uses this package to manage an on-line picture scrapbook. If you want, I'll send you the code so you can see how the MultiPart Parser works. --Monte Glenn Gardner On Thu, 15 Nov 2

Re: Stream XML from servlet to applet

2001-11-15 Thread Gardner Monte
Well, I don't know anything about XML, but it seems if you have a really long string, and the printWriter works ok, then you should just use a printwriter to write each character on the server-side, then use a printReader on the client side to read each character. That's the kind of thing printWr

unexpected end of Part

2001-11-11 Thread Gardner Monte
Hello, I am using Jason Hunters MultiPartParser to allow users to upload image files to an on-line Scrapbook. Because each user has his own directory to place pictures in, the directory to save the picture in is specified in the form inputs. Specifically, I have a form with these input paramete

HTML utilities

2001-10-05 Thread Gardner Monte
Does anyone know of some good Utility classes for creating HTML document strings? I'm kind of getting tired of coding all the HTML myself. --Monte Glenn Gardner ___ To unsubscribe, send email to [EMAIL PROTECTED] and includ

Re: Forwarding Request and Response

2001-10-05 Thread Gardner Monte
I don't think you can, but Maybe you could open an HTTPConnection to that Servlet, send the information, and read it's response. Just an Idea?? --Monte Glenn Gardner On Fri, 5 Oct 2001, Arvind wrote: > Hi, > > Is it possible to send request and response objects of a sevlet in one >web

Re: URGENT : Passing Object to servlet - InvalidClassException

2001-10-04 Thread Gardner Monte
That serialVersionID thing happens when you try to serialize an object using an older version of it's class. Make sure that you are using identical class files for serialization and deserialization. --Monte Glenn Gardner On Thu, 4 Oct 2001 [EMAIL PROTECTED] wrote: > Hi, > > I have a little pr

Re: hi

2001-10-04 Thread Gardner Monte
Could that be the beginning of a new branch of philosophy?? Some kind of Christian/OOP hybrid :) --Monte Glenn Gardner On Thu, 4 Oct 2001, ELCIN HAKTANIR wrote: > how does the streaming server get requests? > > try to make your .java behave like a request for the streaimg server so > that your

MultiPart/form-data part sequence

2001-10-03 Thread Gardner Monte
when processing a MultiPart/form-data request, is it safe to assume that the data parts will be submitted in the order that they appear on the form? --Monte Glenn Gardner ___ To unsubscribe, send email to [EMAIL PROTECTED] a

Re: Fw: Synchronized classes ...

2001-10-02 Thread Gardner Monte
I'm not sure, but maybe you could have a 3rd servlet which could implement the singleThreadModel, and have the responsibility of synchronizing acces to the database. Just an idea. --Monte Glenn Gardner On Tue, 2 Oct 2001, Nguyen Van Hoang wrote: > Tks Richard, but I must have a synchroniz

Re: Instantiation Problem

2001-10-02 Thread Gardner Monte
It looks like your are declaring a private variable inside a method. Private modifiers are only allowed on class variables. try taking out the private keyword. --Monte Glenn Gardner On Mon, 1 Oct 2001, Ashur M. Albertson wrote: > I am trying to make an instance of one of my classes in a servl

File Uploading via HTML forms

2001-09-30 Thread Gardner Monte
On an HTML form, there's an input type called 'file', that lets the user select a file on his (Client-side) computer to upload to a server side program. Is there a way to deal with this kind of submission in a Java Servlet. Maybe some kind of fileInputStream or something?? --Monte Glenn Gardner