Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Unable to compile class for JSP - Java / Web ¿ª·¢

<%@page language="java" contentType="text/html;charset=gb2312" import="java.sql.*"%>
<jsp:useBean id="db" class="wang.connectDB"/>
<% 
  String name=request.getParameter("username");
  String psw=request.getParameter("password");
  if(name==null||psw==null||name.equals("")||psw.equals(""))
  {
  session.setAttribute("error","1");
  response.sendRedirect("error.jsp");
  }
  else
  {
  try
  {
  String sql="select * from userlogin where user_name='"+name+"' and user_psw='"+psw+"'";
  ResultSet rs=db.executeQuery(sql); 
  if(rs.next())
  {
  String priority=rs.getString("user_priority");
  Session.setAttribute("username",name);
  Session.setAttribute("userpsw",psw);
  Session.setAttribute("userid",rs.getString("user_id"));
  Session.setAttribute("userpriority",priority);
  response.sendRedirect("list.jsp");
  }
  else
  {
  Session.setAttribute("error&q


Ïà¹ØÎÊ´ð£º

JSPÖеÄÖÐÎÄ×Ö·û´¦Àí

<%@ page contentType = "text/html;charset =gb2312"%>

<%!
    public String codeToString(String str)
  {
    String s =str;
  &nbs ......

Çó¾È¸ßÊÖ-----jspÖÐselectÎÊÌâ

ÔÚjspÀïÃ棬Óøöselect¼ÈÄÜÊäÈë×Ô¶¯Æ¥ÅäÓÖÄÜÏÂÀ­Ñ¡ÔñµÄ£¬ÔõôʵÏÖ£¿
²»»á¡£¡£¡£¡£¡£¡£°ï¶¥  ѧϰ¡£¡£

×Ô¶¯Æ¥ÅäʲôÒâ˼£¿¾ßÌåµã

¾ÍÊÇÄãÊäÈëÄÚÈݺ󣬺ÍÄãÄÚÈÝÏàͬѡÏîµÄ¶¼ÁгöÀ´

ÄãselectÊÇÏÂÀ­¿ò¡£¡£ ......

jsp ÖÐÂÒÂëµÄ - Java / Web ¿ª·¢

ÎҵĿª·¢µÄƽ̨ÊÇMyeclipes6.0 + tomcat5.x + mysql
ÎÒËùÓеıàÂ뷽ʽ¶¼ÊÇÓõÄUTF-8 
ÎÒÖ»ÓÃÁËStrtus¿ò¼Ü
ÔÚÒ»¸öformÖÐÈçÏÂÓõÄÊÇpostµÄÌá½»·½Ê½£º
 <form class="form" action=&quo ......

jspÁ´½Ósql2000µÄÒÉÎÊ£¿



type Exception report


message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jas ......

jspÒ³Ã涯̬ÇúÏßÉú³É

[color=#FF9900]ÎÒÏëÓÃÒ»¸öjspÒ³Ã涯̬µØÏÔʾһЩÊý¾Ý£¬ÕâЩÊý¾ÝÔÚjspÒ³ÃæÉÏÒÔÇúÏߵķ½Ê½ÏÔʾ£¬ÒòΪÕâЩÊý¾ÝÊÇʵʱµÄ·¢Ë͹ýÀ´µÄ£¬ËùÒÔÎÒÏëÇúÏßÒ²ÊÇʵʱµÄ½øÐб仯(ÀàËƹÉƱ²é¿´µÄÄÇÖÖÇúÏß)£¬¶ø²»Êǵã»÷¡®Ë¢Ð¡¯£¬¸÷Î ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ