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

📄 list_answer.jsp

📁 我的智囊团,学习三种框架很好的源码包含分页.
💻 JSP
字号:
<%@ page contentType="text/html;charset=gbk"%>
<%@ page import="java.util.*"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<html:html lang="true">
<head>
<title>MLDN —— 我的智囊团</title>
<META NAME="Generator"
	CONTENT="Struts + Spring + Hibernate + MySQL + Tomcat + CP">
<META NAME="Author" CONTENT="李兴华">
<META NAME="Keywords" CONTENT="智囊团,SSH,tomcat,mysql">
<META NAME="Description" CONTENT="MLDN旗下网站 —— www.zhinangtuan.net.cn">
</head>
<body>
<jsp:include flush="true" page="../../inc/template.jsp">
	<jsp:param name="url" value="../../" />
</jsp:include>
<logic:present name="question" scope="request">
	问题标题:${question.title}<br>
	提问时间:${question.questiontime}<br>
	提问内容:${question.content}<br>
	悬赏分数:${question.offerscore}<br>
	提问者:${question.userid}<br>
	等级:${question.grade}<br>
	<h3>被选答案:</h3>
	<table border="0" width="80%">
		<logic:iterate id="ans" name="question" property="answers">
			<tr>
				<td>回答者:</td>
				<td>${ans.userid}</td>
			</tr>
			<tr>
				<td>等级:</td>
				<td>${ans.grade}</td>
			</tr>
			<tr>
				<td>内容:</td>
				<td>${ans.quesans}</td>
			</tr>
			<tr>
				<td colspan="2"><a
					href="userinfo.do?status=acceptanswer&aid=${ans.aid}&uid=${ans.userid}&offerscore=${question.offerscore}">采纳</a></td>
			</tr>
		</logic:iterate>
	</table>
	<a href="userinfo.do?status=acceptquestion&qid=${question.qid}">答案已够</a>
	<a href="userinfo.do?status=questiondo&qid=${question.qid}">问题已经解决</a>
	<a href="userinfo.do?status=questionno&qid=${question.qid}">无满意答案</a>
</logic:present>
</body>
</html:html>

⌨️ 快捷键说明

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