summaryrefslogtreecommitdiffstats
path: root/sandbox/lresende/sca-1.x/samples/calculator-jsf-webapp/src/main/webapp/calc_jsf.jsp
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/lresende/sca-1.x/samples/calculator-jsf-webapp/src/main/webapp/calc_jsf.jsp')
-rw-r--r--sandbox/lresende/sca-1.x/samples/calculator-jsf-webapp/src/main/webapp/calc_jsf.jsp27
1 files changed, 27 insertions, 0 deletions
diff --git a/sandbox/lresende/sca-1.x/samples/calculator-jsf-webapp/src/main/webapp/calc_jsf.jsp b/sandbox/lresende/sca-1.x/samples/calculator-jsf-webapp/src/main/webapp/calc_jsf.jsp
new file mode 100644
index 0000000000..37985724d0
--- /dev/null
+++ b/sandbox/lresende/sca-1.x/samples/calculator-jsf-webapp/src/main/webapp/calc_jsf.jsp
@@ -0,0 +1,27 @@
+<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%><%@taglib
+ uri="http://java.sun.com/jsf/html" prefix="h"%><%@ page language="java"
+ contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Insert title here</title>
+</head>
+<body>
+
+<f:view>
+ <h:form>
+ <h:inputText value="#{calculator.number1}" size="5"></h:inputText>
+ <h:selectOneMenu value="#{calculator.operation}">
+ <f:selectItem itemValue="+" />
+ <f:selectItem itemValue="-" />
+ <f:selectItem itemValue="*" />
+ <f:selectItem itemValue="/" />
+ </h:selectOneMenu>
+ <h:inputText value="#{calculator.number2}" size="5"></h:inputText>
+ <h:commandButton value="=" action="#{calculator.callService}"></h:commandButton>
+ <h:outputText value="#{calculator.result}"></h:outputText>
+ </h:form>
+</f:view>
+</body>
+</html> \ No newline at end of file