关于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没有指针只有引用是最大的败笔.正因为没有指针,很多操作要迂回婉转;垃圾收集机制也觉得是鸡肋,写个析构函数真的那么复杂吗, 有必要牺牲灵活性吗;函数调用的代价之高让人抓狂
但我还是选择了她:
java的纯面向对象特 ......
Bean Serializable Interface 的接口让BEAN可以串行化,将其变成一个可保存为以后使用的二进制流。当一个BEAN被系列化到磁盘上或者其他任何地方,其状态被保存起来,其中的属性值也不会改变。在BEAN的规范中,JSP并没有要求BEAN实现Serializable接口。但是,如果您希望自己控制您所创建的组件的serialization进程,或者您想 ......
这几天的学习 让我感到发懵,老师讲的很多,自己就根本无法去思考,只能一个劲的往里听,自己代码也不怎么会,老师讲过的能有个印象, 不过今天还好,讲到了Java基础加强,稍微感觉好点,并不是很难理解了,今天就开始今天课程的复习了,要想进步,只有自己艰苦努力啦!
确 ......
先来了解一下链表模式的原理:
首先写一个JavaBean,内容是要添加的元素和该元素的节点。
public class NodeBean implements Serializable
{
private Object data; //元素本身
private NodeBean next; //下一个节点
&n ......
一、JSP的技术原理
二、JSP的注释和声明
JSP注释用于表明在程序开发过程中的开发提示,不会输出到客户端;
<%--注释内容--%> —— JSP注释
<!--注释内容--!> —&md ......