web-frameworks

Which framework should I choose - Seam, Wicket, JSF or GWT? [closed]

馋奶兔 提交于 2019-12-20 08:07:37
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm debating whether to use Seam, Wicket, JSF or GWT as the foundation for my presentation layer in a Java project. I narrowed my

How to clean up temporary file used with send_file?

我们两清 提交于 2019-12-19 05:22:18
问题 I'm currently developing a server side json interface where several temporary files are manipulating during requests. My current solution for cleaning up these files at the end of the request looks like this: @app.route("/method",methods=['POST']) def api_entry(): with ObjectThatCreatesTemporaryFiles() as object: object.createTemporaryFiles() return "blabalbal" In this case, the cleanup takes lace in object.__exit__() However in a few cases I need to return a temporary files to the client, in

Mature Clojure web frameworks? [closed]

拥有回忆 提交于 2019-12-17 21:24:50
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . What are the current choices of mature Clojure web frameworks? I am looking for some kind of feature matrix telling me what the popular frameworks support and to what extent, including: Response templating (response written in Clojure or in some other markup - e.g. like JSP with

What's the right approach for calling functions after a flask app is run?

放肆的年华 提交于 2019-12-17 17:57:10
问题 I'm a little confused about how to do something that I thought would be quite simple. I have a simple app written using Flask . It looks something like this: from flask import Flask app = Flask(__name__) def _run_on_start(a_string): print "doing something important with %s" % a_string @app.route('/') def root(): return 'hello world' if __name__ == "__main__": if len(sys.argv) < 2: raise Exception("Must provide domain for application execution.") else: DOM = sys.argv[1] _run_on_start("%s" %

Django vs other Python web frameworks?

左心房为你撑大大i 提交于 2019-12-17 10:14:51
问题 I've pretty much tried every Python web framework that exists, and it took me a long time to realize there wasn't a silver bullet framework, each had its own advantages and disadvantages. I started out with Snakelets and heartily enjoyed being able to control almost everything at a lower level without much fuss, but then I discovered TurboGears and I have been using it (1.x) ever since. Tools like Catwalk and the web console are invaluable to me. But with TurboGears 2 coming out which brings

Choosing a Java Web Framework now? [closed]

核能气质少年 提交于 2019-12-17 02:26:18
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . we are in the planning stage of migrating a large website which is built on a custom developed mvc framework to a java based web

Which J2EE web development framework to choose for a simple, accessible application?

独自空忆成欢 提交于 2019-12-14 03:45:31
问题 I want to write a simple web application, on J2EE, with these characteristics: I don't need any AJAX, and it should even work with JavaScript disabled on the browser. It is a simple CRUD application I would need full control on the way each element is laid out on the page - no compromise on the GUI's look and feel. I can use plain old JDBC for data access - no o/r mappers necessary Bookmarking of pages is necessary (wherever it makes sense to bookmark, that is). Many of my users use tabbed

Multiple action.class.php

大兔子大兔子 提交于 2019-12-12 11:11:55
问题 I do have an module e.g. account. Of course you will find a file called in acount/actions/action.class.php. The PHP-file action.class.php is getting big. Is it possible to extend it? for an example: /account/action/action.class.php /account/action/action2.class.php If it is possible, how does the code look like in action.class.php and in action2.class.php? And/or where should I enter something in a config-ymal-file? Thanks in advance! Craphunter 回答1: Symfony actions can be declare in two

which python framework to use?

淺唱寂寞╮ 提交于 2019-12-12 07:56:43
问题 I'm looking for a framework which is appropriate for beginners (in Python and web development). I already found out about Django and web.py. I think that one of the most important things for me is good documentation. Thanks for the help, Dan 回答1: I think Django has some of the best documentation of any project I've worked on. That's the reason we chose it over Turbogears two years ago, and it's been the best technology choice we've made. 回答2: web.py? It's extremely simple, and Python'y. A

BeforeMiddleware implementation requires core::ops::Fn implementation

我的梦境 提交于 2019-12-12 03:36:38
问题 I am trying to implement the BeforeMiddleware trait for a struct I have. I have written the following code: impl BeforeMiddleware for Auth { fn before(&self, _: &mut Request) -> IronResult<()> { println!("before called"); Ok(()) } fn catch(&self, _: &mut Request, err: IronError) -> IronResult<()> { println!("catch called"); Err(err) } } I am getting the following error: > cargo build ... src/handlers/mod.rs:38:11: 38:28 error: the trait `for<'r, 'r, 'r> core::ops::Fn<(&'r mut iron::request: