Hi ppl, i am having problem when i run this applet its giving me a security Errors and saying errors such as permision denied to write to a file. What i am actually trying to here get user's name, last name, email address and write that to a file and want to send the file to the server... but connecting to server is still needed to be coded but i am having problem with creating a fils i dont know so can anyone please help me... thanks
dpanal = new Panel(); fnamelabel = new Label("Please Enter Your First Name"); fname = new TextField(10); fname.addTextListener(this); lnamelabel = new Label("Please Enter Your Last Name"); lname = new TextField(10); lname.addTextListener(this); emaillabel = new Label("Please Enter Your E-mail Address"); email = new TextField(10); email.addTextListener(this); space = new Label(); note = new Label("Please Click As Many Events You Are Interested In"); fevent = new Label(""); firstevent = new Checkbox("Baseball"); sevent = new Label(""); secondevent = new Checkbox("Cricket"); tevent = new Label(""); thirdevent = new Checkbox("Football"); foevent = new Label(""); forthevent = new Checkbox("Tennis"); submitlabel = new Label(""); Button submmitbutton = new Button("Submit"); submmitbutton.addActionListener(this);
The Java sandbox rules forbid unsigned applets from reading or writing files on the local computer - which is why the Nimda virus wasn't written in Java. From what I've seen, in 99% of the cases, trying to produce a signed applet isn't worth the trouble. It's a LOT of trouble - especially since you have to do it 2 different ways. Do you REALLY need a local file? Especially when you're dealing with sensitive data like user names and passwords? You can create an HttpURLConnection, open an output stream and write to the server directly.
"privilege" comes from the Latin words for "private" and "law" (legal) and dates to feudal times. To "claim privilege" meant that you were above the laws that applied to the common people.
Weeds: because mother nature refuses to be your personal bitch. But this tiny ad is willing:
Devious Experiments for a Truly Passive Greenhouse!