-
Notifications
You must be signed in to change notification settings - Fork 0
/
DOTWEB3.0-JWP
292 lines (173 loc) · 6.08 KB
/
DOTWEB3.0-JWP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
JWEBWebPages
----------------------
JWEBWebpages(JWP) is mostly used in software development for Banking ,Insurance,etc.
It's extension is .jwp.
Note: The WebServer is not opensource. But this tutorial is opensource.
SYNTAX for WEBWebpages:
---------------------------------------
<DOTWEB3.0>
<PACK>
<%
<! JWEB WEb Logic !>
%>
</DOTWEB3.0>
Advantages:
----------
1) It is used as JWEB-AJAX.
2) It also used in Enterprise design (BMP,CMP, Statelfull session bean, stateless sesion bean),etc using JWP.
3) It is used for domains like Insurance, Banking,E-Learning, etc. It is Used with Angular js,
etc.
4) It also used as a MVC pattern
5) Easy to Learn , Focus , and use and eradicates lot of coding.
6) SAVES TIME AND COST.
7) It is an Opensource framework but wilmix cat server is not opensourced.
8) It saves time and cost
9) Use of web.xml and set and get methods are avoided.
10) Controller ,Model , View are User defined.
11) You can pass any type of JWEB collections like AList, HMap,etc
so you can get multiple values at the same time at View3
so it is one of the best JWEB framework.
12) You can perform many number of Multiple submits on the same page
ie) one can load many HTML forms in the same page
by calling HTML.displayhtml function.. is one of the best advantage than any other framework....
13) This Framework also behave like AJAX and redirects to the same page....
14) It also used as a common software for software developemnt.
15) It also used as a Framework..
16) It is focused in Insurance and Enterprise domain..
17) It is also used in Async Transcation with BankIng...
18) It also has the Advantages like IMF Framework.
but IMF framework is used only in insurance.
19) It is used to connect with WDBAJ$ Security database...
20) It is very fast to design and use and it is the Best one
compared to EJB , JMS , AJAX,JPA.
for eg) EJB is hard to design for JAVA programmers, where a J$ let Users
to write a small piece of code..
21) JWP is Advanced than COM,DCOM of Dotnet etc.
Example-1:
--------
<JDWEB>
<PACK>
<%
public class main
{
public void JWP-Main( )
{
HTML.displayhtml("bootstrap.htm");
}
}
%>
</JDWEB>
bootstrap.htm
------------
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
</head>
<body ng-app="mymodal">
<div ng-controller="MainCtrl" class="container">
<h1>Modal example</h1>
<button ng-click="toggleModal()" class="btn btn-default">Open modal</button>
<modal title="Login form" visible="showModal">
<form role="form">
<div class="form-group">
<label for="email">Email address</label>
<input type="email" class="form-control" id="email" placeholder="Enter email" />
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" class="form-control" id="password" placeholder="Password" />
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
</modal>
</div>
<script>
var mymodal = angular.module('mymodal', []);
mymodal.controller('MainCtrl', function ($scope) {
$scope.showModal = false;
$scope.toggleModal = function(){
$scope.showModal = !$scope.showModal;
};
});
mymodal.directive('modal', function () {
return {
template: '<div class="modal fade">' +
'<div class="modal-dialog">' +
'<div class="modal-content">' +
'<div class="modal-header">' +
'<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>' +
'<h4 class="modal-title">{{ title }}</h4>' +
'</div>' +
'<div class="modal-body" ng-transclude></div>' +
'</div>' +
'</div>' +
'</div>',
restrict: 'E',
transclude: true,
replace:true,
scope:true,
link: function postLink(scope, element, attrs) {
scope.title = attrs.title;
scope.$watch(attrs.visible, function(value){
if(value == true)
$(element).modal('show');
else
$(element).modal('hide');
});
$(element).on('shown.bs.modal', function(){
scope.$apply(function(){
scope.$parent[attrs.visible] = true;
});
});
$(element).on('hidden.bs.modal', function(){
scope.$apply(function(){
scope.$parent[attrs.visible] = false;
});
});
}
};
});
</script>
</body>
</html>
OUTPUT:
------------
Example-2:ASYNC in banking
------------------------------------------
<JDWEB>
<PACK>
<%
public class async1 <--- TH
{
public void JWP-Main( ) throws <EXE>
{
async1 a = <NEW> async1();
ASYNC.func[0]="main0";
ASYNC.func[1]="main1";
ASYNC.counter=4;
ASYNC.str="t1";
ASYNC s1 = <NEW> ASYNC();
s1.runSync();
ASYNC.str="t2";
ASYNC s = <NEW> ASYNC();
s.runSync();
ASYNC.LOGIC();
ASYNC.counter=4;
ASYNC.LOGICm("system has some problem");
ASYNC.LOGICm("system has no problem");
ASYNC.LOGICm("system has medium problem");
}
}
%>
</JDWEB>
OUTPUT:
When to use JWP?
Although JWP is focused on Software Development
it will easily connect to WDBAJ$ Database.
JWP is focused on Software Developement, Cloud computing ,
and mobile cloud computing