This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Websphere and the fly likes Reading Client property file from Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Reading Client property file from Server" Watch "Reading Client property file from Server" New topic
Author

Reading Client property file from Server

Venkata
Ranch Hand

Joined: Sep 07, 2007
Posts: 37
Hi everyone,

I am not sure which forum this question fits into, sorry if it is in wrong place...

I am trying to read a property file selected by client from my application.I need to load these properties into my Java object as if we read the data from property file on server side.

If i am running the server locally everything works fine since the server can locate the file i.e C:/blah...blah...but if the application is running on server it can not see/locate the file so i am getting file not found error. After browsing several web pages i tried to use FileUpload ...but for some reason i am getting BeanUtil.populate exception....

I am using method="post" enctype="multipart/form-data" in form element, initialized all primitive types, called super constructor in from bean...nothing worked...

Trying to read thefile in javascript with no luck...any opther suggestions/help greatly appreciated....

thanks
Ven
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Reading Client property file from Server
 
Similar Threads
equivalent of ENCTYPE in .net
File Not found Exception
Server-side Struts Validation
File Uploader
Writing xml data to file from TCP port