本节内容假设你阅读了Seam手册1.1-1.2节内容。
我们开始学习第一个Seam例子registration
1. 打开eclipse,创建Java工程jboss-seam-registration
[img]http://dl.iteye.com/upload/attachment/416582/d4ff68e4-6703-3fd0-aead-facad2a7421e.png[/img]
2. Copy Seam安装目录/examples/registration 下所有文件到工程中,删除org.jboss.seam.example.registration.test包
3. 在工程根路径下创建文件build.properties,编写如下内容:
#Override with your Seam dist location
seam.home=F:/software/seam/jboss-seam-2.1.1.GA
注意:seam.home要写你自己的路径
4. 修改Ant build.xml 文件为 [b]附件[/b] 中的内容,工程结构如下:
[img]http://dl.iteye.com/upload/attachment/416596/7176295a-0b3d-3686-8cf6-d3497a98a229.png[/img]
5. 启动JBoss服务器,运行Ant 文件,打包和部署的工作就已经做完了。现在你就可以访问 [url]http://localhost:8080/seam-registration[/url] 测试你的程序
我们开始学习第一个Seam例子registration
1. 打开eclipse,创建Java工程jboss-seam-registration
[img]http://dl.iteye.com/upload/attachment/416582/d4ff68e4-6703-3fd0-aead-facad2a7421e.png[/img]
2. Copy Seam安装目录/examples/registration 下所有文件到工程中,删除org.jboss.seam.example.registration.test包
3. 在工程根路径下创建文件build.properties,编写如下内容:
#Override with your Seam dist location
seam.home=F:/software/seam/jboss-seam-2.1.1.GA
注意:seam.home要写你自己的路径
4. 修改Ant build.xml 文件为 [b]附件[/b] 中的内容,工程结构如下:
[img]http://dl.iteye.com/upload/attachment/416596/7176295a-0b3d-3686-8cf6-d3497a98a229.png[/img]
5. 启动JBoss服务器,运行Ant 文件,打包和部署的工作就已经做完了。现在你就可以访问 [url]http://localhost:8080/seam-registration[/url] 测试你的程序