易截截图软件、单文件、免安装、纯绿色、仅160KB

关于JAVA,JSP的1个问题

最近在学JAVA,练习的时候遇到个问题,请大家帮忙看看……
主要问题是,在JSP中没有办法导入我想用的类,明明导入了包,却报:MyDAO cannot be resolved to a type
JSP代码:
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="java.util.Date"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="family.yin.senqi.dao.MyDAO"%>
<%
 Date ndate = new Date();
 SimpleDateFormat s = new SimpleDateFormat("yyyy-MM-dd");
 String recTime = s.format(ndate);
 MyDAO dao = new MyDAO();
 String indexid = dao.getIndexid(recTime);
 if(indexid==null || "".equals(indexid)){
  System.out.println("======now insert new recTime======");
  dao.insertRecTime(recTime);
 }
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>无标题文档</title>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0">
<form name="myForm" method="post" action="">
<table width='100%' height='79' border='0' cellpadding='0' cellspacing='0' align=center>
  <tr>
    <td  bgcolor='F9A859' valign='top'>
        <table width='100%' height='50' border='0' align='center' cellpadding='0' cellspacing='0' bgcolor='FBEAD0'>
          <tr>
            <td align='center' style="font-size:22px;">小型个人理财系统</td>
          </tr>
         </table>
     </td>
  </tr>
  <tr>
     <td  bgcolor='F9A859' valign='top'>
        <table width='100%' border='0' align='center' cellpadding='0' cellspacing='


相关文档:

每个初学者都应该搞懂的问题(Java)

很久没有做java的项目了,今天逛了逛CSDN的论坛,很幸运的遇到这篇文章,写的不错。有几个要点,以前理解的都不透。所以收藏了,谢谢论坛ID:为 yrjxm007 的网友。 对于这个系列里的问题,每个学Java的人都应该搞懂。当然,如果只是学Java玩玩就无所谓了。如果你认为自己已经超越初学者了,却不很懂这些问题,请将你自己重 ......

Java设计模式之:Iterator链表模式

先来了解一下链表模式的原理:
首先写一个JavaBean,内容是要添加的元素和该元素的节点。
public class NodeBean implements Serializable
{
   
    private Object data; //元素本身
    private NodeBean next; //下一个节点
   
  &n ......

【JSP学习笔记】 JSP知识点总结

一、JSP的技术原理
 
二、JSP的注释和声明
      JSP注释用于表明在程序开发过程中的开发提示,不会输出到客户端;
      <%--注释内容--%> —— JSP注释
 
     <!--注释内容--!>   —&md ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号