i want help regarding connecting the form to the servlet i made im making a website using dreamweaver in the contact us page i'ave made a form. This form is supposed to submitt the data about clients to the company. i'ave made a servlet,compiled,deployed and tested it
well i was giving the wrong url, i should have given ACTION = http://localhost:8080/something/Thanks after giving this my form was taking the parameters and showing it back
but now i have another problem when the user clicks the submitt button where the form is going to store? how can i retrieve that form?
any suggestions are welcomed.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35258
7
posted
0
I'm not quite sure what you mean by "where the form is stored". You can store the request parameters anywhere you want. The code you posted already accesses them, so if you want to store them permanently somewhere, there should be no problem to do so. Maybe I'm misunderstanding the question?
voilet annexton
Greenhorn
Joined: May 13, 2007
Posts: 8
posted
0
actually i want to know what happens to the inputted data when the user clicks 'submit' and how to retrive that data?
voilet annexton
Greenhorn
Joined: May 13, 2007
Posts: 8
posted
0
when i searched about it people gave me advice that i should use the cgi-script but there should be some way to do it directly by using servlet. i dont have much knowledge about cgi
Is there any way i can redirect my form data to an email address,using servlet
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35258
7
posted
0
there should be some way to do it directly by using servlet.
The code you showed above already does that.
Is there any way i can redirect my form data to an email address, using servlet
The servlet can use the JavaMail API to access an email server you have, and send a mail containing any content you like. [ May 14, 2007: Message edited by: Ulf Dittmer ]