易截截图软件、单文件、免安装、纯绿色、仅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='


相关文档:

第1章 Java基础

第1章
 
Java基础
 
1.1            Java的历史和基本原理
1.2            Java字节码
1.3            Java术语
1.4 &nbs ......

JAVA面试题及答案(基础题122道)

JAVA相关基础知识
1、面向对象的特征有哪些方面 
1.抽象:
抽象就是忽略一个主题中与当前目标无关的那些方面,以便更充分地注意与当前目标有关的方面。抽象并不打算了解全部问题,而只是选择其中的一部分,暂时不用部分细节。抽象包括两个方面,一是过程抽象,二是数据抽象。
2.继承:
继承是一种联结类的层 ......

java杂想

采用欲扬先抑的手法谈谈java:
      java没有指针只有引用是最大的败笔.正因为没有指针,很多操作要迂回婉转;垃圾收集机制也觉得是鸡肋,写个析构函数真的那么复杂吗, 有必要牺牲灵活性吗;函数调用的代价之高让人抓狂
但我还是选择了她:
      java的纯面向对象特 ......

使用Java Web对Access数据库的备注字段操作问题

        近期有个小CMS项目,由于服务器、人员以及管理制度等一系列问题,不得不采用Java Web+Access这种不伦不类的组合进行开发,期间遇到了一个小问题,那就是文章内容采用Access的“备注”类型存取时,发生自动截断的问题。也就是说,存进去10000字的文章,只能显示出3000 ......

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

先来了解一下链表模式的原理:
首先写一个JavaBean,内容是要添加的元素和该元素的节点。
public class NodeBean implements Serializable
{
   
    private Object data; //元素本身
    private NodeBean next; //下一个节点
   
  &n ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号