• Post Reply Bookmark Topic Watch Topic
  • New Topic

send a link?

 
pradeep arum
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
here is my scenario, when a user enters a number in the page and an email, i should run a query on the number and send out a link to that e-mail using JavaMail API, and when the user clicks the link, he should be able to see the query results he asked for in a page.can somebody explain how to do this?there is no login feature involved , can somebody throw light on this scenario.
thanks
Pradeep
 
pascal betz
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

what do you mean by "page" ? is it a webpage ?

here is a way this could work:
- have a html form for email and number entry.
- a servlet (start query servlet) reads these parameters, starts the query, generates an identifier and creates and sends an email with the link (the link points to another servlet (showresult servlet) and contains the query identifier e.g somehost/showresult?query=567567 )
- when the show result servlet is invoked, it reads the parameter and retrieves the query result (DB, Memory, file, ...) and displays it (either diretly ot preferably trough a JSP)

as you can see this involves many steps. so perhaps you should start and get back when you have more detailed questions.

pascal
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!