Menu

reprocessConfiguration() doesn't work

Help
javaholic
2004-06-30
2004-06-30
  • javaholic

    javaholic - 2004-06-30

    I wrote a jps file like below.
    -------------------------------------------------
    jfig.jsp
    <%@ page import="org.igfay.jfig.*" %>
    <%

        //JFig.initialize();

        String notify = JFig.getInstance().getValue("mail", "notifications", "N/A");

        JFigDictionary jd = JFig.getInstance().getConfigDictionary();
        String str = jd.getHtmlString();
    %>
    The value of notifications is <%=notify%>.<br>
    <%=str%>
    -------------------------------------------------

    and changed config.xml. and then
    -------------------------------------------------
    <%@ page import="org.igfay.jfig.*" %>
    <%
        try {
            JFig.getInstance().reprocessConfiguration();
        } catch (JFigException e) {
            System.out.println("Error occured while reprocessing configuration...");
        }
    %>
    reprocess configuration completed!!
    ------------------------------------------------

    to check out the change I've made.
    but nothing happend. jfig.jsp shows same result.

    please help me.

     
    • Bruce Conrad

      Bruce Conrad - 2004-06-30

      I just verified that this works. You can try a couple of things.
      One, run the test case.
      Two, take your jsp out of the equation. Run reprocessConfiguration() and do a getValue for a changed entry. (Much like the test case).
      Three, ensure your jsp is refreshed. Close/reopen your browser.

      I hope this helps.

       

Log in to post a comment.