include.inc如下:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sql"uri="http://java.sun.com/jsp/jstl/sql"%>
<%--<%@ taglib prefix="myfun" uri="http://hellking.com/function"%>--%>
<%@ page contentType="text/html;charset=gb2312"language="java"%>
vote.jsp 如下:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@ include file="include.inc" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
/c:set
/c:set
/c:set
/c:set
/c:set
/c:set
三国中,你最喜欢的人物是:
候选人 | 得票率 |
曹操 | (${row.c}/${allcount}) |
孙权 | (${row.c}/${allcount}) |
刘备 | (${row.c}/${allcount}) |
诸葛亮 | (${row.c}/${allcount}) |
未确定 | (${row.c}/${allcount}) |
查看投票人信息
vote_do.jsp如下:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@ include file="include.inc" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
/c:set
/c:out
/sql:update
/sql:transaction
vote_do.jsp中${param.id}为什么取不到值?
[b]问题补充:[/b]
这次可以传过来值了,为什么传过来的是乱码呢?谢谢!