html body inside if condition
- by gautam
Hi,
i have two different bodies for different conditions.
can i do like this....
<%
if(yes)
%>
<body onload="JavaScript:timedRefresh(120000);">
<%
}
else
{
%>
<body>
<%
}
%>
Please help me...
Thanks in advance..
I want to compare my title in if condition how can i do???
currently i am doing like this:
<head>
<title>
<tiles:getAsString name="title"/>
</title>
</head>
<%
if(%><tiles:getAsString name="title"/><%.equals("Trade Confirmation Analysis Screen")) %>
<body onload="JavaScript:timedRefresh(120000);">
<%else
{
%>
<body>
<%
}
%>
Its giving me error..Unable to compile class for JSP: