-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

Has anybody used ENCTYE="multipart/form-data" with apache JServ?
Do I need to do  any setup change to apache Jserv or apache webserver for 
that. when I use multipart/form-data and test the html(with just plain input 
text field; later I will add file to upload in
that same form) it doesnot work when somebody gives my site address and  get 
to my site and enters data in the form fields and click POST data.  If i 
bring up the form directly on my server(where apache is runnig) and enter 
the data in the form and click POST data  then it works though;  I donotknow 
if i need to do any setup change to my web server / 
Jserv...Pleeeeeeeeeeeeeeease let me know if anybody has done this..
Thanks...
(Panda)...


>From: "Java Apache Users" <[EMAIL PROTECTED]>
>To: "Java Apache Users" <[EMAIL PROTECTED]>
>Subject: java-apache-users Digest #503 - 08/21/99
>Date: Sat, 21 Aug 1999 20:00:01 -0700
>
>-----------------------------
>Please read the FAQ!
><http://java.apache.org/faq/>
>-----------------------------
>
>java-apache-users Digest #503 - Saturday, August 21, 1999
>
>   CVS snapshot, Blackdown 1.2 and multiple JVMs running
>           by "Bob Tanner" <[EMAIL PROTECTED]>
>   Re: CVS snapshot, Blackdown 1.2 and multiple JVMs running
>           by "Pierpaolo Fumagalli" <[EMAIL PROTECTED]>
>   Re: CVS snapshot, Blackdown 1.2 and multiple JVMs running
>           by "Pierpaolo Fumagalli" <[EMAIL PROTECTED]>
>   JServ and Apache 1.3.9 & Servlet API 2.1.x
>           by "Reuben @ I-Cue" <[EMAIL PROTECTED]>
>   Re: JServ and Apache 1.3.9 & Servlet API 2.1.x
>           by "Craig R. McClanahan" <[EMAIL PROTECTED]>
>   file upload using servlets (checking for malacious upload)
>           by "Durga Panda" <[EMAIL PROTECTED]>
>   Re: HttpSession and Apache/JServ
>           by "TIS Official" <[EMAIL PROTECTED]>
>   Re: file upload using servlets (checking for malacious upload)
>           by "Craig R. McClanahan" <[EMAIL PROTECTED]>
>   Re: debugging servlets in JServe, on NT
>           by "Ari Halberstadt" <[EMAIL PROTECTED]>
>   Re: debugging servlets in JServe, on NT
>           by "Barry Lind" <[EMAIL PROTECTED]>
>   Re: JServ and Apache 1.3.9 & Servlet API 2.1.x
>           by "Jean-Luc Rochat" <[EMAIL PROTECTED]>
>
>
>----------------------------------------------------------------------
>
>Subject: CVS snapshot, Blackdown 1.2 and multiple JVMs running
>From: Bob Tanner <[EMAIL PROTECTED]>
>Date: Sat, 21 Aug 1999 00:56:35 -0500
>
>Just grabbed the latest snapshot out of cvs. Using RH 6.0, apache-1.3 and
>Blackdown's jdk-1.2-prev2, I now get 7 JVMs running. Everything works, but 
>I
>am wondering where I can control the number of VMs running.
>
>I was running the stock 1.0 JServ, Using RH 6.0, apache-1.3 and
>Blackdown's jdk-1.2-prev2 and only 1 VM ran.
>
>I thought this might have to do with the pooling stuff, but that is 
>disabled.
>
># WARNING: the pool has not been extensively tested and may generate
># deadlocks.
># For this reason, we advise against using this code in production
># environments.pool=false
>pool=false
>
>Any help?
>
>
>--
>Bob Tanner <[EMAIL PROTECTED]>       | Phone : (612)943-8700
>http://www.real-time.com                | Fax   : (612)943-8500
>Key fingerprint =  6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9
>
>
>----------------------------------------------------------------------
>
>Subject: Re: CVS snapshot, Blackdown 1.2 and multiple JVMs running
>From: Pierpaolo Fumagalli <[EMAIL PROTECTED]>
>Date: Sat, 21 Aug 1999 02:27:28 -0700
>
>Bob Tanner wrote:
> >
> > Just grabbed the latest snapshot out of cvs. Using RH 6.0, apache-1.3 
>and
> > Blackdown's jdk-1.2-prev2, I now get 7 JVMs running. Everything works, 
>but I
> > am wondering where I can control the number of VMs running.
> >
>That's about the time to STOP ASKING THE SAME OLD QUESTIONS...
>I personally answered to this one more than TEN TIMES NOW, go, read the
>mail archives and the FAQ prior showing your face on this list...
>
>THESE ARE NOT JVMs... THOSE ARE THREADS... Linux sucks, it makes you
>behave that what all decent operating systems call THREADS are
>PROCESSES... They're not... They're threads... Did anyone ever wondered
>why MySQL uses more than 15 processes EVERYTIME? It's because they use
>NATIVE THREADS, and the `ps` command does not understand the
>difference...
>
>Ufff....
>--
>Pierpaolo Fumagalli - IBM Center for Java Technologies
><mailto:[EMAIL PROTECTED]>   <mailto:[EMAIL PROTECTED]>
>
>----------------------------------------------------------------------
>
>Subject: Re: CVS snapshot, Blackdown 1.2 and multiple JVMs running
>From: Pierpaolo Fumagalli <[EMAIL PROTECTED]>
>Date: Sat, 21 Aug 1999 02:29:57 -0700
>
>Pierpaolo Fumagalli wrote:
> >
> > That's about the time to STOP ASKING THE SAME OLD QUESTIONS...
> > I personally answered to this one more than TEN TIMES NOW, go, read the
> > mail archives and the FAQ prior showing your face on this list...
> >
> > THESE ARE NOT JVMs... THOSE ARE THREADS...
> > [...skipped...]
> >
>It's here since more than 2 months...
><http://java.apache.org/faq/?file=274>
>
>Pier (bored and tired)
>--
>Pierpaolo Fumagalli - IBM Center for Java Technologies
><mailto:[EMAIL PROTECTED]>   <mailto:[EMAIL PROTECTED]>
>
>----------------------------------------------------------------------
>
>Subject: JServ and Apache 1.3.9 & Servlet API 2.1.x
>From: "Reuben @ I-Cue" <[EMAIL PROTECTED]>
>Date: Sat, 21 Aug 1999 14:48:56 +0200
>
>Hi there
>
>I have two questions regarding Apache JServ. Firstly, are there any plans 
>to
>incorporate the 2.1.x Servlet API and secondly
>does JServ 1.0 Final or more essentially mod_jserv work happily with the 
>new
>version of Apache (1.3.9) ?
>
>thanks
>Reuben
>
>
>
>
>----------------------------------------------------------------------
>
>Subject: Re: JServ and Apache 1.3.9 & Servlet API 2.1.x
>From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
>Date: Sat, 21 Aug 1999 08:25:10 -0700
>
>"Reuben @ I-Cue" wrote:
>
> > -----------------------------
> > Please read the FAQ!
> > <http://java.apache.org/faq/>
> > -----------------------------
> >
> > Hi there
> >
> > I have two questions regarding Apache JServ. Firstly, are there any 
>plans to
> > incorporate the 2.1.x Servlet API
>
>Considerable work has taken place on 2.1 support, along with a new
>component-based architecture and a bunch of other features.  Developers can
>play with the code, which includes a simple HTTP adapter to give you
>stand-alone servlet execution capabilities, by checking out branch 
>JSERV1_1DEV
>in the CVS tree.  The servlet support is complete and has been lightly 
>tested
>-- the connector to Apache (to talk to MOD_JSERV) has yet to be written.
>
>In June, Sun announced that they would be donating the source code to the 
>JSWDK
>servlet engine and JSP environment to the Jakarta project
>(http://jakarta.apache.org).  The code contribution should happen "real 
>soon
>now" (held up by legal issues -- once you go open source you can't go back, 
>no
>matter what AOL thinks).  At that point, the code base will be merged with, 
>and
>replace, Apache JServ.  By shortly after this happens, I would expect to 
>see
>servlet API 2.2 support, along with JSP 1.1 -- because Jakarta will be the
>official reference implementation for servlets and JSPs.
>
>
> > and secondly
> > does JServ 1.0 Final or more essentially mod_jserv work happily with the 
>new
> > version of Apache (1.3.9) ?
> >
>
>I have not tried it personally, but nothing listed in the CHANGES file 
>should
>cause any problems with running under 1.3.9.
>
> >
> > thanks
> > Reuben
> >
>
>Craig McClanahan
>
>
>
>----------------------------------------------------------------------
>
>Subject: file upload using servlets (checking for malacious upload)
>From: "Durga Panda" <[EMAIL PROTECTED]>
>Date: Sat, 21 Aug 1999 08:27:59 PDT
>
> >our site uses html  form to capture data which is send to the servlet
> >at the backend; our websrver is Apache and servlet support is through
> >Apache Jserv...
> >
> >My questions are:
> >when a visitior to our site  uploads a file to our server through the 
>HTML
> ><input name="myfile" type="file"> kind of tag;
> >1. In my servlet how I can pull the file and save in my server
> >2. How I can check it is a pure HTML (no malacious other type of 
>programs)
> >or pure image files like .jpg, .gif etc;
> >I could check for the file extension but is there any better way to
> >makesure these are pure .html, .jpg, .gif files and are not any malacious
> >programs...
> >
> >I will highly apreciate your valuable suggestions...
> >
> >Many Thanks...
> >(Durga Panda)...
>
>
>_______________________________________________________________
>Get Free Email and Do More On The Web. Visit http://www.msn.com
>
>----------------------------------------------------------------------
>
>Subject: Re: HttpSession and Apache/JServ
>From: "TIS Official" <[EMAIL PROTECTED]>
>Date: Sat, 21 Aug 1999 20:01:57 +0530
>
>****Noah wrote
> >I have been having a similar problem. It shows up for me if I open a
> >servlet, close my browser(IE5), and then open up my browser right away, 
>and
> >then try to pull up the same servlet, it creates a new HttpSession. Maybe 
>I
> >am not understanding how sessions work.
>
>The web server can truely never 'see' that it is the same person who closed
>the browser and opened a new one :).  Every session id is associated with
>the browser instance and is unique.   If the session expires or the browser
>is closed it is mandatory to make the session expire.
>
>Riaz
>
>
>----------------------------------------------------------------------
>
>Subject: Re: file upload using servlets (checking for malacious upload)
>From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
>Date: Sat, 21 Aug 1999 08:44:27 -0700
>
>Durga Panda wrote:
>
> > -----------------------------
> > Please read the FAQ!
> > <http://java.apache.org/faq/>
> > -----------------------------
> >
> > >our site uses html  form to capture data which is send to the servlet
> > >at the backend; our websrver is Apache and servlet support is through
> > >Apache Jserv...
> > >
> > >My questions are:
> > >when a visitior to our site  uploads a file to our server through the 
>HTML
> > ><input name="myfile" type="file"> kind of tag;
> > >1. In my servlet how I can pull the file and save in my server
>
>Use one of the servlets that process "multipart/form-data" input, such as 
>the
>one in Jason Hunter's book.  In fact, nothing will happen to the file data
>unless your servlet does something with it.
>
>To save it on your server, simply open a FileOutputStream (to whatever
>filename you want) and copy all of the bytes of the input data.
>
> >
> > >2. How I can check it is a pure HTML (no malacious other type of 
>programs)
> > >or pure image files like .jpg, .gif etc;
>
>Besides extension checking, you would need to know the details of the file
>format you are checking for.  For HTML, you could try to parse it with an 
>HTML
>parser, or scan for non-character data.
>
>For an image file, one thing you might try is loading it with a graphics
>library that supports that image format.  If you can load successfully, 
>then
>the format is probably OK -- otherwise the library will choke and say
>"incorrect format" or something like that.
>
> >
> > >I could check for the file extension but is there any better way to
> > >makesure these are pure .html, .jpg, .gif files and are not any 
>malacious
> > >programs...
> >
>
>After have checked the file contents and saved it, you will want to save it
>with the correct extensions -- even if the person uploading the file 
>didn't.
>The reason is that web servers are normally configured to look up the 
>content
>type on the files they serve based on filename extension (check yours to 
>make
>sure).
>
>As an example, I also allow uploading of image files to my server, but 
>Windows
>users tended to be sloppy about lower case extensions -- they would upload
>something like "IMAGE.GIF" instead of "image.gif".  They wondered why they
>couldn't see the image when they downloaded it again, until I modified my
>Apache setup to recognize both ".gif" and ".GIF".
>
> > >
> > >I will highly apreciate your valuable suggestions...
> > >
> > >Many Thanks...
> > >(Durga Panda)...
> >
>
>Craig McClanahan
>
>
>
>----------------------------------------------------------------------
>
>Subject: Re: debugging servlets in JServe, on NT
>From: Ari Halberstadt <[EMAIL PROTECTED]>
>Date: Sat, 21 Aug 1999 12:11:08 -0400
>
>"Paul Murphy" <[EMAIL PROTECTED]> wrote:
> > Hello all,
> >     Has anybody succesfully used one the most widely used Java IDE
> >tools like
> >Visual Cafe, Jbuilder, Visual Age to debug a servlet IN JServ? I've seen
> >suggestions about using jikes and emacs but I have to develop on NT(then
> >deploy on Solaris) and I've gotten used to stepping through code in a 
>nice
> >GUI IDE.
> >
> >If this can be done, I think a lot more people would buy into developing
> >with/for JServe.
>
>I used Metrowerks CodeWarrior. It can also be done with Visual Cafe. I
>should do a proper write up of the procedure. For now, I'm most familiar
>with CodeWarrior so I'll give a brief synopsis of how to get this working.
>You can follow a similar procedure for Visual Cafe (of course, with
>appropriate differences). You can also use New Atlanta's servlet debugger,
>currently a free beta download. Using New Atlanta's product is essentially
>the same as using jserv to debug, except you use their stub class as the
>main class.
>
>- using CodeWarrior Pro 5 (www.metrowerks.com), NT4SP3, 128MB (note, one
>nice thing about codewarrior is that it works well with 128MB, whereas you
>need 196 or more to work with visual cafe)
>
>- use Sun JDK1.2 -- codewarrior debugger is unstable with JDK1.1.8
>
>- use Sun's JDWP (or is it JDPA?) anyway, it's their new per-release
>interface for linking the debugger with the runtime. You don't really need
>this, but it's supposed to make the debugger be able to do more things, so
>you might as well try to get it; to install, you need to copy the dll's and
>jar's into the corresponding folders in the JDK--I know, this sucks, and
>there is a way to point to them using settings rather than overwriting, but
>this is how I did it.
>
>- see the codewarrior release notes, there's a registry setting that tells
>codewarrior which jdk to use, though this is only relevant if you have more
>than one sun jdk on your system
>
>- turn manual mode on for apache jserv, then stop and restart apache to
>make sure that any automatic-mode apache jserv is killed
>
>- define a stub class, something like
>
>public class ApacheJServ {
>       public static void main(String[] args)
>       {
>               org.apache.jserv.JServ(args);
>       }
>}
>
>- add the stub and the ApacheJServ.jar file to your project
>
>- set your prefs for the project to generate an application and set the
>application's main class to be the above stub class
>
>- enable and run the debugger -- it should work...
>
>P.S. before debugging servlets you should learn how to setup and run the
>debugger for regular Java apps. There are a whole bunch of stupid little
>things that can be confusing, and if you're also trying to do servlets then
>you may not know if it's something to with the servlet engine or just some
>odd thing in the IDE.
>
>
>-- Ari Halberstadt mailto:[EMAIL PROTECTED] <http://www.magiccookie.com/>
>
>
>
>----------------------------------------------------------------------
>
>Subject: Re: debugging servlets in JServe, on NT
>From: Barry Lind <[EMAIL PROTECTED]>
>Date: Sat, 21 Aug 1999 10:59:27 -0700
>
>
>Paul,
>
>Yes it can be done.  That is my environment (NT, JServ 1.0, Apache
>1.3.6, Visual Cafe 3.0).  I am using just the Standard edition of VC 3.0
>and am able to run/debug with JServ.
>
>I have defined a project for debugging.  In the project options I
>specified the project type as Application, and the main class as
>org.apache.jserv.JServ and then define the program arguments to include
>the name of the JServ config file (which in my case I needed to quote
>because of the spaces in the path names and escape the back slashes i.e.
>-
>"d:\\software\\Apache Group\\Apache JServ\\conf\\jserv.properties")
>
>Once I got all of the correct files included in my classpath, I can run
>JServ through the debugger.  Of course you still need Apache running to
>hand off the requests to JServ.
>
>thanks,
>--Barry
>
>Paul Murphy wrote:
> >
> > -----------------------------
> > Please read the FAQ!
> > <http://java.apache.org/faq/>
> > -----------------------------
> >
> > Hello all,
> >         Has anybody succesfully used one the most widely used Java IDE 
>tools like
> > Visual Cafe, Jbuilder, Visual Age to debug a servlet IN JServ? I've seen
> > suggestions about using jikes and emacs but I have to develop on NT(then
> > deploy on Solaris) and I've gotten used to stepping through code in a 
>nice
> > GUI IDE.
> >
> > If this can be done, I think a lot more people would buy into developing
> > with/for JServe.
> >
> > Paul.
> >
> > --
> > --------------------------------------------------------------
> > 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]
>
>----------------------------------------------------------------------
>
>Subject: Re: JServ and Apache 1.3.9 & Servlet API 2.1.x
>From: Jean-Luc Rochat <[EMAIL PROTECTED]>
>Date: Sat, 21 Aug 1999 23:33:36 +0200
>
>"Craig R. McClanahan" wrote:
> >
> > "Reuben @ I-Cue" wrote:
> >
> >
> > > and secondly
> > > does JServ 1.0 Final or more essentially mod_jserv work happily with 
>the new
> > > version of Apache (1.3.9) ?
> > >
> >
> > I have not tried it personally, but nothing listed in the CHANGES file 
>should
> > cause any problems with running under 1.3.9.
> >
>I did compile 1.3.9 with mod_ssl and mod_jserv (1.0) today without any
>problem on my linuw box.
>
>
>Jean-Luc Rochat
>
>----------------------------------------------------------------------
>End of java-apache-users Digest
>
>
>--
>--------------------------------------------------------------
>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]
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


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