web-applications

Parent Contexts in spring based web-app

Hey, I'm deploying my EAR/WAR file to Jboss 4.2 and i've wired the web.xml to load the common application context file, so i can share common bean via parent spring context. <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLoc...

What pattern for deeply nested web form validation?

I'm refactoring a large legacy web application that has some complicated forms. These forms use javascript to display or hide fields on the basis of other entered fields. E.g ticking a checkbox for "second address" reveals a set of other fields to enter. The current validation for this consists of lots of deeply nested if statements. S...

How to reduce redundant log messages for a web-app?

Does anybody have any advice on how to minimize my logs for a web application? Right now, I'm logging every error. So if there is a situation where an error occurs on every request (a db connection problem for example), it might get logged for every user on every request. As you can imagine, it doesn't take too many users doing too ma...

Using sqls in JSP - What is the best practice?

Say, You have an application which lists down users in your application. Ideally, if you were writing code to achieve this in Java, irrespective of what your UI layer is, I would think that you would write code which retrieves result set from the database and maps it to your application object. So, in this scenario, you are looking at yo...

What's the Best Way to use Response.Redirect to for A Pop-Up in a .NET Web Application?

I'm trying to do this in a way that will prevent end-user browser security features (such as a pop-up blocker) from getting in the way of my application. ...

firefox iframe history

In a web app we use IFRAME to let users select items for the parent page. The problem is that FIREFOX (3.5) adds a copy of the same (parent) page to history each time IFRAME is opened. The web app is using history.back() to go from parent page to one that called that page. We can fix that by passing the "back" page as parameter from c...

What would you go for a back-end web application: Flex, GWT, JQuery?

Hi, I should build a web application for back-office purposes and one of the main requisites is a good UI. On server-side I'll use Java very likely Spring framework, depending on what I'll be using client-side. I think to basically have 3 choices for client-side: a "normal" web application, meaning JSP pages, using JQuery framew...

How should I start Java-based web development?

I have been using java as my main language for 3 years while developing college assignments, and now I plan to learn the web programming aspect of it. I see there are lots of different "stuff" going on such as JSP, JSF, Spring, etc. Previous topics suggest that Head First Servlets and JSP is a good book to start with, but what do you th...

XSS Attacks Prevention

I've found a "database" of many XSS attacks and while this list provides quite a big list of attacks are there are any other attacks that didn't fall in the XML, what to look out for and most unexpected? ...

Designing a robust social/collaborative tagging system

How might I implement a system where everybody can add/remove tags to every item, but still protect it from spam/tag-vandalism? I'm thinking it would probably need to store the tags that each person's tags for an item, and then somehow coming up with an aggregate/"top" tags for the item. I think Slashdot has a tagging system like this--...

Free/Open Source PHP Application Framework

Good day. I was wondering if you guys know some Free or Open Source PHP Frameworks? Can you tell me some you know, and advantages, disadvantages and for what good are each one for? About this subject i also become to know CodeIgniter, those who know it, and worked with, do you think its good for a "general" type of PHP Applications, o...

Does anyone know of any open source versions of Twitter?

I built a GIS application around Twitter and now its getting some interest. But one of the requirements is that they don't want any outside dependencies. So I'll need to mimic Twitters functions. Anyone know of any open source Twitter projects? ...

Tomcat security constraint for valid user

I'm trying to protect a resource in tomcat so that only "valid users" (those with a valid login and password in the realm) can access it. They do not necessarily belong to a group in the realm. I have tried with many combinations of the <security-constraint> directive without success. Any ideas? ...

Good Webserver for Out-Of-Box Deployment

The company I work for is starting a project that will probably require a web-server and database to be deployed on the clients system. There are a couple of reasons why we want to ship with a webserver: We need to send and receive data between machines, and we don't want to force customers to setup a network file-system We need to hav...

How can I detect which jsp includes a web page uses in a web application

Hi, I want to detect when an include in a jsp occurs in a web application and specifically which page is being included. I want to do this when the menu page is requested. One option is to overwrite PageContext but it turns out you can't access it anywhere to wrap it. As far as I can see PageContext is the only class which provides incl...

Enabling authentication between applications

I have a set of .NET applications running in a public web environment which connect to a centralized component made up of web pages and web services. Is there any way to implement a security feature to make the centralized web pages be sure of the caller applications identity? Making a post and supplying a querystring parameter stating ...

What is the best way to store user generated conditions and consistently check them?

An application keeps track of hundreds of variables. Users are able to create conditions which can be simple (ex: if one variable is true) or complex (ex: if 34 variables are true AND 22 variables are false AND 2 variables are equal to each other). If the condition ever becomes true, it fires off some action. What is the best way to achi...

Graduate Courses on Large Scale Web Applications

I recently came across Erlang, the programming language, and I've become interested in developing large scale real-time browser based web-applications. I'd like to know if there are any graduate courses, anywhere in the US, which will teach me about writing scalable web-aplications or something similar. ...

Automate browser navigation and data extraction

Hi, I am trying to automate data extraction from a website and I really don't know where to start. One of our suppliers is giving us access to some equipment logging data through a "Business Objects 11" online application. If you are not familiar with this online app, think of it as a web based report generator. The problem is that I am...

Website Projects in Azure Web Role

I am researching a new ASP.Net project that we would like to host in a Windows Azure Web Role. One of the technical requirements of this project is to make use of the full pre-compilation options (non-updatable, single page assembly) of the ASP.Net Web Site project model - as opposed to the ASP.Net Web Application project model. Is it p...