随笔:6 文章:0 评论:0 引用:0
BlogJava 首页 发新随笔
发新文章 联系 聚合管理

The Directory Constructor of JSP development using Eclipse

 By: NingLee   ninglee@mail.csdn.net

        Keyword: directory structure


There are many articles that introduce how to configure the development environment, so I don’t mention it. But in my own experience, I meet the other question, it’s the directory construct of the MVC.

M-Model   In this, it refers to the JavaBeans.

V-View    In this, it refers to JSP files

C-Control   In this, it refers to Servlet.

In eclipse with the WTP plug-in or myeclipse(recommended) , you can new a web project, and then new a JSP, and new a servlet if you need, but for the Javabean, you should new a class, and in the following windows select a new package, such as myBean to store the JavaBean.

Now the directory structure is like this:


---|WEB-INF |---web.xml
   
|                |---lib

    |                |---classes|---myServlet.class (this is the servlet)

    |                               |---myBean  ---myBean.class  (this is the JavaBean)

    |JSPs

OK, Good Luck J  
                                                                                                                           June 1st, 2006

发表于 2006-06-01 11:26 李宁 阅读(146) 评论(0)  编辑  收藏
 

只有注册用户登录后才能发表评论。


网站导航:
 
CALENDER
<2006年6月>
28293031123
45678910
11121314151617
18192021222324
2526272829301
2345678

常用链接

留言簿(1)

随笔档案(6)

相册

收藏夹

My Links

搜索

  •  

最新随笔

最新评论

阅读排行榜

评论排行榜


Powered By: 博客园
模板提供沪江博客