I tried this code ,its working fine but i want to know a way to have a variable in the html code .......for example check the below given code.
<%
int z=2;
String s;
if (z==1)
{
%>
<a href="jaipur.jsp">Click Here</a>
<%
}
else
{
%>
<a href="goa.jsp">Click Here</a>
<%
}
%>
instead of hard coding the goa.jsp and jaipur.jsp , I want to use
<a href= "Somevariable" >Click here</a>
Where i can set the value of Somevariable as per the requirement of the program . I tried different ways but failed each time.