A few days ago I asked in this list about using JavaMail or sun smtp classes. I have decided to use JavaMail classes. (for the only reason that I already have the jars ,and it is not so complicated as it seemed - to me, at least). Thanks to all that made their comments. Now I need a solution for the problem of mail. The idea is simple: the user requests certain information to a servlet, which retrieves it from a DB. I want the user can obtain a plain text file with the results of the query, if he/she wants. (pressing a button,i.e.) The results are also diplayed in the page returned by the servlet. A solution is to make a call to a different servlet that performs the same query, but doesn't return a page, but sends a mail. But it requires the query be performed twice. I would like to mantain in memory the string (really big string) in the servlet, and depending on the action required, the results are sent to a writer (browser) or sent via mail, so when the user clicks the button the same servlet uses the same string. But the problem is that if I mantain the variable (not declaring it in the service method), can occur several requests from different users, so the results arn't the same. To sum up, I would like receiving some suggestions on how "remember" the results beetwen two requests from the same user (without write to disk), or some way to not use two servlet that meke the same. Thanks.
begin: vcard fn: ASC n: ;ASC org: Centro Tecnol�gico Industrial (Universidad de C�rdoba) email;internet: [EMAIL PROTECTED] x-mozilla-cpt: ;0 x-mozilla-html: FALSE version: 2.1 end: vcard
