aswam1975
asked on
jsp out.println
I have a JSP which has a bunch of output statements that creates textboxes etc.
I know it is bad design - however,it is code that I inherited.I wold like to add an option list with US selected.,but I am getting an error.
out.println("<tr><td width=\"30\">"<SELECT NAME=\"country\" id=\"country\" class=\"dataInputs\">");
out.println("<option value='us' selected='selected' ">USA");
out.println("<option value='ca'">CANADA");
out.println("</select>");
I thik I have not closed the tags properly- can someone point me to the right place?
I know it is bad design - however,it is code that I inherited.I wold like to add an option list with US selected.,but I am getting an error.
out.println("<tr><td width=\"30\">"<SELECT NAME=\"country\" id=\"country\" class=\"dataInputs\">");
out.println("<option value='us' selected='selected' ">USA");
out.println("<option value='ca'">CANADA");
out.println("</select>");
I thik I have not closed the tags properly- can someone point me to the right place?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.