Link to home
Start Free TrialLog in
Avatar of aswam1975
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?
ASKER CERTIFIED SOLUTION
Avatar of stanscott2
stanscott2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial