help, i am just wondering why am i having an error with this program....

package hall;

import java.io.*;

import javax.servlet.*;

import javax.servlet.http.*;

import java.util.*;

/** Simple servlet that reads three parameters from the form data.

* Part of tutorial on servlets and JSP that appears at

* http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/

* 1999 Marty Hall; may be freely used or adapted.

*/

public class ThreeParams extends HttpServlet {

public void doGet(HttpServletRequest request,

HttpServletResponse response)

throws ServletException, IOException {

response.setContentType("text/html");

PrintWriter out = response.getWriter();

String title = "Reading Three Request Parameters";

out.println(ServletUtilities.headWithTitle(title) +

"<BODY>\n" +

"<H1 ALIGN=CENTER>" + title + "</H1>\n" +

"<UL>\n" +

" <LI>param1: "

+ request.getParameter("param1") + "\n" +

" <LI>param2: "

+ request.getParameter("param2") + "\n" +

" <LI>param3: "

+ request.getParameter("param3") + "\n" +

"</UL>\n" +

"</BODY></HTML>");

}

public void doPost(HttpServletRequest request,

HttpServletResponse response)

throws ServletException, IOException {

doGet(request, response);

}

}

the error is something like,

ThreeParams.java:20:cannot find symbol

symbol: variable ServletUtilities

location:class hall.ThreeParams

out.println(ServletUtilities.headWithTitile(title) +

^

something like that, i do know that the package hall could be the problem, but where can i find that package and where do i put it. thank you. and about this program(that i saw in http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/), well, i really need it as a reference, that is why i need to work on this one. once again, thank you...

[1951 byte] By [ii_makubex_iia] at [2007-10-2 20:57:31]
# 1
plus an additional problem, for example a program from php sent an url as request, for example http://something.in.here=my+name+is\something...is there a way in which i can send that params "my","name","is", "something" to the database, thank you for helping me out....
ii_makubex_iia at 2007-7-13 23:42:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

hi :-)

put your ThreeParams in the folder hall :-)

to resolve the issue in package,

but for ServletUtilities, im not sure where they got that,

i dont see in any part of the code that import or create an instance

for ServletUtilities :-( better to check the code for typo error

or contact the author regarding ServletUtilities.

regards,

jie2eea at 2007-7-13 23:42:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...