• 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

email id as the hot link

 
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everybody!
I have written some servlet through which i generate a report listing the personal details such as Birthdate,Phone no.,
Email-id etc. of few people in tabulat format.
Now the problem is that my boss wants that emil-id field to be a kind of hotlink, means if the user clicks on the email-id field an Explorer window should get open with the email-id of the correponding person written already there in.
any idea???
Thanks for ur replies
Lusha
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you just want an empty window with the email id in it, you can either send it back to a simple servlet, JSP, CGI etc. which builds the simple page:
<a href='myservlet?id=fred@onlinestuff.net'>fred@onlinestuff@net</a>
or open the window and populate it using JavaScript.
But I have to ask is this what you really want. Are you sure you don't actually want a mail client to pop up when you click on the link, alowing you to compose and send a message to the email address? If this is the case, you just need to put a link as follows, and the browser will do it for you:
<a href='mailto:fred@onlinestuff.net'>fred@onlinestiff.net</a>
 
lusha tak
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Frank!
it's really Useful!
lusha
 
lusha tak
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Frank!
it's really Useful!
lusha
 
Get me the mayor's office! I need to tell her about this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic