Just pop it into the Quartz scheduler.  I've read about it and remember
someone saying there was a Struts PlugIn for it.  You could have it check
hourly or exactly 24 hours after a registration.

See: http://www.opensymphony.com/quartz

And, should you want a pre-made plugIn....
http://demo.jgsullivan.com/struts/QuartzPlugIn.html

Regards,
David

P.S. I was an information man for the day and now I'm out of ideas.  Somone
will have to take over as I've responded to too many emails on this list
today. :)

-----Original Message-----
From: struts Dude [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 12:14 AM
To: Struts Users Mailing List
Subject: Help on Action implementing thread for checking user
registration thru email?



Hi,

I am going to write an app that allow user to register in a JSP page,
press submit, then user redirected to a new page telling user
to check email, click on a link on email, redirected to a page,
then commit user  info to database. If user doesn't do this
within 24 hrs, then delete user info.

I have no problem sending email with a unique link made up
of unique username plus some random generated digits and characters.

I was wandering if anyone has done this and give me some tips.

The way I see it is commit user's registration detail to database 1st
when user click submit, then send email (using jarkata mailer tag).

Then delete user record if user don't click/visit link on dynamically
generated link within 24 hr from email. The link would have parameter
that can tell an Action who is visiting.

Problem:
Now, how do I write an Action that will check back latter after 24 Hrs
for an user?? Using thread in Action??? Dunno if that's a good idea.

The way I am going to do this is, have an Action implement
thread, for evey user registration, set wake up (check back)
interval after 24 hr. Every user visiting this Action will wake
up Action and do validation. After that, Action goes back to sleep.

Is this a good idea??

Thanks







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to