Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » using files in my servlet
using files in my servlet [message #157818] Tue, 24 January 2006 07:14 Go to next message
Zohar Amir is currently offline Zohar AmirFriend
Messages: 419
Registered: July 2009
Senior Member
Hello,
I need to use some files in my servlet (XSL files and others). Where should
I place them and how can I reference them in a relative way?
Thanks,
Zohar.
Re: using files in my servlet [message #157914 is a reply to message #157818] Wed, 25 January 2006 17:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: guilaida.163.com

you can place them in classes directory and reference them with
getClass().getResourceAsStream("/your file name")

"Zohar" <david_fire4@hotmail.com> д
Re: using files in my servlet [message #158015 is a reply to message #157914] Thu, 26 January 2006 06:20 Go to previous message
Zohar Amir is currently offline Zohar AmirFriend
Messages: 419
Registered: July 2009
Senior Member
Thanks.
Any way to place them somewhere in WebContent and reference them in a
similar way?

"king xiao" <guilaida@163.com> wrote in message
news:dr8d6a$d6h$1@utils.eclipse.org...
> you can place them in classes directory and reference them with
> getClass().getResourceAsStream("/your file name")
>
> "Zohar" <david_fire4@hotmail.com> д
Previous Topic:NOTICE to adopters: WTP 1.0.1 will move to use 4th field "service" qualifier in plugin ver
Next Topic:WebTools and previous org.apache.soap plugin
Goto Forum:
  


Current Time: Fri Apr 26 04:55:50 GMT 2024

Powered by FUDForum. Page generated in 0.02842 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top