File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regarding filerenameing when server is running

 
satya saha
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am calling a method of my class as a remote method from flex and i am using blazeds .
my method is like this

String path="c://JStudio//JStudio";
public String editFactBook(String factStoreName,String oldFactBookName,String newFactBookName)
{

String class name =path+factStoreName+"\\"+oldFactBookName + ".odt";
String newClassName =path+factStoreName+"\\"+newFactBookName ;
try
{
File file =new File(class name);
File new file =new File(newClassName);
if(file.exists())
{
file.rename to(new file);

}
else
{
return "no such file";
}
}
catch(Exception e)
{
e.printStackTrace();
}
return newFactBookName;
}
It is working fine using eclipse that means i am calling this method from main.
it is not working in server side.
can anybody please help me.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic