web-frameworks

Why don't Django and CherryPy support HTTP verb-based dispatch natively?

守給你的承諾、 提交于 2019-12-05 00:12:55
It's not the same to POST to an URL than to GET it, DELETE it or PUT it. These actions are fundamentally different. However, Django seems to ignore them in its dispatch mechanism. Basically, one is forced to either ignore HTTP verbs completely or do this on every view: def my_view(request, arg1, arg2): if request.method == 'GET': return get_view(request, arg1, arg2) if request.method == 'POST': return post_view(request, arg1, arg2) return http.HttpResponseNotAllowed(['GET', 'POST']) The few solutions I have found for this in the web ( this snippet for verb-based dispatch, or this decorator for

Tierless web framework with Javascript?

拈花ヽ惹草 提交于 2019-12-04 20:04:29
问题 Links is a lisp-like functional web programming language/framework that makes it easy to write a single piece of code that is compiled to server-side code, client-side JS and HTML, thus making it much easier to write web applications. Since there really is no distinction between the client and server side, they call it "tierless" programming. With the advent of Server-side JS, are there any comparable frameworks with JS? Note that I don't just mean writing server side and client side code in

Python: How to create simple web pages without a huge framework? [closed]

北城余情 提交于 2019-12-04 12:21:29
问题 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 would like to know if there is a way to create web pages without a huge framework in python. I think of something like PHP/Apache,

Is there any performance comparison between Perl web frameworks?

ぃ、小莉子 提交于 2019-12-03 16:19:07
问题 I have seen mentions (which sounded like unsubstantiated opinions, and dated ones at that) that Embperl is the fastest Perl web framework. I was wondering if there's a consensus on the relative speed of the major stable Perl web frameworks, or ideally, some sort of fact-based performance comparisons between implementations of the same sample webapps, or individual functionalities (e.g. session handling or form data processing), etc...? UPDATE : This question is specifically about the speed

JSF vs Stripes, which is best? [closed]

烈酒焚心 提交于 2019-12-03 16:08:07
Which is best, or in other words, whish is easiest to use? Stripes or JSF. Although I haven't used both in anger I need to gauge what is the best option to work with for both starting new projects and converting existing Struts projects. I have a fear that JSF won't render as nicely as I want but what are others experiences? Seems Stripes is far more straight forward, would I be correct in this assumption? Which is best, or in other words, which is easiest to use? Stripes or JSF. Which is the best? Well, Stripes and JSF are different. The former is an action-based framework (like Struts) while

RESTful Web Development With Java EE 6 - what are the options?

早过忘川 提交于 2019-12-03 15:03:32
I'm trying to figure out what the best options are for developing a RESTful web application with Java EE 6. For example, I want to be able to interpret a URL like so: GET www.myapp.com/customers/1 - returns a web page displaying details about a customer with id 1. The only two options I can think of are Using Spring MVC 3 Using a JAX-RS specification that allows you to render views - I heard RESTEasy integrates with Spring MVC? Are there any other frameworks that will allow you to develop web applications like this? Also I would greatly appreciate insight as to why one framework may be better

Java Framework Choice Question

半城伤御伤魂 提交于 2019-12-03 14:12:43
问题 We do have many frameworks available in Java. Struts, Swing, JSF 2.0, Spring etc are used as per their priority. Actually, I don't know how many they are as well! But, as I am fresher to Java, even learning after their architecture, I cannot decide which framework can be used with what type of Projects ! Also, I am confused with mixed use of framework like Spring + JSF. What is the benefit to it ? Another thing making me confusing is about the UI components available in market. Like, we do

Tierless web framework with Javascript?

时光总嘲笑我的痴心妄想 提交于 2019-12-03 14:04:50
Links is a lisp-like functional web programming language/framework that makes it easy to write a single piece of code that is compiled to server-side code, client-side JS and HTML, thus making it much easier to write web applications. Since there really is no distinction between the client and server side, they call it "tierless" programming. With the advent of Server-side JS, are there any comparable frameworks with JS? Note that I don't just mean writing server side and client side code in the same language, but writing server-side and client-side functions that can call each other and

What python equivalent of Sinatra would you recommend? [closed]

时光怂恿深爱的人放手 提交于 2019-12-03 10:48:14
问题 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 like the sinatra framework, but might have to work in python. A quick web search has uncovered a few python equivalents including

Choosing a simple web application framework [closed]

本小妞迷上赌 提交于 2019-12-03 07:36:36
问题 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 evaluating web application frameworks for a hobby project I'm starting, and am beginning to go crazy trying to decide among the