1 / 6

使用 NetBean IDE 开发

使用 NetBean IDE 开发. 启动 NetBean IDE 点击“文件”  “ 新建项目 ” 在“选择项目”模板中 “类别”窗格中选“ java Web ” “项目”窗格中选“ Web 应用程序”. 接下来 ……. 按照你的选择填写各栏目 “下一步”  “下一步” 直至“完成”. 往项目中加入静态网页或动态网页. 静态网页 右击“ web 页”  “ 新建 ”  “ html ” 合适的命名 动态网页( servlet ) 右击“源包”  “ 新建 ”  “ Servlet ” 合适的命名,可同时建立“ URL 模式”.

Télécharger la présentation

使用 NetBean IDE 开发

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 使用NetBean IDE开发 • 启动NetBean IDE • 点击“文件” “新建项目” • 在“选择项目”模板中 • “类别”窗格中选“java Web” • “项目”窗格中选“Web 应用程序”

  2. 接下来…… • 按照你的选择填写各栏目 • “下一步” “下一步” • 直至“完成”

  3. 往项目中加入静态网页或动态网页 • 静态网页 • 右击“web页” “新建” “html” • 合适的命名 • 动态网页(servlet) • 右击“源包” “新建” “Servlet” • 合适的命名,可同时建立“URL模式”

  4. 建立form表单与servlet间的联系 • 在form标签中,插入action属性 • 属性值填写为相应servlet的“URL模式”字符串 (要事件设计好对应关系) • 注意使用相对路径

  5. 调试动态网站 • 在启动页面上右击“运行文件” • 在浏览器中查看运行效果 • 有问题可设置断点调试,而不必插入打印“调试信息”的语句

  6. 配置调试动态网页用的服务器 • 在IDE 的“工具”菜单条中设置服务器 • “工具” “服务器”  …… • 在项目的属性中选择服务器 • 右击“<项目名>”  “属性”  “运行” ……

More Related