robin
超级水鬼
发贴: 128
积分: 19
|
于 2003-06-29 20:58
不知道那位大虾有这方面的资料共享一下,或者给点建议。
问题儿童replied: From "Programming Jakarta Struts" by Chuck Cavaness 6.4 What Does Struts Offer for the Model? To be honest, the Struts framework doesn't offer much in the way of building model components, but this probably is as it should be. Many frameworks and component models already are available for dealing with the business domain of an application, including Enterprise JavaBeans and Java Data Objects (JDO), or you can use regular JavaBeans and an ORM. The good news is that the Struts framework does not limit you to one particular model implementation.
我当然知道struts本来就不是做model来用的framework但是,我现在结构是这样的,我的client,submit 请求,然后我的请求是不确定的,也就是说随时可能会变的,我要动态的配置,也就是说描述我的请求的是一个xml的schema,但是我可以动态的进行(请求)schema的配置,可是我怎么来动态的控制我的model呢 就是我的请求结果要从数据库中返回一个对象。也就是说我要动态的来组织我的 sql statement 这样的化sql statement也可以拼装出来,但是db的查询效率就没有办法保证了,也就是说我的sql statement不能进行优化,只能是拼装成什么样的就怎么执行。望各位大虾能给点意见。
why edited on 2003-06-30 11:07
|