L
lazy_cat
Unregistered / Unconfirmed
GUEST, unregistred user!
在新版大富翁中如何看到孙老师的文章?
package com.beaconsystem.common.taglib;
import javax.servlet.http.*;
import javax.servlet.jsp.tagext.*;
/**
* Insert the type's description here.
* Creation date: (8/7/2001 1:46:01 PM)
* @author: Administrator
*/
public class AlwaysExpires extends TagSupport {
/**
* AlwaysExpires constructor comment.
*/
public AlwaysExpires() {
super();
}
/**
* Insert the method's description here.
* Creation date: (8/3/2001 3:02:37 PM)
* @return int
* @exception javax.servlet.jsp.JspTagException The exception description.
*/
public intdo
StartTag()
{
HttpServletResponse response = (HttpServletResponse)pageContext.getResponse();
response.addHeader("Cache-Control", "no-cache");
response.addHeader("Expires", "Thu, 01 Jan 1970 00:00:01 GMT");
return EVAL_BODY_INCLUDE;
}
}
package com.beaconsystem.common.taglib;
import javax.servlet.http.*;
import javax.servlet.jsp.tagext.*;
import javax.servlet.jsp.*;
import java.io.*;
/**
* Insert the type's description here.
* Creation date: (8/9/2001 5:24:37 PM)
* @author: Administrator
*/
public class RequestParameters extends TagSupport {
/**
* RequestParameters constructor comment.
*/
public RequestParameters() {
super();
}
/**
* Insert the method's description here.
* Creation date: (8/3/2001 3:02:37 PM)
* @return int
* @exception javax.servlet.jsp.JspTagException The exception description.
*/
public intdo
StartTag()
{
JspWriter out = pageContext.getOut();
HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();
try
{
out.println("<table border=/"1/">");
java.util.Enumeration e = request.getParameterNames();
while (e.hasMoreElements())
{
String s = (String)e.nextElement();
out.println("<tr><td>"+s+"</td><td>"+
request.getParameter(s)+"</td></tr>");
}
out.println("</table>");
}
catch (Exception e)
{
}
return EVAL_BODY_INCLUDE;
}
}