NO.1:将字符串转换成其他类型:
eg:
String num1 = request.getParameter("num1");
int n3 = Integer.valueOf(num1).intValue();
NO.2:
html,只容许文本框读值,不许写值:
eg:
<input type="text" name="result" disabled="disabled" value="<%=rst %>"/>
NO.3:
时间输出格式:
SimpleDateFormat matter = new SimpleDateFormat(
"yyyy-MM-dd- HH:mm:ss");
out.println(matter.format(System.currentTimeMillis()));