Results 1 to 2 of 2
  1. #1
    jaga is offline Member
    Join Date
    Apr 2008
    Posts
    1
    Rep Power
    0

    Default How to getvalue from properties file into JSP

    Dear All

    I want load Properties values into my JSP Page and i want reload values after applied new values on the properties file.

    Advance ThanX

    BY
    Jaga

  2. #2
    sanjeevtarar's Avatar
    sanjeevtarar is offline Senior Member
    Join Date
    Apr 2008
    Location
    Jaipur(India)
    Posts
    318
    Rep Power
    7

    Default

    hi

    java.util.Properties property = null;

    String propFile = "C:/temp/AppProperties.property";
    FileInputStream fis = new FileInputStream(propFile) ;
    property =new Properties();
    property.load(fis);

    // getting file name from properties
    String fileName = property.getProperty("SAVE_FILE_NAME");


    Sanjeev

Similar Threads

  1. Reading a properties file
    By peiceonly in forum New To Java
    Replies: 7
    Last Post: 05-06-2010, 05:17 PM
  2. Reading a properties file using resource bundle.
    By rudrakanth in forum New To Java
    Replies: 1
    Last Post: 02-27-2009, 12:23 PM
  3. Taking input from Properties File
    By bugger in forum New To Java
    Replies: 4
    Last Post: 05-07-2008, 09:30 AM
  4. Replies: 1
    Last Post: 02-16-2008, 03:33 AM
  5. doubt about language .properties file
    By tommy in forum Advanced Java
    Replies: 1
    Last Post: 07-31-2007, 02:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •