Eclipse开发jsp目录结构

                                   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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值