fixed!..thanks

On 7/12/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
i am using a small image processing library within wicket where the API only takes in File Objects. So if i must feed resource from wicket to it, what should be my best strategy please? because i realize PackagedResource may return a null handle from ServletContext.getRealPath


On 7/12/06, Ayodeji Aladejebi < [EMAIL PROTECTED]> wrote:
javax.servlet.ServletContext#getRealPath(Component.urlFor(resource)) should do the trick, isnt?


On 7/12/06, Martijn Dashorst < [EMAIL PROTECTED]> wrote:
Typically a resource resides inside a jar or a war, so there is no
file path available.

One way to look for them is to use the servlet context of your
servlet. See javax.servlet.ServletContext#getRealPath(String path)

Martijn

On 7/12/06, Ayodeji Aladejebi < [EMAIL PROTECTED]> wrote:
> Please,
>
> how do i get a File Reference to a ResourceReference. The actual File path
> on the disk?
>
> thanks
>
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
>
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>


--
Download Wicket 1.2 now! Write Ajax applications without touching _javascript_!
-- http://wicketframework.org


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to