• 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

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 .
 
Try 100 things. 2 will work out, but you will never know in advance which 2. This tiny ad might be one:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic