codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  urgent a j2ee problem  bala_in at 04:56 on Friday, August 04, 2006
 

hi to all,

im developer involved in a application calld security request system.here i need to generate a no. like ads234 as a token for each user who created a security request n also i need to increment it each time when a user made a request.pls help regarding this as soon as possible

  Re: urgent a j2ee problem  aims.thiru@gmail.com at 05:04 on Monday, August 14, 2006
 

Hi,

Try with this sample logic, Use rand class to generate some characters, and add numeric fields....

while (true) {
// if username is not unique, keep adding numbers to end until it is
//DB checking for User ID existing or not
if (!UserDAO.isThereDuplicateUsernameForId(newUserName)) {
break;
}
else {
newUserName = userName + Integer.toString(++index);
}
}



  Re: urgent a j2ee problem  bala_in at 13:31 on Tuesday, August 15, 2006
 

Hi,

thx for the reply.its really helpful thanku very much.it sloved a peice of puzzele im facing.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  problem in servlet
•  Re: installing DB_File on Perl Package Manager(PPM)
•  Re: Pass asp data to a javascript menu tree...
•  reading margins at run-time -- HELP!!!!!
•  Re: Need expertise - converting
•  Dynamic image dimensions
•  Dissolve effect for images using Javascript!
•  Javascript question
•  Re: urgent a j2ee problem


Recent Articles
What is a pointer in C?
Multiple submit buttons with form validation
Understanding Hibernate ORM for Java/J2EE
HTTP screen-scraping and caching
a javascript calculator
A simple way to JTable
Java Native Interface (JNI)
Parsing Dynamic Layouts
MagicGrid
Caching With ASP.Net


© Copyright codetoad.com 2001-2006