<%
Integer hits = (Integer)application.getAttribute("counter");
if(hits==null)
{
hits=new Integer(0);
}
else
{
hits=new Integer(hits.intValue()+1);
}
application.setAttribute("counter", hits);
%>
<%= application.getAttribute("counter") %>
bu şekilde bi counter tanımlasam sayfanın başında eğer counter sıfırdan farklı ise bekle değil ise işlemi gerçekleştir şeklinde düşünüyorum ama olurmu
seneryoyu kurdum ama kodlaması nasıl olabilir. bu konuda düşüncesi olan varmı!
şimdiden herkese tşk.
|