good afternoon people, i am in desperate need of help! i am new to java so bare with me!
i have created a java app that gives an estimated price for services and sends all the inputted information via email to the owner of the web site. problem : the app works great in eclipse, but as soon as i get it on a web page the information never gets sent!
any help in pointing me in the right direction would be great!
james santiago wrote:thanks, so the way forward is using swing?
If you are referring to client facing UI based code, then Java cannot be directly used on a webpage (other than the obsolete Applets). Swing is used for Desktop based applications and is not web based. If you are referring to Server side code, then Java is the way to go via using Servlets and JSP.
Well, actually you can use Swing to write applets. And if you were going to write an applet, that's what you would do because AWT has been obsolete since the turn of the last century. But yes, applets are basically dead and you'd do much better to write that sort of code on the server side, like Salvin suggests.
For the record, if you wanted to send an e-mail from an applet then that would require the applet to connect to a server which is different from the server where it was loaded from. Since that's an avenue for security violations to take place it would be necessary to sign the applet using a professional-level certificate and have the user agree to accept it -- but really, it's just better to put that sort of logic on your server.
Stinging nettles are edible. But I really want to see you try to eat this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!