Re: Close an object?

2001-11-15 Thread Andrew Perepelytsya

Java has a garbage collector that does the job for you. But if you want to
explicitly tell the collector to get rid of the object you could point it to
null:

   ArrayList() = null;

 --- "Wilson E. Lozano R." <[EMAIL PROTECTED]> wrote: >  Hi Guys,
>  I have a question, when i use a object (for example ArrayList()) into a
>  jsp page, is necesary that i detroy te object when end the session?..
>  Regards...
>  (sorry my english is not good)
>
>  ---
>  Wilson Ernesto Lozano RolOn
>  Ingeniero de Sistemas
>  Administrador WEB
>  Universidad Industrial de Santander
>  e-mail [EMAIL PROTECTED]
>  tel. 6344000 ext 2162
>  ---
>
> ===
> 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 JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

__
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music 
Charts
http://uk.my.yahoo.com

===
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 JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: offside... war file

2001-11-18 Thread Andrew Perepelytsya

 --- Joey A <[EMAIL PROTECTED]> wrote: > Hi there,
> I just downloaded some codes for this book called 'JSP Professional' and
> its
> in ".war" format. Can someone tell me how to go about opening them please
> (without having to go for a war ;-))?
>
> Thanx,

You have your answers in the mailing list. But if you still want to have a
look at the contents of the war file, you could use any archive program. I
prefer WinRar (but WinZip is as good).

Best regards. :)

__
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music 
Charts
http://uk.my.yahoo.com

===
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 JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



JavaMail question.

2001-11-18 Thread Andrew Perepelytsya

Hi folks!

I've implemented the form on the page that after being filled sends an e-mail
directly to me. The addresses are hard-coded in JSP, so the user needs only
to type in his feedback and press the send button.

Ok, it works fine, but I would be happy to have my questions answered:

1. If I want to have a separate textField for reply-to e-mail address, it
seems that I *must* have some sort of validation. (or it crashes). Is there
some built-in function for e-mail verification. I thought about JavaScript
function. Then, it is possible to validate it using regular expressions (of
which I don't have extensive knowledge yet), but this approach requires
reg-exp package in a classpath, so it's not always suitable for every site
(though it might be the most powerful solution). Consider these options. What
would the community recommend for different cases?

2. Ahh, national symbols. Though the page is in English (and it works fine
for English), I suddenly came across the problem of handling national
symbols. Let's say, we use Cyrillics. After sending the message it's not
possible to read it in mail reader. All the characters are replaced with "?".
It could be a problem with UTF and Cyrillic encoding (though my page uses
standard western ISO). Should I explicitly set the encoding in the
request/response header or that's not the point?

So, waitng for you guys (and girls) to fire and blame me :))

__
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music 
Charts
http://uk.my.yahoo.com

===
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 JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: returning values...

2001-11-18 Thread Andrew Perepelytsya

 --- Papo Napolitano <[EMAIL PROTECTED]> wrote: > Hi!
>
> If have a function that returns some kind of object (a HashMap for
> example)... How can I do to return an error value if the function fails ??
>
> Cheers,
>
> Papo
>

your function should then throw an exception (perhaps, you'll have to create
your own one to meet your specific needs, if standard ones don't do the job).
in return the caller method must have a catch block to handle the error.

read the docs for further info :)

__
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music 
Charts
http://uk.my.yahoo.com

===
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 JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Urgent : Compilation of JSPs

2001-12-28 Thread Andrew Perepelytsya
  lalit gulhane <[EMAIL PROTECTED]> wrote:

Hi All,Is it possible to compile all JSPs before starting the server ?Thanx and regards,Lalit
 in Tomcat look for the jspc compiler in the bin directory. (jspc.bat ASAIR)Do You Yahoo!?
Get personalised at My Yahoo!.