关闭

Eclipse开发jsp目录结构

854人阅读 评论(0) 收藏 举报

                                   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

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:1226次
    • 积分:26
    • 等级:
    • 排名:千里之外
    • 原创:1篇
    • 转载:0篇
    • 译文:0篇
    • 评论:0条
    文章分类
    文章存档
    阅读排行