| Author |
loading a html page with data from a file
|
priya pratheepp
Ranch Hand
Joined: Apr 02, 2008
Posts: 59
|
|
hi friends I am calling a html file from java class file.The data for the html file's text box and text area are stored in a property file. I want to display html file with the data stored in that a property file Can anybody give idea to do this.or the links..
|
 |
darshan karle
Greenhorn
Joined: May 09, 2008
Posts: 28
|
|
First tell me have you retrieved data from the properties file and stored it in the request object using setAttribute. regards darshan
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56157
|
|
|
You will need to use server-side substitution for this (e.g. JSP, php).
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Shashi Kala
Ranch Hand
Joined: Jan 27, 2008
Posts: 46
|
|
Hi Priya, As Bear said you need to use server-side substitution. But in java we can get information from properties file as shown below. See may this is useful for you. Where config.properties is a name of the properties file, sysProp.get() method is to get values from properties file. Best Regards, Shashi kala
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56157
|
|
|
Or simply use the JSTL fmt tags.
|
 |
 |
|
|
subject: loading a html page with data from a file
|
|
|