易截截图软件、单文件、免安装、纯绿色、仅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 Object[]数组转化问题

最近遇到了一个问题,就是在用到List.toArray 方法时,返回Object[]数组,直接把它强转成其他类型的会报错:
   code:  ArrayList list=getList();
             String[] s=(String[])list.toArray();
   except ......

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

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

最小生成树 Prim算法 java代码实现

 /*
*日期:2010-04-18 11:37
*开发者:heroyan
*联系方式:zndxysf@126.com
*功能:无向图最小生成树Prim算法实现案例
*/
import java.util.Scanner;
import java.util.Arrays;
import java.util.ArrayList;
public class SpanningTree{
private static int MAX = 100;
private double cost[][] = new doubl ......

Java中集合


Java提供了数种持有对象的方式,包括语言内置的Array,还有就是utilities中提供的容器类(container
classes),又称群集类(collection classes)。集合在java中非常重要,在讨论之前,先来看几个面试中的经典问题。 
1 Collection 和
Collections的区别。 
2 List, Set, Map是否继承自Collection接口。  ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号