• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

send a link?

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic