jsp解析
启动网页:http://localhost:8080/ jsp指令:<%@ page language="java" import="java.util.*"pageEncoding="UTF-8"%> jsp中的内置对象 <form method="post" action="hao.jsp"> 一:request内置对象的方法 解决中午乱码问题: request.setCharacterEncoding("utf-8"); 获取页面数据: String name=request.getParameter(""); String[] names=request.getParameterValues(""); 转发,可以保留值:
0
223
4KB
2018-09-24
15