Title: TrustForm System
1TrustForm System ?? ?? ??
???? ????
Updated 2003? 7? 23?
2 1. ???? 2. ??? ?? 3. XForms? ?? 4. ????
???? 5. ??? ??? (??? ???? ??????) 6. ??? ???
??? 7. ?? ??? ??? ??? 8. Event ???? 9. ?? 10.
Q A
Index Of Contents
31. ?? ??
1. ????
?. XML ?? ? ?. Script ? ? ?. XPath ?
? ?. XForms ??
41. ?? ??
?. XML?? - ????? ??? ??? ?? ???? -
XML(http//www.w3c.org/XML) - HTML? ? ?????
???????? ???? ???? ??? ? ??? XML? ???? ????
??????? ??? ??? ? ??. ????? XML ????
SGML(standard generalized markup language) ?? ???
??? ??. XML? SGML? ???????? ? ? ?? ??? ??? ??
??? ??? SGML??? ? ? ??. lt??gt lt??gt lt???gt melt
/???gt lt???gt ???lt/???gt lt???gt ???lt/???gt lt??gt
lt?gt2000lt/?gt lt?gt12lt/?gt lt?gt9lt/?gt lt/??gt lt
??gtXML? ???? ? ????lt/??gt lt???gt XMLlt/???gt lt???gt
????lt/???gt lt/??gt lt/??gt
51. ?? ??
?. Script? - ??? ??? ????(VBScript)??? ????
?????, ????? ?????????? ??? ?? ????? ????? ??? ??
??? ?(WWW) ? ???? ???? ??? ????. ?????? ??
??(HTML) ?? ?? ???? ????. ??? X ??(Active X
control)? ?? ???(Java applet)? ??? ? ??. - ??
????(JAVAScript)
?. XPath? - language for addressing parts of an
XML document XPath(http//www.w3c.org/TR/xpa
th) XML??? ??? ?? ? ?? ??? XML????
?. XForms? - ?? W3C(www.w3c.org) Candidate
Recommendation ??? ?? XML? Form Application ??
??? ? ?? ??? (The Next Generation of Web Forms )
???
62.??? ??
2. ??? ??
?. TrustForm System ?? ?. TFDesigner ?.
TFViewer ?. ??? ??? 1) TFSystem ?? 2)
Apache Tomcat 3) IIS 4) WebLogic
72.??? ??
?. TrustForm System ??
82.??? ??
?. TrustForm Designer
Menu Bar
ToolBar
Align
Control
File View
Working Area
Submit/Template Change
Instance
View Change
Attribute Change
92.??? ??
?. TrustForm Viewer
Control ??(KB) ?? ??
TFViewer.OCX 1,300 ??(Plug-In)
TFTimer.OCX 148 ??? ???
TFDate.OCX 40 ?????
TFMenu.OCX 96 ?????
TrustForm Viewer ActiveX
102. ??? ??
?. ??? ???
1) TFStarter
Web Server
request
TFStarter.ocx
Config.xml
StartPage.html
Download
Form,OCX Package
Parse Config.xml
TFViewer.ocx TFTimer.ocx XFM.Zip
OpenPage.html
Download
Viewer.ocx Statr Page
POST
WAS JSP / Servlet / EJB
XML
Database
112. ??? ??
?. ??? ???
1) TFStarter (OpenPage.html)
ltscript language "javascript"gt function
windowonLoad() var retTFStarter.getCon
fig( "http//www.comsquare.co.kr/hcpark/wwwconfig.
xml" ) if (rettrue) window.location.hre
f "http//www.comsquare.co.kr/hcpark/kb_index.ht
ml" //"file///C/TFS/kb/kb_index.html"
else alert( "TFStarter Error!" )
lt/scriptgt lt/HEADgt ltBODYgt ltobject
classid"CLSID8FBA34A9-697D-405D-B9B2-306531A6659
0" codebase"http//www.comsquare.co.kr/hcpark/tf
starter.cabversion1,0,0,1" width 0 height
0 id "TFStarter"gt lt/objectgt ltpgtltfont face"??"
size"2"gt Loading...... ???? ????????? ??
(include mfc42sp4, msxml4sp1)lt/fontgt lt/pgt lt/BODYgt
122. ??? ??
?. ??? ???
1) TFStarter (Config.xml)
ltrootgt ltcontent name"vsflex7" ver"7.0"
url"http//www.comsquare.co.kr/hcpark/Vsflex7.ocx
" target"system" type"reg" /gt ltcontent
name"TFViewer" ver"1.0" url"http//www.comsquar
e.co.kr/hcpark/TFViewer.ocx" target"c\TFS"
type"reg" q"yes" /gt ltcontent name"TFDate"
ver"1.0" url"http//www.comsquare.co.kr/hcpark/T
FDate.ocx" target"c\TFS" type"reg" /gt
ltcontent name"TFTimer" ver"1.0"
url"http//www.comsquare.co.kr/hcpark/TFTimer.ocx
" target"c\TFS" type"reg" /gt ltcontent
name"TFPush" ver"1.0" url"http//www.comsquare.
co.kr/hcpark/TFPush.ocx" target"c\TFS"
type"reg" /gt ltcontent name"kbInt" ver"1.2"
url"http//www.comsquare.co.kr/hcpark/kb.zip"
target"c\TFS\kb" type"zip" q"yes" /gt
lt/rootgt
132. ??? ??
?. ??? ???
2) Apache Tomcat ????
request
reponse
Database
POST
Viewer.ocx XFM
JDBC
XML
142. ??? ??
?. ??? ???
2) IIS ????
request
reponse
POST
Viewer.ocx XFM
Database
ODBC
XML
152. ??? ??
?. ??? ???
3) WebLogic ?? ??
request
Viewer.ocx XFM
reponse
Database
POST
JDBC
XML
163.XForms? ??
3. XForms? ??
?. ??? ?? ?. ?? ? ?? ??
173.XForms? ??
?. ??? ??
XForms
ltxhtmlheadgt ltxhtmltitlegtUntitlelt/xhtmlti
tlegt ltmodelgt
ltinstancegt ltmyroot xmlnsmy"http//www.comsquar
e.co.kr/example"gt ltmyexamplegtSamplelt/myexamplegt
lt/myrootgt lt/instancegt
ltbind id"input1" ref"myroot/myexample"/gt
lt/modelgt lt/xhtmlheadgt ltxhtmlbodygt
ltinput id"input1" bind"input1"
style"left210px top120px width100px
height20px vertical-alignmiddle"gt
ltscript type"vbscript" id"script1"
evevent"DOMFocusOut"gt
lt!CDATA MsgBox "?? ??"
gt lt/scriptgt
lt/inputgt lt/xhtmlbodygt
Model
UI Controls
- initialization
- interaction
- notification
- error
Event Handlers
183.XForms? ??
?. ?? ? ?? ??
ltHTMLgt ltHEADgt lt/HEADgt ltBODYgt ltOBJECT
id"TFViewer" classid"CLSID506B0FD4-B7B2-4F4C-BE
3F-B61855AB7CAF" codebase"http//trustform.comsqu
are.co.kr/download/tfviewer.cabversion1,0,0,7"
width"970" height"600"gt ltPARAM
name"ControlName" value"TFViewer"/gt ltPARAM
name"src" value.\crdt\ResultViewJ.xfm"/gt lt/OBJE
CTgt lt/BODYgt
TFViewer.OCX
194.???? ????
4. ???? ????
?. ??? ??? ?. Instance ??? ?. ???? ?.
??? ?? ?. ? ?
204.???? ????
?. ??? ???
214.???? ????
?. Instance???
224.???? ????
?. ????
234.???? ????
?. Event ??
- Event? ? ???? ??? ??? ??? ??? ? ???? ???
?? ????? ?? ? ? ??.
244.???? ????
?. ??
- ??? ??? ???? ?? Hello World? ???? 1)
Input? Button???? ????. 2) Instance? ???. 3)
Instance? Control ? Bind??. 4) Button????
xforms-activate ??? ???? 5) ??? Script? ????
Edit??? ????. 6) Script? model.setValue?
MsgBox? ????. 7) ???? ????.
Ex-1-1
255.??? ???
5. ??? ???
?. Input?? ?. Button?? ?. Select?? ?. ??
???
265.??? ???
?. Input??
- Input
- - ?? ????? ?? ? ? ??
-
- Secret
- - ???? ?? ??? ???? ?? ??? ?? ?? ? ??
- 3) Textarea
- - ?? ?? ??? ?? ? ??
- Output
275.??? ???
?. Button??
- Button
- - ???? ?? ??? ??? ?? ?? ??
-
285.??? ???
?. Select??
- CheckBox
- - ???? ??? ?? ?? ? ? ??
-
- Radio
- - ?? ?? ???? ?? ? ??
- 3) ListBox
- - ?? ??? ?? ?? ????? ??? ??
- Combo
295.??? ???
?. ?? ??? ??
- Shape??
- - ?, ???, ?, ?? ???? ??? ??? ??.
-
- Browser
- - IE ???? ?? HTML? ?? ? ? ??.
- 3) Grid
- - ?? ???? ???? ?? ? ? ??.
- Calendar
- - ?? ????? ?,?,? ?? ?? ? ? ??.
- Object
- - ActiveX? ???? ???? ?? ? ? ??.
- TreeView
- - ?? ???? ????? ?? ? ? ??.
305.??? ???
?. ?? ???
- Switch
- - ? ??? ??? ? ??? ?? ???? ????? ?? ?? ??
-
- Upload
- - ??? ??? Upload ? ? ??
316.??? ??? ???
6. ??? ??? ???
?. Input ?. Select ??
326.??? ??? ???
?. Input ???
1) ?? ?? (input, output) - type
NNNN-NN-NN, ZcZZZcZZZ, NNNdNN - bind? ??
?? (type"csNNNN-NN-NN) - ?? ?? N
??? Z ???? ?? (??? ??) c ?? d ???
??? 2) Grid input ?? ?? ?) ?? (input ,output)
- ???? ?? ???? ??? ?? ??. - pattern
"NNNN-NN-NNZZZcZZZcZZZcZZZ ?) Editmask
(input) - ?? ??? ??? ????. - ?? ?? ?? ?
Editmask -- ?) Format (input) -
?? ???? ??? ??? ??? ??? ??. - ?? ?? ?? ?
format ,, gt ?? ?? Grid Input?
Fomat? ??? ?? ???? ??? ????? ???? ????? ???.
336.??? ??? ???
?. Input ???
3) ??? ?? ??, ?? ?? ?? a) inputMode - ??
(hangul) - ?? (latin) - ?? (digits) - ???
(upperCase) - ??? (lowerCase) b) maxlength
346.??? ??? ???
?. Select ?? ???
- item ?? ?? ??
- item ??? ?? ??
357.????? ??? ???
7. ????? ??? ???
?. Switch ?. Browser ?. Object ?.
TreeView ?. Upload
367.????? ??? ???
?. Switch
377.????? ??? ???
?. Switch
387.????? ??? ???
?. Browser
397.????? ??? ???
?. Object
407.????? ??? ???
?. TreeView
417.????? ??? ???
?. Upload
428.Event ????
?. Event ??
439. ??
?. ?? UI ?? (ItemSet)
44?? ? ??
?? ? ??
1. XForms ??? ?? 2. TFSystem?? ?? 3.
TFDesigner ??? ?? (??)
4510.Q A
Q A
46Thanks You