Try 'touch'ing the file. Mason will check for updated timestamps on components to decide whether to recompile or not. Also look through the documentation for static_source and static_source_touch_file. It may provide some insight.
smulyono wrote: > The blank page is already taking care now. J it is also because of the > objects did not change to the new one. I did change the permission on > /opt/htdocs/masonobj to the user who is running Apache but it still > won’t rewrite to the new one, I have to manually delete that object > and then all of my changes is reflected. > > Is there a “good” way to handle this? > > Thanks, > > ------------------------------------------------------------------------ > > *From:* Mark Torrance [mailto:[EMAIL PROTECTED] > *Sent:* Friday, April 25, 2008 4:16 PM > *To:* smulyono > *Cc:* mason-users@lists.sourceforge.net > *Subject:* Re: [Mason] Mason newbie Problem > > You probably need to change permissions on the /opt/htdocs/masonobj > directory so that the user your Apache is running as has permission to > write the files in that directory. > > As for the blank page, which sounds like the more serious problem, I > would look in the apache error log -- it may have some clue. > > --Mark > > On Apr 25, 2008, at 4:12 PM, smulyono wrote: > > > > Hi, > > I try this script > > Greetings, <% ("Earthlings","Martians") [rand 2] %> > > Which supposed to be showing me “Greetings, Earthlings” or “Greetings, > Martians” in randoms. But all I got is blank page. The Apache has been > configured, this is my Mason configuration > > “” > > PerlSetVar MasonCompRoot /opt/htdocs > > PerlSetVar MasonDataDir /opt/htdocs/masonobj > > PerlSetVar MasonAllowGlobals $dbh > > PerlAddVar MasonAllowGlobals $q > > PerlModule CGI > > PerlModule DBI > > PerlModule HTML::Mason::ApacheHandler > > <FilesMatch "\.mhtml$"> > > SetHandler perl-script > > PerlHandler HTML::Mason::ApacheHandler > > </FilesMatch> > > “” > > Is there something wrong? I do notice that everytime I changed the > mhtml file, I need to delete the object that is created in > /opt/htdocs/masonobj. Is there a way for me to refresh it > automatically the files changed? > > Thanks, > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________ > Mason-users mailing list > Mason-users@lists.sourceforge.net > <mailto:Mason-users@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/mason-users > >------------------------------------------------------------------------ > >------------------------------------------------------------------------- >This SF.net email is sponsored by the 2008 JavaOne(SM) Conference >Don't miss this year's exciting event. There's still time to save $100. >Use priority code J8TL2D2. >http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > >------------------------------------------------------------------------ > >_______________________________________________ >Mason-users mailing list >Mason-users@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/mason-users > > ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users