Hi .. sorry not sure your name.
String fileName = new String("//graphics//"+req.getParameter("file"));
This resolves to /websites/mysite/graphics/filename.jpg
Since /websites/mysite is my document root.
hth
Chris
On Fri, 9 Jun 2000 23:51:13 +0700, bhnguyen wrote:
>hi,
> if i use JSW2.0 to open a file I had to add it to the servlets and config
>a the properties of it have name=a varialble x , value= path to the file,
>then in the in the my servlet I call
>public void
>t{
> path=getInitParameter("x") ;
>if(path!=null){
> filepath=path;
>....
>}
>then use filepath to open file.
>
> But how can I config in the Jserv1.1.1 I can't open the file, even I had place it
>evreywhere same directory, in the root but i don't work help me..
>
>Thanks .
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
I'm lazy.. I'd rather smile and be happy, than work my face muscles so hard
to frown... why not join me!!!
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html