⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 add.jsp

📁 本程序是用java基于jsf架构编写的测试jsf程序样例
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=GB18030"
    pageEncoding="GB18030"%>
    
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

<!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=GB18030">
<title>求和</title>
</head>
<body>
<f:view>
	<h:form>
		<h:panelGrid columns="3">
			<h:outputLabel value="请输入第一个数 :"></h:outputLabel>
			<h:inputText id="first" value="#{addbean.first}"></h:inputText>
			<h:message for="first"></h:message>
			<h:outputLabel value="请输入第2个数 :"></h:outputLabel>
			<h:inputText id="second" value="#{addbean.second}"></h:inputText>
			<h:message for="second"></h:message>
		</h:panelGrid>
		<h:commandButton value="求和" action="#{addbean.add}"></h:commandButton>
	</h:form>
</f:view>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -