You can easily just instantiate the Java classes to do this from within your
JSP files :

.... file header etc ..
<%
      String idName = (String) request.getParameter("idName"); // get from
http://...name.jsp?idName=Jack


     x = Filewriter/OutputStream/ etc ... java object instantiation

     s.println("The id =" + idName); // or equivalent.

%>
.... rest of file

Whatever this JSP file is called it must be set as the action of the <form>
tag or
however (javascript onsubmit() etc) you are executing the form.

Brian.


> -----Original Message-----
> From: Philip Moschovas [SMTP:[EMAIL PROTECTED]]
> Sent: 15 August 2000 18:49
> To:   [EMAIL PROTECTED]
> Subject:      Text Files
>
> I have been working with ASP and I am new to JSP.  I've used the
> filesystemobject in VBscript to create files, write to files etc.  I was
> wondering if there is a way with JSP to use the contents of a submitted
> form
> and write them to a text file.
>
> Thanks in Advance,
> Philip
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to