struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rafael Taboada <kaliman.fore...@gmail.com>
Subject Re: getting value from struts.properties in action class
Date Wed, 25 Mar 2009 00:06:05 GMT
Try to use ResourceBundle

On Tue, Mar 24, 2009 at 6:29 PM, Windy Hung <windy_hung@yahoo.com> wrote:

> Hi
>  I set
> "struts.multipart.saveDir=c:\\test-tmp" in my struts.properties. The
> setting is for file uploading.
> And I would like to check if the directory exists during file loading in my
> action class.
>
> Is there any easy way to get value out from struts.properties instead of
> using getClass().getResourceAsStream("struts.properties");
>
> And when is the best time to check if the directory exits? Do I do the
> checking in Interceptor instead of execute() in action class?
>
> Thanks
>
> Windy Hung
>
>
>




-- 
Rafael Taboada
Software Engineer

Cell : +511-992741026

"No creo en el destino pues no me gusta tener la idea de controlar mi vida"

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message