web-applications

Why "Content-Length: 0" in POST requests?

A customer sometimes sends POST requests with Content-Length: 0 when submitting a form (10 to over 40 fields). We tested it with different browsers and from different locations but couldn't reproduce the error. The customer is using Internet Explorer 7 and a proxy. We asked them to let their system administrator see into the problem fr...

Should I design the application or model (database) first?

I am getting ready to start building a new web project in my spare time to bring to fruition an idea that has been bouncing around my head for a while. I have never gotten down whether I am better off first building the model and then the consuming application or the other way around. What are the best practices? What would you build ...

How would one make Python objects persistent in a web-app?

I'm writing a reasonably complex web application. The Python backend runs an algorithm whose state depends on data stored in several interrelated database tables which does not change often, plus user specific data which does change often. The algorithm's per-user state undergoes many small changes as a user works with the application. T...

Support for Web application - Web Site

Hello everyone this is my first question here in stackoverflow. I am creating an e-shop in ASP.NET + C# for a client. First of all I would like to ask if anyone knows how good Crystal Tech web hosting is (not the dedicated servers package as that is somewhat expensive); Second I want to ask what sort of support - maintenance - guarante...

How to take a Java Web-application offline?

We develop Java Web-aps (Websphere, DB2) which display graphical and databased information. We would also like to offer the same application offline (distribution via CD/DVD) with online data-update. We have tried a number of alternatives in the past, but nothing has been really stable. What are the new best practices to take a Web ap pl...

Design of Reporting Services for Java webapp

A design question. I have developed an online test engine web app earlier this year. I have used Java servlets and Freemarker templates and done it entirely following the MVC paradigm. One big missing feature in the application is that it provides no reporting. The initial design of the application did not consider reporting as part o...

Project Types in ASP.NET

How do I create a Web Application Project in VS 2008? How is it different from a "WebSite" project? ...

Pitfalls of accessing a webserver on 127.0.0.1 from js with a public site

I'm thinking about exploring the idea of having our client software run as a service on a high port and listen for simple http GET requests from 127.0.0.1. The theory is that I would be able to access this service via js from a web page that is served from my site. 1) User installs client software that installs itself as a service and ...

How do I track web-based Logins and Logouts?

I'm making modifications to a members-based site whose owner wants to be able to track time spent on site (login/logout) for all users in a DB backend. Login is easy; there's one point of entry (the login form) and as a result, logins can be thrown in the database as soon as they happen. Logouts, however, are a bit trickier, as unless ...

How to enumerate HTTP listeners from a Java EE web app

I have a web app with a web-based configuration UI. If the user accesses via HTTP, I want to alert the user that they should really use HTTPS and give them a link to click on to get to the HTTPS-prefixed URL. Now, this is pretty straightforward if we're on the default ports, but often, we're not - for example, HTTP might be on 8080, wit...

Is Java suitable for "Web 2.0" applications?

I was chatting to someone the other day who suggested that Rails and PHP are the most suitable platforms for web applications, and to avoid Java. My background is mainly Java, and I know that it is considered by some to be too verbose and "heavyweight", but is used occasionally (e.g. by LinkedIn). So I'm wondering whether anyone has had...

What is a good embeddable Java LDAP server?

I'm working on a Java web application that integrates with a few other external applications that are deployed along with it. Authentication information must be synchronized across everything and the other applications want to authenticate against LDAP. The application will be deployed in environments where there will be no other LDAP se...

Is it good practice to hide web server information in HTTP headers ?

This question is more security related than programming related, sorry if it shouldn't be here. I'm currently developing a web application and I'm curious as to why most websites don't mind displaying their exact server configuration in HTTP headers, like versions of Apache and PHP, with complete "mod_perl, mod_python, ..." listing and ...

How can I add sessions to my Perl web app?

I want to maintain state in my Perl web app. How can I do this effectively? I looked at CGI::Session but it says that it doesn't work well with UTF-8 pages, which is a requirement. I'd also like to be able to pass some basic information to another Java application running on the Glassfish app server, so people aren't forced to login t...

Does Javascript fire an event for unhandled/uncaught exceptions?

I'm looking to log unhandled javascript exceptions. Is there an event that fires when an exception isn't caught? I'm looking to catch the exceptions before they cause javascript errors in the browser, but I'd rather not run my entire application inside of a try/catch. Any help would be appreciated. Thanks! Update: tvanfosson pointed ou...

Javascript memory leak cleanup in window.unload

Javascript client side application. Trying to eliminate memory leaks leads to ugly (to say the least) code. I am trying to clean up in window.unload instead on messing up all the code trying to avoid them. We use mostly element.onevent=function(){..}; pattern, that results in closure (mostly wanted) and memory leak. We do not use jav...

Statistics engine for Java EE Web Application

We are working on a Java EE Web Application, and the people from marketing need some really detailed stats for our site. Something similar to Google Analytics, gathering the user's information, and their navigation through the site (where they come from, what they click, where they go, etc.). Depending on a third party service like Anal...

ASP.NET custom error page - Server.GetLastError() is null

I have a custom error page set up for my application: <customErrors mode="On" defaultRedirect="~/errors/GeneralError.aspx" /> In Global.asax, Application_Error(), the following code works to get the exception details: Exception ex = Server.GetLastError(); if (ex != null) { if (ex.GetBaseException() != null) ...

Differences in building UI between Web and Desktop Applications

The UI for web apps is constructed differently from the UI of desktop apps. I'm interested to know what are actually the major differences in building UI between the two styles of applications in the following areas: 1.Technology used 2.Techniques used 3.Controls used 4.Screen changing behavior ...

Smart clients easier to maintain than web apps?

I have been working on a project that has 2 interfaces - windows forms and web. Over the past 8 months, we have faced more issues with maintenance of our web apps (works in IE not in FF, ajax breaks in some weird ways that is not easy to debug... ) and so on. On the other hand, the winform app is easy to install. We have a xcopy version...