Re: Send a file back for saving and give it a name??

2000-11-30 Thread Joakim Olsson
Hi, you can use response.setHeader("Content-Disposition", "attachment; filename=\"MyFile.txt\"") Regards Joakim -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Duffey, Kevin Sent: den 30 november

JSP FAQ Resource Information

2000-11-30 Thread Anil K. Vijendran
This is a weekly informative posting to the jsp-interest list. Before asking questions of a general nature, please check out the resources available online to see if your question already has an answer. The best place to start

Re: a doubt on sessions

2000-11-30 Thread G.Nagarajan
There is always a default session expiry time. This can be overridden by the servlet. There is no way by which the session can be invalidated if the browser is closed. This is not possible using html and servlets alone. If you want to continuously monitor the user, you have to use an applet

Java mailing list?

2000-11-30 Thread Alan KF LAU
I wish I'd not get flame asking naive question. Is there an active java forum/mailing/IRC channel I can lure? Alan. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto

Re: downloading files over HTTPS

2000-11-30 Thread Satyaki Ghosh Dastidar
there's a utility bean at www.jspSmart.com .one of our friends over here referred about that in this forum..See if it works for u - Original Message - From: Mr. chen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 30, 2000 10:55 AM Subject: downloading files over HTTPS

Re: problem of passing the request parameters

2000-11-30 Thread Shuja Nawaz
Yep there is a problem of multipart formdata. - Original Message - From: "Muhammad Asim Ajmal" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 30, 2000 12:37 PM Subject: problem of passing the request parameters Hi all. Currently I'm facing the problem of passing the

sending a mail from JSP with JavaMail

2000-11-30 Thread Monica Minaya
Hi, We're using JavaMail for sending mail messages from a jsp page and we're having some problems with the received subject. When the subject contains written accent characters (for example: ó) the received mail has a bad formatted subject. Any ideas? Thanks. Mónica.

Multipart Encryption Problem.

2000-11-30 Thread Shuja Nawaz
I hava an upload servlet which works fine by using FORM name= "thisForm" action="Review.jsp" method=post enctype="multipart/form-data" The image is properly uploaded but the rest of the request parameters on the form are not posted to next form (Review.jsp) . This problem occurs only when I

Opening a word document file through a JSP/servlet

2000-11-30 Thread Sanjay Gomes
Hi guys Could someone help me in finding a solution for this I have a Word document file on Server. I want to open this file in a JSP Could this be done if yes so how TIA Sanjay === To unsubscribe: mailto [EMAIL

Off the Topic

2000-11-30 Thread yogesh kumar bajaj
Hi Sorry to ask this off the topic question, Does any body knows of Java library to convert TIFF files to PDF files and vice versa. Regards Bajaj === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff

javax.servlet not found in import

2000-11-30 Thread maurice coyle
Hello, Whenever i compile a servlet that has an import javax.servlet.http.*; in it, i get a "javax.servlet.http.* not found in import" error message. Is this something to do with my Servlet API, or my WebServer? sorry if this is considered off-topic. Maurice

Re: Is possible to access an HttpSession with its ID from anothersession ?

2000-11-30 Thread Peter Pilgrim
Yep Have a look at the SessionListServlet? in the "Instant Java Servlets" book (unfortunately the Servlets are 2.0 and the JSP is 1.0 but it's still a good book with loads of code). It maintains a list of session in separate hashtable class, and uses the HttpSessionBindingListerner etc. --

Re: Opening a word document file through a JSP/servlet

2000-11-30 Thread Thompson Willard
For Excel: %@ page contentType="application/vnd.ms-excel" % So for Word I believe its: %@ page contentType="application/msword" % But you'll need to do a little more to open an already made word doc. -Original Message- From: Sanjay Gomes [mailto:[EMAIL PROTECTED]] Sent: Thursday,

Re: javax.servlet not found in import

2000-11-30 Thread Krishna Kant
set ur classpath to point to the servlet.jar of ur webserver -kk maurice coyle wrote: Hello, Whenever i compile a servlet that has an import javax.servlet.http.*; in it, i get a "javax.servlet.http.* not found in import" error message. Is this something to do with my Servlet API, or my

Re: javax.servlet not found in import

2000-11-30 Thread Raghu Movva
include the following in the classpath d:\javawebserver2.0\lib\servlet.jar; where javawebserver2.0 is the roor where u install javawebserver - Original Message - From: maurice coyle [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 30, 2000 4:08 PM Subject: javax.servlet

Re: Opening a word document file through a JSP/servlet

2000-11-30 Thread Sanjay Gomes
But is it possible to read a .doc file bcoz I tried to read the file thro a BufferedReader and it reads the file in chars which in effect gets the wrong data So when the document opens up it has some illegible characters I tried the same with a txt file and it was able to read the txt perfectly

IllegalStateException

2000-11-30 Thread Berger, Richard
Hi, I am getting an 'IllegalStateException : reset() failed - data has already been sent to client' from my servlet. It is caused generally when a user hits a menu option multiple times without waiting for any response. Is there any way avoiding this occurring or stopping multiple identical

Re: finally, something interesting!

2000-11-30 Thread Antonio W. Lagnada
Hi Everyone, Instead of creating a public function. It may help to employ "polymorphism" as it was designed to be. Instantiate the base class and assign it to the object in use and call the method. Here's an example code. The output of this code is: I am the toplevel class. I am class A I

Re: sending a mail from JSP with JavaMail

2000-11-30 Thread Wilhelm Colln
Can I see your code ? W Monica Minaya wrote: Hi, We're using JavaMail for sending mail messages from a jsp page and we're having some problems with the received subject. When the subject contains written accent characters (for example: ó) the received mail has a bad formatted subject.

Debugging JAVA/JSP using Sun's Forte for JAVA

2000-11-30 Thread Richard John
Hi, I'm doing some simple development using SUNs free Forte for Java Community Edition. Quite impressed with it so far. My application uses a very thin JSP and uses JAVA classes / Beans on the server for database connections, error handling and as much as possible really. My question is: Can

Re: Urgent.. servlet with images

2000-11-30 Thread Richard John
check this out, the author has kindly left all the source code for us to view his photo collection. http://www.magiccookie.com/ -Original Message- From: Christian Hamann Linares [mailto:[EMAIL PROTECTED]] Sent: 26 November 2000 22:34 To: [EMAIL PROTECTED] Subject: Urgent.. servlet with

Re: Opening a word document file through a JSP/servlet

2000-11-30 Thread Thompson Willard
I don't think you have to transfer data from word document (that resides on the server or back end) to word document (for the client) but you might, I'm not completely sure. I'm sure JSP provides a way to grab the file instead, perhaps. What I was working on earlier was generating data (not

Question on Imaging

2000-11-30 Thread Mukka, Srikanth
Hi All, Any ideas on how to scan a image using JSP, this jsp has to talk to some methods. 2) How to save the image which is there in the frame, may be this has some thing to do with applets. Waiting for your response Bye Srikanth -Original Message- From: Mircea Moisei [mailto:[EMAIL

Re: Question on Imaging

2000-11-30 Thread Robert Chartier
Interesting.. This conversation came up a couple of days ago on an ASP mailing list. Basically, why would you want too? Remember that the JSP file exists on the SERVER, thus the scanning hardware will most likely also have to exist on the server..And if this is the case, why would you need

Re: Opening a word document file through a JSP/servlet

2000-11-30 Thread Walker, Chris
If you just want to send the Word document to Word on the client then the simplest way is to redirect to the .doc file. You could also try setting the MIME type of the response to "application/msword" and sending the document as a stream of data. If, on the other hand, you want to extract data

Re: Opening a word document file through a JSP/servlet

2000-11-30 Thread Sanjay Gomes
Hi Thomson, Well What I want to do is display a document on the server .But I dont want the URL to be displayed for security purposes, that is why I want it to be gone thro a servlet. Oherwise it is very easy since If I do a simple redirect to the file thro a JSP,it opens up the word and solves

BASE HREF= with Tomcat 3.2 ?

2000-11-30 Thread Peter Pilgrim
Hi Am I doing the base href="%= request.getContextPath %" wrong? I put this inside head .. /head of my JSP. html headtitle Dosh Tosh/title base href="%= request.getContextPath %" /head Then I wrote form action="servlet/learn.jsp.LocationController" .. /form Now my webapp

Re: Opening a word document file through a JSP/servlet

2000-11-30 Thread Mark Wutka
Use a FileInputStream instead of a FileReader to read the file, and from your servlet, call getOutputStream instead of getWriter. You almost had it except for the fact that you were using readers and writers. Mark On Thu, 30 Nov 2000, Sanjay Gomes wrote: Hi Thomson, Well What I want to do

Table data autometic scrolling ticker applets..

2000-11-30 Thread fau k
Hi all, Please let me know any one have solution for this problem.. My problem is: 1) I want to take data from a table.. by use jsp... It's ok.. there is no problem.. 2) after that I want to display this information in Autometic virtical scrolling ticker applet .. with 4 rows at

Re: Is possible to access an HttpSession with its ID from another session ?

2000-11-30 Thread Clemente Dani
You could use the application context, but data will be available for the rest of sessions. - Mensaje Original - De: Ismael Blesa Part [EMAIL PROTECTED] Fecha: Miércoles, Noviembre 29, 2000 7:54 pm Asunto: Is possible to access an HttpSession with its ID from another session ? Is

no subject

2000-11-30 Thread TravisFalls
Hello, I am creating a DBConnection Class that I am creating an instance of in a login class. In this login class I pass a dynamic query string to DBConnection. I have this deployed on a Weblogic server. (yes I registered the servlet :) )I have an index page that calls a Login servlet where

Using xml with jsp

2000-11-30 Thread Maximiliano Muller
Hello, I used this code to parse an xml file: DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = factory.newDocumentBuilder(); Document doc = docBuilder.parse(new File("ejemplo.xml")); Then I modified some nodes but the problem is that I don't

Fw: How to call a remote EJBean from a Servlet/JSP using j2ee server

2000-11-30 Thread Mircea Moisei
- Original Message - From: Mircea Moisei To: A mailing list about Java Server Pages specification and reference Sent: Thursday, November 30, 2000 1:32 PM Subject: How to call a remote EJBean from a Servlet/JSP using j2ee server Hi all, I'm back. I think something is wrong somewhere. Let

Re: Using xml with jsp

2000-11-30 Thread Daryani Santosh
Here's the code Part 1 - This class writes xml node data to a file import org.w3c.dom.*; // W3C DOM classes for traversing the document import java.io.*; /** * Output a DOM Level 1 Document object to a java.io.PrintWriter as a simple * XML document. This class does not handle every

Re: Using xml with jsp

2000-11-30 Thread Daryani Santosh
Here's the code Part 1 - This class writes xml node data to a file import org.w3c.dom.*; // W3C DOM classes for traversing the document import java.io.*; /** * Output a DOM Level 1 Document object to a java.io.PrintWriter as a simple * XML document. This class does not handle every

JSP contentType setting question in context of jsp:include action

2000-11-30 Thread Rich Carreiro
Here's the story...(using JWS 2.0...I know, I know :() I have a page, call it foo.jsp. Inside of foo.jsp is jsp:include page="fooTable.jsp" flush="true" / Both foo.jsp and fooTable.jsp have %@ page contentType="text/html" [etc] % When I look at the generated Java source, both have calls to

passing hashtables in request

2000-11-30 Thread Firat Ozcan
Is it ok to do the following: JSP A puts all its parameters into "Hashtable myHash". And then it passes this myHash object to JSP B within a URL such as "/path_to_JSP_B/B.jsp?parameter1=myHash". And then upon being called, JSP B does this: Hashtable passedHash =

Re: internationalization and localization

2000-11-30 Thread Oleg V Alexeev
Hello Misak, Thursday, November 30, 2000, 11:16:27 PM, you wrote: BM Does anyone know anything about internationalizing JSP files as JSP 1.1 BM standard expects like attaching languange code to the JSP file names (e.g. BM jspname_ja.jsp, etc.). I think struts library is good solution -

Re: Using xml with jsp

2000-11-30 Thread Kevin Citron
Why not just use JDOM ?? You could accomplish the same thing with half the code. http://jdom.org/ -Original Message- From: Daryani Santosh [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 30, 2000 1:20 PM To: [EMAIL PROTECTED] Subject: Re: Using xml with jsp Here's the code Part 1

Re: passing hashtables in request

2000-11-30 Thread Geert Van Damme
Nope, that's not OK. You can do what you describe, but not by passing the Hashtable as a parameter in the URL. Instead, put the Hashtable in the request request.setAttribute("parameter1",myHash) and redirect to the second JSP. where you can use myHash =

Re: no subject

2000-11-30 Thread Denny Pichardo
Did you make sure that the Data Source Name was in System DSN in the ODBC Data Sources. JSP uses only System DSN for it's jdbc-odbc bridge. Denny Pichardo IT Specialist Agilent Technologies From: TravisFalls [EMAIL PROTECTED] Hello, I am creating a DBConnection Class that I am creating an

Re: JSP contentType setting question in context of jsp:include ac tion

2000-11-30 Thread Krakow, Ira
Hi Rich, Remember me - Ira Krakow, ex-editor of Persfin-Digest? Fancy meeting you here!!! Are you a JSP guru? Hope all is well. Ira === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".

Re: problem of passing the request parameters

2000-11-30 Thread Duffey, Kevin
There are a couple of books on Servlets out there. I forget all the names..but one explains how to read in parameters from a multi-part/formdata post. When you change the way the post is going...request.getParameter() no longer works. Therefore, you will have to manually (in code) extract the

Re: Is possible to access an HttpSession with its ID from another session ?

2000-11-30 Thread Duffey, Kevin
Keep in mind..Servlet 2.1 deprecated this ability. Its still available for backwards binary compatibility, but its very possible the next release of Servlet (2.3) removes this ability. Don't depend on deprecated apis unless you don't plan on moving forward with newer apis. -Original

Re: no subject

2000-11-30 Thread Rama Krishna
Hello Travis, where have u declared the query1 method in ur dbconnection class, unless u declare that ,how can u call it in the ur servlet thanks I am creating a DBConnection Class that I am creating an instance of in a login class. In this login class I pass a dynamic query string to

Re: internationalization and localization

2000-11-30 Thread Boulatian, Misak
Hi Oleg, Thanks for responding. We were trying to use struts library. The only thing I don't like about it is that for every request the action servlet is instantiating (class.forname call) the object and then calls perform method of that object. So, If your action classes are not servlets

Re: internationalization and localization

2000-11-30 Thread Craig R. McClanahan
"Boulatian, Misak" wrote: Hi Oleg, Thanks for responding. We were trying to use struts library. The only thing I don't like about it is that for every request the action servlet is instantiating (class.forname call) the object and then calls perform method of that object. So, If your

textarea's and JSP's

2000-11-30 Thread Firat Ozcan
Ok , here is my problem: Given: Client is presented with a Form either pure HTML or embedded in a Jsp page. In that Form there are 20 textarea's and a submit button. Upon submitting this Form, all those 20 textarea's should be processed. Unfortunately upto here I cannot change anything. Because

Which Servlet Engine ???

2000-11-30 Thread Parvez Rishi
hi, i'm new to jsp/servlets and i'm confused which servlet engine to use with apache 1.3.12 and redhat linux 6.2. i'm using tomcat as of now, but then someone told me ApacheJserv is much better in peformance. can someone pls. guide me. Also what is the diff. between tomcat and jserv. thanks in

can i run JSP with JSDK2.1??

2000-11-30 Thread Deepak C S
hi all, can i run JSP with JSDK2.1?? If not, what else I need to run JSPs?? Thanks and Regards, Deepak C. S. Planetasia Ltd, A Microland Group Company, Bangalore,India Contact: 5522252 54 57 58 58 Extn 544 Email: [EMAIL PROTECTED]

How to pass string fromjsp to database accessing bean

2000-11-30 Thread Manish Joshi
hi all, hey i m generating sqlquery in my jsp page,to update the database i need = to pass it to bean where i will run this query on sql database,can = somebody tell me how do u pass this query to bean. thx in advance MJ ===

Re: can i run JSP with JSDK2.1??

2000-11-30 Thread subramanian Athimoolam
hi use javawebserver / or JRUN ch.. _ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com === To

Re: internationalization and localization

2000-11-30 Thread Oleg V Alexeev
Hello Misak, Friday, December 01, 2000, 1:20:11 AM, you wrote: BM Thanks for responding. We were trying to use struts library. The only thing BM I don't like about it is that for every request the action servlet is BM instantiating (class.forname call) the object and then calls perform method

Re: Result Sets

2000-11-30 Thread joydeep dasgupta
For gurus, A slightly off topics question! Does Tomcat support ejb development, or only JSP/ Servlet? joydeep === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL

Re: Result Sets

2000-11-30 Thread Nidhi Bhatia
- tomcat is not an application server === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on

Re: internationalization and localization

2000-11-30 Thread Boulatian, Misak
Hi everybody, Does anyone know anything about internationalizing JSP files as JSP 1.1 standard expects like attaching languange code to the JSP file names (e.g. jspname_ja.jsp, etc.). I appreciate the response. Thanks, Misak