标签:
In computing, Java Web Start (also known as JavaWS, javaws or JAWS) is a framework developed by Sun Microsystems (now Oracle) that allows users to start application software for the Java Platform directly from the Internet using a web browser. Some key benefits of this technology include seamless version updating for globally distributed applications and greater control of memory allocation to the Java virtual machine.
<%
//java代码
String username="admin";
%>
<%=username%>
<%@ page language="java" contentType="text/html;charset=utf-8" %>
<%@ include file="login.jsp" %>
<%@ taglib uri="标签库URI" prefix="标签前缀" %>
<jsp:include page="login.jsp" flush="true">
<jsp:param name="username" value="admin" />
</jsp:include>
<jsp:forward page="success.jsp">
<jsp:param name="username" value="admin" />
</jsp:forward>
<jsp:useBean id="user" class="org.info.User" scope="page"/>
scope包括page,request,session,application
<jsp:setProperty name="user" property="username" value="admin"/>
或者
<jsp:setProperty name="user" property="username" param="username"/>
<jsp:getProperty name="user" property="username" />
得到String类型的值
| ————————————- | —————————– |
| void setContentType(String name) | 设置响应内容的类型和字符编码 |
| void sendRedirect(String url) | 重定向到指定的URL资源 |
方法 | 作用 |
void setContentType(String name) | 设置响应内容的类型和字符编码 |
void sendRedirect(String url) | 重定向到指定的URL资源 |
方法 | 作用 |
void setAttribute(String name,Object value) | 以键值对的方式存储application域属性 |
Object getAttribute(String name) | 根据属性名获取属性值 |
void removeAttribute(String name) | 根据属性名从application域移除属性 |
<%=this.getServletInfo()%>
<%
exception.printStackTrace(response.getWriter());
%>
<jsp:useBean>
<jsp:setProperty>
<jsp:getProperty>
标签:
原文地址:http://blog.csdn.net/qq_32768743/article/details/51348336