dorado 7
http://www.bsdn.org/
http://dorado.io/home
http://www.bsdn.org/projects/dorado7/download
dorado 7 在线演示
http://bsdn.org/projects/dorado7/deploy/sample-center/com.bstek.dorado.sample.Main.d
下载中心
http://www.bstek.com/downloadcenter.htm
dorado debug shutcut
page time:Ctrl+Shift+F12
bstekIDE Eclipse插件扩展点应用介绍
http://macrochen.iteye.com/blog/138625
BstekIDE_1.2.2_Installer.jar
http://www.bstek.com/download?subpath=eclipse$2F
大小 | 最后修改时间 | 下载数量 | |
BstekDoradoStudioPluginInstallGuideline-v01-20070717.zip | 67KB | 2008-01-22 10:02:34 | 761 |
BstekIDE_1.2.1_Installer.exe | 60,171KB | 2008-04-14 14:59:40 | 30 |
BstekIDE_1.2.2_Installer.exe | 63,258KB | 2008-04-23 17:25:05 | 59 |
BstekIDE_1.2.3_Installer.jar | 73,111KB | 2008-06-24 18:17:03 | 18 |
BstekIDE_1.2.4_Installer.jar | 73,425KB | 2008-07-09 19:25:48 | 227 |
BstekIDE_1.2.5_Installer.jar | 73,444KB | 2008-09-01 18:35:04 | 224 |
BstekIDE_1.2_Installer.exe | 50,665KB | 2008-03-21 11:06:42 | 25 |
BstekIDE_1.2_Installer.jar | 52,143KB | 2008-03-21 18:06:31 | 17 |
com.bstek.ide.site | <Folder> | 2008-04-02 13:44:14 | <Folder> |
HelloWorld_Eclipse.rar | 69,662KB | 2008-01-22 17:02:30 | 60 |
update |
dorado begin ...
1.http://www.bstek.com/download?subpath=dorado$2Fdorado5$2Ezip/
D:\dorado5\如何开始.txt
请首先运行setup.bat完成dorado自动配置.
目录说明:
- [doc] 文档.
- [lib] dorado项目所需要使用到的jar.
- [sample] 一套演示如何使用dorado的例程.
- [studio] 集成开发工具.
- [upgrade] 与自动版本升级相关的文件.
安装说明:
1.运行安装目录下的setup.dat,仔细阅读两个选项说明.
2.双击dorado studio快捷方式启动dorado开发工具.
3.点击dorado studio开发工具顶部的Start Up Service按钮启动自带的Web服务器.
(这时会自动打开dorado sample的页面,更多的使用说明请参考sample和doc/下的开发手册)
附注:
- 登录dorado控制台(http://server:port/yourapp/console.d)的初始用户名为admin, 初始口令为dorado.
- 登录studio中服务的初始用户名为dev, 初始口令为dorado.
dorado current version:5.2 071127.1604 STD
D:\dorado5\studio\studio.exe
studio.exe>>>Start Up Service
http://localhost:8180/doradosample/main.jsp
studio.exe>>>Create a NEW Project>>>hr
Project >>>Configures>>>datasource>>>add
Name:hrJDBC Type:JDBC
press "ok"
D:\dorado5\hr\home\datasource.xml
<?xml version="1.0" encoding="UTF-8"?> <datasources> <datasource name="hrJDBC" type="JDBC"> <minEvictableIdleTimeMillis>30000</minEvictableIdleTimeMillis> <timeBetweenEvictionRunsMillis>30000</timeBetweenEvictionRunsMillis> <driver>org.hsqldb.jdbcDriver</driver> <url>jdbc:hsqldb:D:/dorado5/hr/data/hsqldb/</url> <dialect>com.bstek.dorado.data.db.dialect.HSQLDBDialect</dialect> <user>sa</user> <minIdle>0</minIdle> <maxIdle>0</maxIdle> <maxActive>0</maxActive> <loginTimeout>0</loginTimeout> <maxWait>0</maxWait> </datasource> </datasources>
copy D:\dorado5\sample\web\WEB-INF\lib\hsqldb.jar to D:\dorado5\hr\web\WEB-INF\lib\hsqldb.jar
2.test hr_jdbc
studio.exe>>>Start Up Service>>>Project>>>hr>>>Configures>>>datasource>>>Validate>>>Test Finished Sucessfully!
为了方便以后的开发,我们需要把hrJDBC数据源配置到项目树的configures节点下的setting配置文件中。
D:\dorado5\hr\home\setting.xml
<?xml version="1.0" encoding="UTF-8"?> <properties> <property name="common.defaultDataSource" value="hrJDBC"/> <!-- 略 --> </properties>
3.添加视图模型对象
D:\dorado5\hr\src\com\bstek\dorado\demo\hr\Login.view.xml
<?xml version="1.0" encoding="UTF-8"?> <view> <Datasets> </Datasets> <Controls> </Controls> </view>
4.添加DataSet对象
dorado studio jdbc
jdbc/sntest
com.bstek.dorado.data.db.dialect.Oracle10gDialect
oracle.jdbc.driver.OracleDriver
jdbc:oracle:thin:@192.168.100.120:1521:sntest
snworkorder
snworkorder
查询操作
------------------------------------------------------------------------------------------------------------
D:\dorado5\provider\web\WEB-INF\classes\doradohome\datasource.xml
<?xml version="1.0" encoding="UTF-8"?> <datasources> <datasource name="jdbc/sntest" type="JDBC"> <minEvictableIdleTimeMillis>30000</minEvictableIdleTimeMillis> <timeBetweenEvictionRunsMillis>30000</timeBetweenEvictionRunsMillis> <driver>oracle.jdbc.driver.OracleDriver</driver> <url>jdbc:oracle:thin:@192.168.100.120:1521:sntest</url> <dialect>com.bstek.dorado.data.db.dialect.Oracle10gDialect</dialect> <user>snworkorder</user> <password>snworkorder</password> <minIdle>0</minIdle> <maxIdle>0</maxIdle> <maxActive>0</maxActive> <loginTimeout>0</loginTimeout> <maxWait>0</maxWait> </datasource> </datasources>
------------------------------------------------------------------------------------------------------------
D:\dorado5\provider\web\WEB-INF\classes\provider.view.xml
<?xml version="1.0" encoding="UTF-8"?> <view> <Datasets> <Dataset id="dataset1" type="Wrapper" wrappedType="AutoSql" dataSource="jdbc/sntest" originTable="TBL_EMPLOYEE" keyFields="EMPLOYEEID"> <Joins /> <Fields> <Field name="EMPLOYEEID" originField="EMPLOYEEID" table="TBL_EMPLOYEE" dataType="string" group="false"> <Properties /> </Field> <Field name="EMPLOYEENAME" originField="EMPLOYEENAME" table="TBL_EMPLOYEE" dataType="string" group="false"> <Properties /> </Field> <Field name="MOBILENUM" originField="MOBILENUM" table="TBL_EMPLOYEE" dataType="string" group="false"> <Properties /> </Field> <Field name="JOBLEVEL" originField="JOBLEVEL" table="TBL_EMPLOYEE" dataType="string" group="false"> <Properties /> </Field> <Field name="EMPLOYEESYSTEMCODE" originField="EMPLOYEESYSTEMCODE" table="TBL_EMPLOYEE" dataType="string" group="false"> <Properties /> </Field> <Field name="KINDCODE" originField="KINDCODE" table="TBL_EMPLOYEE" dataType="string" group="false"> <Properties /> </Field> <Field name="KINDNAME" originField="KINDNAME" table="TBL_EMPLOYEE" dataType="string" group="false"> <Properties /> </Field> <Field name="EMAIL" originField="EMAIL" table="TBL_EMPLOYEE" dataType="string" group="false"> <Properties /> </Field> <Field name="PHONENUM" originField="PHONENUM" table="TBL_EMPLOYEE" dataType="string" group="false"> <Properties /> </Field> <Field name="ORGFINACIALCODE" originField="ORGFINACIALCODE" table="TBL_EMPLOYEE" dataType="string" group="false"> <Properties /> </Field> <Field name="ORGFINACIALNAME" originField="ORGFINACIALNAME" table="TBL_EMPLOYEE" dataType="string" group="false"> <Properties /> </Field> </Fields> <MatchRules> <MatchRule level="1" dataType="string" escapeEnabled="true" table="TBL_EMPLOYEE" originField="EMPLOYEEID" operator="=" value=":EMPLOYEEID" /> </MatchRules> <SortRules /> <MasterLink /> <Parameters /> <Properties /> </Dataset> <Dataset id="datasetQuery" type="Form"> <MasterLink /> <Fields> <Field name="EMPLOYEEID" dataType="string"> <Properties /> </Field> </Fields> <Parameters /> <Properties /> </Dataset> </Datasets> <Controls> <Control id="table1" type="DataTable" dataset="dataset1" editable="false" width="100%" /> <Control id="buttonQuery" type="Button" command="commandQuery" /> <Control id="commandQuery" type="QueryCommand" conditionDataset="datasetQuery" queryDataset="dataset1"> <Parameters /> <Events /> </Control> <Control id="pagepilot1" type="PagePilot" dataset="dataset1" /> <Control id="formConditions" type="AutoForm" dataset="datasetQuery" groupType="subwindow"> <FormGroup> <Element name="EMPLOYEEID" field="EMPLOYEEID" type="TextEditor"> <FieldLabel /> <TextEditor /> </Element> </FormGroup> </Control> </Controls> <Properties /> </view>
D:\dorado5\provider\web\provider.jsp
<%@ page contentType="text/html; charset=UTF-8" %> <%@ taglib uri="http://www.bstek.com/dorado" prefix="d" %> <html> <head> <title></title> </head> <body> <d:View config="provider"> <d:DataTable id="table1" /> <d:AutoForm id="formConditions" /> <d:PagePilot id="pagepilot1" /> <d:Button id="buttonQuery" /> </d:View> </body> </html>
sdfasfasf
Dorado在Eclipse中的集成
http://jarik.iteye.com/blog/169276
一、新建Eclipse工程。
二、拷贝dorado中的HOME文件夹到新工程中。
三、拷贝dorado中sample\web\WEB-INF下的dorado.properties,dorado.tld,dynamic-dropdown2.jsp三个文件到新工程的WEB-INF下。
四、修改dorado.properties文件:
configFileLoader=com.bstek.dorado.common.fileloader.PathFileLoader
configFileLoader.root=D:/eclipse/workspace/sample2/home
sourceFileLoader=com.bstek.dorado.common.fileloader.PathFileLoader
sourceFileLoader.root=D:/eclipse/workspace/sample2/src
D:/eclipse/workspace/sample2为工程路径。
五、修改新工程下的web.xml文件。
将dorado中sample\web\WEB-INF的web.xml文件内容中的
<filter>
<filter-name>doradofilter</filter-name>
<filter-class>com.bstek.dorado.core.DoradoFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>doradofilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>doradoservlet</servlet-name>
<servlet-class>com.bstek.dorado.core.DoradoServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>doradoservlet</servlet-name>
<url-pattern>*.d</url-pattern>
</servlet-mapping>
<taglib>
<taglib-uri>http://www.bstek.com/dorado</taglib-uri>
<taglib-location>/WEB-INF/dorado.tld</taglib-location>
</taglib>
粘贴到新工程的web.xml中,结果如下:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<filter>
<filter-name>doradofilter</filter-name>
<filter-class>com.bstek.dorado.core.DoradoFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>doradofilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>doradoservlet</servlet-name>
<servlet-class>com.bstek.dorado.core.DoradoServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>doradoservlet</servlet-name>
<url-pattern>*.d</url-pattern>
</servlet-mapping>
<jsp-config>
<taglib>
<taglib-uri>http://www.bstek.com/dorado</taglib-uri>
<taglib-location>/WEB-INF/dorado.tld</taglib-location>
</taglib>
</jsp-config>
</web-app>
其中红色部分的<jsp-config></jsp-config>为增加的内容,因为jsp使用的标签库是2.4的,所以加这一部分内容。
六、拷贝dorado中sample\web\WEB-INF\lib文件夹下的所有jar包到新工程的WEB-INF\lib下。
七、发布工程,测试配置是否正确。若出现以下信息,表示配置正确:
[dorado] >>> Starting Service... ... ...
[dorado] Using JDOM 0.9 as XML processor
[dorado] Configure loader: com.bstek.dorado.common.fileloader.PathFileLoader
[dorado] Configure root: D:/eclipse/workspace/sample2/home
[dorado] Source loader: com.bstek.dorado.common.fileloader.PathFileLoader
[dorado] Source root: D:/eclipse/workspace/sample2/src
[dorado] Loading "setting.xml"...
[dorado] Initializing Logger...
[dorado] Initializing Performance Moniter...
[dorado] Loading "user-config.xml"...
[dorado] Loading "mapping/global.map.xml"...
[dorado] Loading "mapping/dorado.map.xml"...
[dorado] Loading "mapping/sample.map.xml"...
[dorado] Initializing Velocity Service...
[dorado] Initializing Connection Pool...
[dorado] Testing Connection "doradosample"...
[dorado] Initializing Module Manager...
[dorado] >>> Service Started!
[dorado] Version: dorado-5.0 061119.2050 (Unregistered)
八、在新工程中新建文件。
命名为 工程名.dorado
比如工程名为exemple,那么新建的文件名为exemple.dorado
将dorado\sample下的doradosample.dorado的内容拷贝到新建的文件里。
#Dorado Project
#Wed Jun 01 03:14:16 CST 2005
webApp=doradosample
port=8180
sourcePath=${project.root}/src
localHome=${project.root}/home
defaultURI=
server=localhost
webRoot=${project.root}/web
autoBrowse=true
javaSourceEncoding=UTF-8
修改内容中的web为WebRoot,修改后的内容为:
#Dorado Project
#Wed Jun 01 03:14:16 CST 2005
webApp=doradosample
port=8180
sourcePath=${project.root}/src
localHome=${project.root}/home
defaultURI=
server=localhost
webRoot=${project.root}/WebRoot autoBrowse=true
javaSourceEncoding=UTF-8
新增加:
九、在新建的工程中利用hibernate开发。
将sample\src\sample\skills\data下的hibernate和vo两个文件夹拷贝到新工程下面,在新工程新建一个包,名字为工程名+skills.data,比如工程名为sample,那么新建的包名为sample.skills.data。
dsfsfasdfaf
BANK
buttonDel onClick delRecord(datasetBank,cmdDel); cmdDel dataset:datasetBank flashDataOnSuccess true
end