client uploaded files in servlets

hi ,

i save the file to config.getServletContext().getRealPath("/");

but when i try to jsp:include it adds the /applicationName before it to it's the wrong dir allso the file is saved to the plugin's metadata dir i reckon it'll be ok when deployed to the server ... ?

workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\naturepatia\check.htm

[388 byte] By [Kernel_77a] at [2007-11-27 8:40:10]
# 1

<c:set var="emailC" value="emailCookie.value" scope="request" /> should put it in the root of your web app. The root of your web app includes the applicationName. The jsp:include should work straight off.

The metadata directory is obviously where your code is being deployed to and running. The computer saves it exactly where you told it to. If it ends up being a temporary directory, then you might be in trouble saving files there if they get deleted later.

evnafetsa at 2007-7-12 20:38:29 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...