CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 WEB源码 JSP源码/Java

文件名称:test4

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2014-06-17
  • 文件大小:
    12.46kb
  • 已下载:
    0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

基于JSF的简单Web应用开发

实验内容

学习在MyEclipse8.x集成开发环境下创建Web应用,创建JSF和Managed-Bean以及相关配置,并测试。

实验内容及步骤

1、创建一个Web 应用,应用名为test4,并添加JSF支持;

2、进行模型层的开发实现以及配置:创建ManagedBean类:1)backing.loginBean类,2)validator.userValidator类;

3、设计loginBean的5个属性:username、password、uv、email、converter并生成他们各自的get和set方法,在converter的get方法中嵌套一个内部转换类以实现对象到字符串和字符串到对象的转换;并在该类中添加带参数的构造方法;

4、编辑userValidator类,实现对用户名和密码的验证;

5、创建并编辑Email类,在该类中要重写toString()方法;

6、进行JSP页面的开发,本实验设计了5个JSP页面:登录页面loginForm.jsp、欢迎页面welcome.jsp、登录失败页面failure.jsp、添加邮箱页面add.jsp、显示邮箱帐号页面show.jsp;

-Simple JSF-based Web application development

Experimental content

Learn to create an integrated development environment under MyEclipse8.x Web application, create and Managed-Bean and JSF configuration and testing.

Experimental content and procedures

1, create a Web application, the application called test4, and add JSF support

2, the development and implementation of the model layer configuration: Create ManagedBean classes: 1) backing.loginBean class, 2) validator.userValidator class

3, the design loginBean of five attributes: username, password, uv, email, converter and generate their own get and set methods, nested class in an internal converter to convert the get method to achieve the objects to strings and strings to Convert object and add constructor with parameters in the class

4, edited userValidator class, achieve the verification of user name and password

5, create and edit Email class in the class to rewrite toString () method

6, to develop JSP pages, the exp
(系统自动生成,下载前可以参看下载内容)

下载文件列表

test4/.classpath
test4/.mymetadata
test4/.project
test4/.settings/.jsdtscope
test4/.settings/org.eclipse.jdt.core.prefs
test4/.settings/org.eclipse.wst.jsdt.ui.superType.container
test4/.settings/org.eclipse.wst.jsdt.ui.superType.name
test4/.settings/org.jboss.tools.jst.web.xml
test4/src/backing/Email.java
test4/src/backing/loginBean.java
test4/src/validator/userValidator.java
test4/WebRoot/add.jsp
test4/WebRoot/failure.jsp
test4/WebRoot/index.jsp
test4/WebRoot/loginForm.jsp
test4/WebRoot/META-INF/MANIFEST.MF
test4/WebRoot/show.jsp
test4/WebRoot/WEB-INF/.faces-config.mex
test4/WebRoot/WEB-INF/classes/backing/Email.class
test4/WebRoot/WEB-INF/classes/backing/loginBean$1.class
test4/WebRoot/WEB-INF/classes/backing/loginBean.class
test4/WebRoot/WEB-INF/classes/validator/userValidator.class
test4/WebRoot/WEB-INF/faces-config.xml
test4/WebRoot/WEB-INF/web.xml
test4/WebRoot/welcome.jsp
test4/WebRoot/WEB-INF/classes/backing
test4/WebRoot/WEB-INF/classes/validator
test4/WebRoot/WEB-INF/classes
test4/WebRoot/WEB-INF/lib
test4/src/backing
test4/src/validator
test4/WebRoot/META-INF
test4/WebRoot/WEB-INF
test4/.settings
test4/src
test4/WebRoot
test4

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com