Skip to content

Commit

Permalink
include stat.jsp
Browse files Browse the repository at this point in the history
  • Loading branch information
kenu committed May 2, 2012
1 parent 76e890f commit 30c3fae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
7 changes: 1 addition & 6 deletions gawibawibo/WebContent/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ form {border: 1px solid #ddd;}
int computerChoice = Play.getComputerChoice();
String judgement = Play.judge(choice, computerChoice);
Play.save(choice, computerChoice, judgement);
Play.load();
%>
----
<strong>당신: <%= Play.items[choice] %></strong>
Expand All @@ -29,14 +28,10 @@ form {border: 1px solid #ddd;}
<div id="judgement">
<%= judgement %>
</div>
<div>
TOTAL: <%= Play.getTotal() %>
(<%= Play.getWin() %><%= Play.getEven() %><%= Play.getLose() %>
승률: <%= Play.getRate() %>%)
</div>
<%
}
%>
<jsp:include page="stat.jsp"></jsp:include>
<form>
선택하세요:
<input type="radio" name="choice" value="0" id="0"> <label for="0">가위</label>
Expand Down
10 changes: 10 additions & 0 deletions gawibawibo/WebContent/stat.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<%@page pageEncoding="utf-8" %>
<%@page import="net.okjsp.gawi.Play"%>
<%
Play.load();
%>
<div>
TOTAL: <%= Play.getTotal() %>
(<%= Play.getWin() %><%= Play.getEven() %><%= Play.getLose() %>
승률: <%= Play.getRate() %>%)
</div>

0 comments on commit 30c3fae

Please sign in to comment.