Yet Another Web Framework 1
来源:互联网 发布:arm linux 启动登录 编辑:程序博客网 时间:2024/05/16 07:42
其实充斥于房间的Web框架是很多的了。之所以考虑设计一个新的Web框架,主要是因为觉得Java6以后对脚本语言的支持,应该会产生一些新的更加动态的Web框架。记得网上有篇文章说传统的J2EE构架并不适合Web2.0时代敏捷的业务需求,于是我就在考虑创建一个新的Web框架来实现敏捷。 我不知道这一系列的文章是否能够坚持到我把这个框架做出来,最近半途而废的事情做的太多了,不过既然已经开题了,那就尝试着往下做吧。估计以后在工作中使用Java的机会会越来越少,就当帮着我保持Java代码水平吧。
对于这样一个框架,其面向的对象依然是企业应用,设想中主要由Java来写业务组件(包括基于Web的GUI组件和流程应用组件),然后通过Javascript来构建业务流程,从而能够构建敏捷的企业应用。规划中的JavaScript代码应该为:
对于这样一个框架,其面向的对象依然是企业应用,设想中主要由Java来写业务组件(包括基于Web的GUI组件和流程应用组件),然后通过Javascript来构建业务流程,从而能够构建敏捷的企业应用。规划中的JavaScript代码应该为:
//Request: http://yourname/user/login?username=xxxx&password=xxxx
//function name:user.login
//parameters: XContext
//return value: jsonObject
var user.login=function(xcontext){
username=xcontext.form.username;
password=xcontext.form.password;
return __invokeLocal('JLogin',{'username'=username,'password'=password},function(v){
if(v==false)
return {'success':false};
else{
xcontext.esb.username=username;
return {‘success’:true};
}
});
}
//function name:user.login
//parameters: XContext
//return value: jsonObject
var user.login=function(xcontext){
username=xcontext.form.username;
password=xcontext.form.password;
return __invokeLocal('JLogin',{'username'=username,'password'=password},function(v){
if(v==false)
return {'success':false};
else{
xcontext.esb.username=username;
return {‘success’:true};
}
});
}
- Yet Another Web Framework 1
- Yacc : Yet Another Compiler-Compiler 中英对照1
- Yet Another Multiple Problem
- Yet Another PhotoMosaic Generator
- Yet Another Analog Clock
- Yet Another Lambda Tutorial
- Yet Another Median Task
- Codeforces868F Yet Another MinimizationProblem
- Yacc: Yet Another Compiler-Compiler
- hdu4474-Yet Another Multiple Problem
- hdu4474 Yet Another Multiple Problem
- HDU4474 Yet Another Multiple Problem
- CRF++: Yet Another CRF toolkit
- uva10689 Yet another Number Sequence
- Hackerrank:Yet Another KMP Problem
- UVA10689-Yet another Number Sequence
- YARP-yet another robot platform
- Yet Another Game of Stones
- java连接SQLServer
- test
- 摩登天空音乐节
- Ubuntu日记1
- 一个笔试题的分析
- Yet Another Web Framework 1
- 十五天的假期-5
- MFC学习步步高03
- Flex 是什么? flex和flash是什么关系?flex 解决什么问题?flex和j2ee/.net是什么关系?
- 与日语相关的考试
- Troubles in RMI
- Visual C++开发工具与调试技巧整理
- Javascript中最常用的55个经典技巧
- Profile的介绍(asp.net 2.0)