aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes loading a html page with data from a file Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "loading a html page with data from a file" Watch "loading a html page with data from a file" New topic
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
    
  13

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
    
  13

Or simply use the JSTL fmt tags.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: loading a html page with data from a file
 
Similar Threads
reading from .html
Quesiton regarding Java Property
Help required in implementing internationalization in JSP
What do i choose???
Unicode and Property files