A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Using JspWriter for Devloping Custom Tag
Joined: Jan 10, 2008
May 31, 2008 03:04:00
I am trying to develop custom tag for getting the circles in drop down box.
i am trying to add circles with spaces like (Andhra Pradesh,Tamil Nadu etc).
Please find this code:
out.print("<form name=circleform method=GET>");
out.print("circle:<select name=circles onchange=getCircle(this)>");
out.print("<option value=Andhra Pradesh>Andhra Pradesh</option>");
Please suggest me how to get full name if it contains spaces
Thanks & Regards
Joined: Dec 18, 2006
May 31, 2008 07:00:00
Have tried with single or double quotes i.e
"<option value='Andhra Pradesh'>Andhra Pradesh</option>"
"<option value="Andhra Pradesh">Andhra Pradesh</option>"
But in out.print method you have to esacpe the quotes with the help of \ character.
Hope,this is what you are expecting.
I agree. Here's the link:
subject: Using JspWriter for Devloping Custom Tag
page refresh problem
unable to access the attribute in any of the container scope
Tutorial on Dynamic Attributes
JSP EL not working
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014