Transfer .properties files from server to client in web application - java

I am developing web start java application. I need some initial setup files which needs to be transfered from server to client pc and are in .properties file format. I need these files before launching my application. How can I achieve this?

Related

Access FTP files from java without filezilla or winscp

I have made java web application for uploading file in ftp and in the same application user can directly open files in browser. It is running successfully when Filezilla or winscp is opened. After closing filezilla and winscp I can't access or upload files to ftp. Is there any possible solution, that I can access these files from web application without installing external application. I'm using Apache commons.net library for ftp connection.
There is JSch that is a library to access sftp in Java. I have used it before in a project and is relatively straight forward. Probably you will have to work on it to open files in a web application though.
http://www.jcraft.com/jsch/examples/Sftp.java.html

How can I host a Jar file on Tomcat

I have developed a simple management software like library,shop item management. when I compiled my java files I get a .Jar file which I want to host somewhere (tomcat etc.) so that anybody can go to that IP and add/modify the iteams. Is it possible ? I developed that software using java Jframe.
You need to create a JNLP (Java Network Launch Protocol)
The Java Network Launch Protocol (JNLP) enables an application to be launched on a client desktop by using resources that are hosted on a remote web server
See This for detail about JNLP.
Also you will get a lot of information from google about JNLP.

Upload/ Download file securely core java in desktop application

I am creating a desktop application for syncing documents of my site, what should i use to fast transfer of files from client to server and vise-versa apart from using FTP client jar.

deploying chat application on web server

I have build one chat application, which consists of server and client part & backend uses sql server 2005. Now i want to deploy my chat app on Apache web server. by converting it to exe and allow users an option to download my exe file through jsp file.
Now what i need to know is:
What exactly i need to convert in exe(is it server or client or both seperately).
Can my chat application automatically access database if i convert it into exe.
Do i need to deploy both client and server exe on web server.
I hope i am clear enough.

Create a CSV file in the local system dynamically

I am trying to create a CSV file dynamically in the user's system whoever uses my Application so that I can write data into it and then import it to an Excel.
Once I am done with my Application, I am deploying the WAR file in the Tomcat Server in the Server system. I am trying to use System.getProperty("user.home") for creating the file in a particular path. But the file is creating in the system where the App is deployed (Server system).
Different users will be using the App in different systems,so how can I get the path for creating a file in the Local Host System (user's system)?
Any help will be appreciated.
Tomcat knows nothing about the user who is opening the web page. Tomcat is using user.home of those user who started the tomcat instance. You should create custom login permissions with session and map your website accounts to local system users.

Categories