This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hello, I have a feedback form which receives a input from user.When user "Submits" this data ,it shd be stored in a file.This data storage is done by a Servlet.I ve written a Servlet but getting "Not given a directory to write survey results!" In my Feedback Form I am passing a value to servlet as follows <form action="http://184.108.40.206:8001/servlets/SurveyServlet" method=POST> <input type=hidden name=survey value=Survey01Results> And I am using getInitParameter. Somthing somewhere i'm missing. Can u help me?? thanxx, Swati
I believe when a directory is not specifically given, it (assuming you are using servletrunner) tries to write it to a Tmp folder in the default directory. So just create a Tmp folder in your default directory. i.e c:\Tmp in my own case. Good luck. Bosun
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
hi swati there is no need to give physical path. u can do it this way <form method="GET" action="../servlet/servletreq">html form though directory is servlets use "../servlet/xyz" where xyz is ur servlet class file. use getParameter() method to acess form fields hope this will help u. Neeta