日期:2014-05-18  浏览次数:20645 次

servlet代码,,谁能看出什么问题??
package   Action;

import   java.io.IOException;
import   java.lang.reflect.InvocationTargetException;
import   java.sql.SQLException;

import   javax.mail.MessagingException;
import   javax.mail.internet.AddressException;
import   javax.servlet.ServletException;
import   javax.servlet.http.HttpServlet;
import   javax.servlet.http.HttpServletRequest;
import   javax.servlet.http.HttpServletResponse;
import   DB.DBBean.DBBean;
import   DB.DBModule.*;
import   DB.Table.AUser;

public   class   useradmin   extends   HttpServlet  
{
private   static   final   long   serialVersionUID   =   1L;
public   void   doGet(HttpServletRequest   request,   HttpServletResponse   response)throws   ServletException,   IOException  
{
try   {
response.setCharacterEncoding( "gbk ");
Tt(request,response);
}   catch   (Exception   e)   {
e.printStackTrace();
}
}
public   void   doPost(HttpServletRequest   request,   HttpServletResponse   response)throws   ServletException,   IOException  
{
doGet(request,response);
}
public   void   Tt(HttpServletRequest   request,HttpServletResponse   response)   throws   ServletException,   IOException,   SQLException,   AddressException,   MessagingException,   SecurityException,   IllegalArgumentException,   InstantiationException,   IllegalAccessException,   ClassNotFoundException,   NoSuchMethodException,   InvocationTargetException
{
AUser   adminuser   =   null;
AUserModule   auserModule   =   new   AUserModule(request,   response);
if(auserModule.IsLogin())
adminuser   =   (AUser)   request.getSession().getAttribute( "adminuserbb ");
else
{
return;
}
String   page   =   null;
page   =   request.getParameter( "page ");
System.out.println(page);
if(page   ==   null &n