struts and hibernate can use a common beans
来源:互联网 发布:照片转绘画软件 编辑:程序博客网 时间:2024/04/28 15:08
if hibernate is user in your project ,it must have a beans which mapping to the ,hbm.xml file
in the struts ActionForm file we can import the beans file ,getter and setted method is nessary
,then we can use these attributes in the page
example
test beans have a attribute named testValue
TestActionForm.java
private Test test;
public Test getTest(){return this.test;}
public void setTest(Test t){test=t;}
test.jsp
<html:text property="test.testValue"/>
that's ok!
in the struts ActionForm file we can import the beans file ,getter and setted method is nessary
,then we can use these attributes in the page
example
test beans have a attribute named testValue
TestActionForm.java
private Test test;
public Test getTest(){return this.test;}
public void setTest(Test t){test=t;}
test.jsp
<html:text property="test.testValue"/>
that's ok!
- struts and hibernate can use a common beans
- Can I use a Frameset design and still attract attention from the search engines?
- Struts and Hibernate
- How to configure and use CAN bus
- Can you use map and set???
- Can you use map and set???
- Common Struts Errors and Causes--Struts常见错误
- Struts 2 and Hibernate Integration
- iphone have to use common sense and Maintenance
- Can I (and my authors) still use client-side ...
- How can you decide to use UINavigationBar, UIToolbar and UITabbar
- IOS Create a Label and use bundle
- When and how to use a ThreadLocal
- you can’t add a second ‘$and’
- Why Johnny can't clone: Common pitfalls and not so common solutions
- Struts, hibernate and spring interview questions
- struts, hibernate and spring Version histroy
- when to use Java Beans
- WinCE? smartphone? pocket pc? windows mobile?
- 匪夷所思的食物
- debian 的sources.list
- 方正国际C++笔试最后一题 还是不太会
- bmp file dump source code(I write)
- struts and hibernate can use a common beans
- 掌握 Ajax,第 1 部分: Ajax 简介
- 《包青天》中的《鸳鸯蝴蝶梦》单元,剧中有一个很漂亮的女子叫“离垢”
- 如何自己定制事件的API
- 掌握 Ajax,第 2 部分: 使用 JavaScript 和 Ajax 发出异步请求
- My new box
- 王家卫作品《东邪西毒》电影对白
- 关于感情
- 在对话框程序中创建并且加载菜单资源