www.pudn.com > struts2.rar > result.jsp, change:2009-08-21,size:1440b


<%@ page language="java" import="java.util.*" pageEncoding="gbk"%> 
<%@taglib prefix = "s" uri="/struts-tags"%> 
<% 
String path = request.getContextPath(); 
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
%> 
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html> 
  <head> 
    <base href="<%=basePath%>"> 
     
    <title>My JSP 'result.jsp' starting page</title> 
     
	<meta http-equiv="pragma" content="no-cache"> 
	<meta http-equiv="cache-control" content="no-cache"> 
	<meta http-equiv="expires" content="0">     
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> 
	<meta http-equiv="description" content="This is my page"> 
 
  </head> 
   
  <body> 
     
    username:<s:property value="#parameters.username"/><!-- 相当于request.getParameter() --> 
    password:<s:property value="#parameters.password"/><!-- 相当于request.getParameter() --> 
    your name:<s:property value="#request.yourname"/><!-- 相当于request.getAttribute() --> 
     
    <!--  
	username:${requestScope.username}<br> 
	password:${requestScope.password}<br> 
	 --> 
	 
	<!-- 获取ActionContext.getContext().put("yourname","zhangsan");//相当于request.setAttribute() --> 
	<!--your name:${requestScope.yourname}--> 
	 
	<table width="40%" align="center"> 
<tr> 
<td > 
<!--<s:action name="success"></s:action>--> 
 
 
</td> 
</tr> 
</table> 
  </body> 
</html>