Hi,
I have a form with a checkbox that indicates whether a category should be active or not. The form posts to my
servlet, and I'm having trouble getting the boolean result from the form.
in my servlet, I have included java.lang.*; which includes the Boolean methods.
This is the LOC I have to read in the value from the checkbox:
boolean activated = Boolean.parseBoolean(request.getParameter("active"));
I get this error:
cannot resolve symbol
symbol : method parseBoolean (java.lang.String)
location: class java.lang.Boolean
Boolean active = Boolean.parseBoolean(request.getParameter("active"));
What have I done wrong here?? Thanks to all who reply!