Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

Need Help with Server side scriping in Java

Fri Dec 19, 2008 8:09 pm

Ok I want to be able to save variables on my server that way I can make a game in Java but I seem to be having problems saving and I need to know if I am doing something completely wrong. I made a test that would open a saved file named (test.txt) and upload it onto a text box. The text box shows up but it is empty as the text file has words in it. Any idea what I did wrong? If you need more information I will be happy to give what info I have.

Here is the code that relates to reading the file that I am currently using:

Variant Lines = new Variant();
FileSystem.OpenInput( System.getProperty("user.dir") + "\\test.txt", 1 );
Lines.set( FileSystem.in(1).InputLine() );
Pass.setText( Lines.toString() );
FileSystem.Close( 1 );




Its been a Day and still no answer? :-(



Re: Need Help with Server side scriping in Java

Sat Dec 20, 2008 8:45 pm

Does any errors appear to you about security policy

Re: Need Help with Server side scriping in Java

Sun Dec 21, 2008 8:48 am

No, when I compiled it there were no errors.

I know it is possible to save server side otherwise games like Runescape would never work.

Runescape is made in java.

Heck Runescape saves Server and Client side! yes that means Runescape saves files on your computer. O.O

Either way I didn't know if there was a way to save server side to a text file.

Re: Need Help with Server side scriping in Java

Sun Dec 21, 2008 4:39 pm

Are u using applet .!!

Re: Need Help with Server side scriping in Java

Sun Dec 21, 2008 5:46 pm

Yeah its a java applet.

I wanted to just make a simple online game that would allow saving variables to a folder in my server. lol :-/

Re: Need Help with Server side scriping in Java

Sun Dec 21, 2008 8:13 pm

The Biggest problem you will face is the security permissions
java/applet-file-permission-t2706.html

Post a reply
  Related Posts  to : Need Help with Server side scriping in Java
 Ajax Source code to Suggest application with JSP Server side     -  
 remove space ,trim strings from left side ,right side ,both.     -  
 show figures side by side using subfigure     -  
 HTTP Server in Java     -  
 need java client/server code     -  
 Java Chat Program with client & Server     -  
 Need Help for Java Chat - one server multiple clients..     -  
 Can I display same vertically on right side?     -  
 Client-side Caching using AJAX & Javascript     -  
 Sql server or windows server question?     -