Tomcat (on mainframe) using JSP - creating txt file on PC?

Issues and Questions related to running Apache Tomcat on z/OS
Post Reply
dfowler4
Posts: 13
Joined: Wed Apr 12, 2006 6:26 pm

Tomcat (on mainframe) using JSP - creating txt file on PC?

Post by dfowler4 »

Hello,
Our environment: z/OS 1.4, JDK 1.3.1, JZOS 1.2.3, Tomcat 5.0.28. (Yes, I know, pitifully out of date). Tomcat is being run using JZOS on our mainframe. We have an application that is being accessed from the user's web browser. The application written using JSP and has a Java program using POI to access an excel spreadsheet from the user's PC. Part of the processing in the Java program is validation of the data on the spreadsheet. We would like to open a txt file on the users PC using Notepad presenting them the errors.

My question: Is this possible? If so, any guidance would be appreciated.
Thanks in advance,
Dave Fowler
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

I don't know of a way to directly open Notepad. I guess a custom activex control could do it.

You can send back a response with a mime attachment with a ".txt" extension and a file type of text/plain. Depending on the browser configuration, this would open the file in Notepad, or display in a plain text window.

Why not just display the errors on a page?
Post Reply