web-applications

How do you monitor the availability of multiple websites

I need to ensure that any number of websites and services haven't bitten the dust. At the moment I rely on a simple 5 minute cronjob which which uses curl and a file of urls to check that all the responses are correct (200 or rarely 301). It all works on a basic level, I'm interested in more sophisticated open-source tools (statistics, ...

One Rails application, several domain names

I want to point several domain names to the same Rails application. The content is different for each domain, but the functionality and the structure of the application is the same. What is the best way to do this when it comes to server set up and routing? I will use nginx as a web server. ...

Charts in webpages

What I'd like to accomplish is to present charts on webpages. For example aspx pages gridviews that present a two column table are able to be copied & placed into Excel then a chart created. The pages I currently use most are ASP.NET 3.0 or SharePoint team sites with stored procedures. People are very interested in how people perform cha...

Log4j, configuring a Web App to use a relative path.

I have a java webapp that has to be deployed on either Win or Linux machines. I now want to add log4j for logging and I'd like to use a relative path for the log file as I don't want to change the file path on every deployment. The container will most likely be Tomcat but not necessarily. What's the best way of doing this? ...

What do I need to be cautious of when creating a user-content driven site?

I'm slowly but surely working on a site using ASP.NET MVC which will contain a bunch of user-generated content, such as submitted links, comments, markers on a map etc. I need to know what stuff I need to be mindful of when coding. Examples being scrubbing User inputs for HTML strings like the script tag, and blocking against SQL injec...

CMS or Re-Uploading pages

I have a site I'm working on that has an event page. The owner wants to be able to edit the event page weekly. Would it be easier to teach the site owner how to edit this one page and upload it or use a CMS just for this one page?? Apart from a contact form that posts to an email addy, the rest of the site is static. Therefore I'd ne...

How best to "turn off" a web page from another part of the application?

We have a web application that manages inventory for our computer support group. One of the things that we will be using this for is to drive a "Computers Currently In Use" map for our larger computer labs so that users can find an open computer more easily (the lab in our Main library has around 150 computers). The image used for the ...

Deploying multiple web apps in same server

I am thinking on deploying multiple (and different) web applications on the same server using the following schema: www.mydomain.com/app1 www.mydomain.com/app2 Is this a good practice? Any recommendations? ...

Is it okay to update a Java web application by replacing just single class files?

Sometimes, when we're doing small changes to our web apps, e.g. bug fixes, we don't build a whole new WAR-file each time, but merely replace just the affected class files in the exploded web app directory under WEB-INF/classes and restart the app. Is that okay? ...

Scalability on the web

I've been arguing with some friends on the university, and we can't get to a point to which is the framework with more scalability for web applications (and still very fast). One calls for jsp, the other one for ruby other for php and so on. Could i ask you to clarify us on what as more scalability potential? Tks, hope I'm not duplicat...

Current Window should seen on the top.

Hi, I am making an web based appliaction in java (using jsp). When the appliaction is invoked login page will come, when the user enter the valid credientials, he will be taken to the index page. But the problem is, when the login is success, the index page is coming but it is opening behind the login page. (means login page appears on ...

Is there a single resource on the web that lists all ASP.Net security issues (XSS, etc) with preventative measures?

With so many ways to attack a site, it would be useful if there is a single guide, or resource, listing all known vunerabilties with possible preventative measures. Does anyone know of any? Also, is there a library or framework that can deal with this kind of thing? ...

Abstract Java Grid

Hi, I'm looking for an abstract representation of a grid in Java (grid as in that thing with columns and rows of data). Do such things exist? I want to be able to sort, filter, keep track of rows, set column properties etc. I'll then be realising the grid on the web. To be clear: I've already decided on the ultimate view technology ...

Redirect depending on the Country?

We basically have 2 sites ( Java /JSP / Apache Webserver) : something.ca & something.com The .ca is canadian content, and the .com is american content. We need users to be redirected based on the ip addreess. We want US users to get the .com site and Canadian users get the .ca site. What is the best way to do this (at a webserver le...

How to handle huge result sets from database

I'm designing a multi-tiered database driven web application – SQL relational database, Java for the middle service tier, web for the UI. The language doesn't really matter. The middle service tier performs the actual querying of the database. The UI simply asks for certain data and has no concept that it's backed by a database. The qu...

Looking for pattern/approach/suggestions for handling long-running operation tied to web app

Hello, I'm working on a consumer web app that needs to do a long running background process that is tied to each customer request. By long running, I mean anywhere between 1 and 3 minutes. Here is an example flow. The object/widget doesn't really matter. Customer comes to the site and specifies object/widget they are looking for. We s...

What's the best Java-based forum software?

Somebody asked about .NET-based forum software here: http://stackoverflow.com/questions/11046/forum-software-recommandations-net Now I have a similar question but I prefer Java. I'm interested in building a community site so I'd like to know my options. It doesn't have to be free but it needs to be something a normal engineer can affor...

Storing web server images in windows C drive

I am running tomcat and I have some custom images which when I store on my C drive do not show up.If I move them to webapp root foder, they r fine but I do not want these images to end up in the war file.As I am using Windows symbolic link is not an option. Any idea as to how I can make the images show up without storing in the webapp ro...

Recommend an automatic web application availiblity checker

Hi, I am looking for a piece of software that I can schedule to check that our web apps are up and running. I've used HP open view years ago, but remember it being quite expensive, I'm looking for something open source or cheap. So it would login in and do some simple actions maybe submit form and check for some text on screen that m...

In terms of the ability to deploy, does any web programming language stand out or lag behind the others?

In terms of the number of servers ready to receive an application written in the language, the number of people who can write code using the language, and so on? ...