html body inside if condition

Posted by gautam on Stack Overflow See other posts from Stack Overflow or by gautam
Published on 2010-05-04T13:58:51Z Indexed on 2010/05/04 14:48 UTC
Read the original article Hit count: 267

Filed under:
|

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:

© Stack Overflow or respective owner

Related posts about html

Related posts about body