jWebapp- MVC框架

网友投稿 525 2022-10-13

jWebapp- MVC框架

jWebapp- MVC框架

jWebApp是一个基于Servlet的MVC框架,目的是为了简化小型web项目的开发复杂度。

示例:

jWebApp is literally this simple:

public class HelloWorld extends RequestHandler {

public String processHello(ServerInterface serverInterface) {

serverInterface.setAttribute(“helloWorld”, “Hello World”);

return “/WEB-INF/helloWorld.jsp”;

}

public String processHelloAgain(ServerInterface serverInterface) {

serverInterface.setAttribute(“helloWorld”, “Hello World Again”);

return “/WEB-INF/helloWorld.jsp”;

}

}

Just plain HTML and your favorite template markup

Hello, This Is A Simple "Hello World" Example.${helloWorld}Hello WorldHello Again

The following servlet configuration is all that is needed (outside ourcontrol, it’s a servlet thing).

jwaRequestServlet

jwebapp.RequestServlet

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:EA&UML日拱一卒-活动图::14.2 Behavior StateMachines (11)
下一篇:EA&UML日拱一卒-活动图::OMG UML2.5中文译文 16.12 Expansion Regisons
相关文章

 发表评论

暂时没有评论,来抢沙发吧~