tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denny Löfgren <denny.lofg...@technia.com>
Subject Re: where should i store a attribute
Date Fri, 31 Oct 2003 12:09:43 GMT
Hi,

I´m not sure if I understand your question, but hey, I´ll give it a shot:

To get a unique name:

String uniqueName = String.valueOf(System.currentTimeMillis());

This will give you unique name. Check out the jdk-javadoc for an 
explanation of this method.

BR,
Denny





Edson Alves Pereira <eapereira@panamericano.com.br>
2003-10-31 10:08
Please respond to "Tomcat Users List"
 
        To:     'Tomcat-User List' <tomcat-user@jakarta.apache.org>
        cc: 
        Subject:        where should i store a attribute


                 Hello folks, i´m trying to store a database connection in 
a session
attribute or request attribute, but i must choose a name that just one
thread per time would knowns. Any idea?

                 Regards,
                 Edson


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message