文件名称:test4
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2014-06-17
- 文件大小:
- 12kb
- 下载次数:
- 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
实验内容
学习在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
.....\.mymetadata
.....\.project
.....\.settings\.jsdtscope
.....\.........\org.eclipse.jdt.core.prefs
.....\.........\org.eclipse.wst.jsdt.ui.superType.container
.....\.........\org.eclipse.wst.jsdt.ui.superType.name
.....\.........\org.jboss.tools.jst.web.xml
.....\src\backing\Email.java
.....\...\.......\loginBean.java
.....\...\validator\userValidator.java
.....\WebRoot\add.jsp
.....\.......\failure.jsp
.....\.......\index.jsp
.....\.......\loginForm.jsp
.....\.......\META-INF\MANIFEST.MF
.....\.......\show.jsp
.....\.......\WEB-INF\.faces-config.mex
.....\.......\.......\classes\backing\Email.class
.....\.......\.......\.......\.......\loginBean$1.class
.....\.......\.......\.......\.......\loginBean.class
.....\.......\.......\.......\validator\userValidator.class
.....\.......\.......\faces-config.xml
.....\.......\.......\web.xml
.....\.......\welcome.jsp
.....\.......\WEB-INF\classes\backing
.....\.......\.......\.......\validator
.....\.......\.......\classes
.....\.......\.......\lib
.....\src\backing
.....\...\validator
.....\WebRoot\META-INF
.....\.......\WEB-INF
.....\.settings
.....\src
.....\WebRoot
test4