struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bobd <groovedud...@yahoo.com>
Subject Re: relative path problem
Date Wed, 12 Mar 2003 18:36:09 GMT
That is my problem...how do you get the relative path
(in an action class)?  Could you provide or point me
to some example code?

OR, even an example of using
'ApplicationResources.Properties' to read in a path
value would satisfy me.

thanks


--- Stephen Smithstone <skullboxhouse@lchost.co.uk>
wrote:
> try using an action that gets the relative path then
> pass that path to the 
> bean maybe 
> 
> 
> 
> On Tuesday 11 March 2003 6:52 am, bobd wrote:
> > This is a rather silly problem I have been putting
> off
> > and now I really need to fix it...
> >
> > In my Struts app, bean classes are parsing and
> writing
> > XML files on disk.  These files are currently
> being
> > pulled in using a full directory path! (i.e.
> > "/usr/local/...)  Attempts to use relative paths
> (from
> > the location of the bean .class file) have not
> been
> > successful.  In my view layer, JSPs can use
> relative
> > paths just fine.  What's the trick?
> >
> > thanks,
> >
> > -bob
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Web Hosting - establish your business
> online
> > http://webhosting.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message