• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Two action in form tag's action attribute or any alternative

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I made one Jsp page of just normal form.
This form's data has been inserted into
oracle table .At the same time i want to shoot one mail to the receiver .
That receiver's email address is including
in the form only.
I want to insert the data as well sending mail in one action
If not possible,inform any alternative or resource for doing that.
Any suggestion is appreceated.
Thanks in advance

 
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Darshan,
think that the mail-sending is clearly a server-activity. You can use Java-Mail API for that purpose.
So in my opinion in your Servlet/JSP you need code which:
1. sends the mail via Java Mail Api
2. stores the Data in Oracle
The JavaScript form action mailTo is just for activating the mail-client of the users desktop. In my opinion this makes no sense.
Axel
 
Darshan Bhavsar
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks Axel,
I just want to send notifiacation mail to receipent at the time of inserting data in
table of Oracle.
Is it not possible without Javamail .
 
Evil is afoot. But this tiny ad is just an ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic