web-applications

How to prevent a user from registering multiple accounts to vote themselves up

This question isn't about preventing a single user from registering multiple accounts. It is assuming that registering multiple accounts cannot be prevented, but what we want to avoid/detect is when the user is using the accounts to vote for himself. This would apply to sites like SO or digg, where a user creates a 2nd account solely fo...

How to improve productivity when developing JEE based web applications.

I'd like to know how you address the seemingly low productivity of JEE-based web application development compared to other technology stacks (Seaside, Ruby on Rails, etc). The constraints are: The finished web application must be deployable on JEE compliant application containers If possible, previous investment in Java-based solution...

What's the best way for the server to send messages to a web client?

Links to articles would also be appreciated--I don't know the terminology to search for. I'm looking to learn how a web application can allow for server-to-client communications. I know the web was not designed for this and that it has been something of a hurdle, and am just wondering what the state of this is, and what the best practic...

When to choose between web interface and native GUI?

Many applications (especially the networks' ones e.g. file sharing, sql query program, some multiplayer games) as we know today can be easily provided by using a web interface. My question is when should I make an application accessible using a browser? When it will be wise to use a desktop application being built using interfaces like...

JBoss Seam tutorials

Let's say that I'm new to JBoss Seam, is there a way to get my skills up to speed? Are there any good tutorials? ...

Security Scan On Site

I recently had a security audit run against one of the sites I work on. This was done with the Acunetix Web Vulnerability Scanner. This came back with a bunch of results that I'm sorting through. A lot of hits on XSS came up, but I'm not sure if they are false positives or not. Code such as: if(isset($_GET['variableNameX'])) $var_...

How to display an error message box in a web application asp.net c#

Hi, I have an ASP.NET web application, and I wanted to know how I could display an error message box when an exception is thrown. For example, try { do something } catch { messagebox.write("error"); //[This isn't the correct syntax, just what I want to ach...

UI Metaphor for sorting large lists

As part of a web app, I have a queue of items that need to be sorted in an arbitrary order. If there are a few items (say less than 20) I can just present it as a list and let the user drag and drop rows around to set the sort order. But if I have a lot of items (say, more than 100) how can it be done? Are there any existing metaphors...

Is it possible to have a personalized ASP.NET web app with only some SSL pages?

I have a web application that once signed in, personalizes almost all pages. I want to be able to have some very specific pages locked down with SSL that may have sensitive information. From what I have been able to find, once you sign in via an SSL sign in page (area of the web site), the session information which I use to store a lot...

Automatic Event Wiring in Global.asax

I'm wondering if there's a way to automatically stub in the Global.asax's event handlers? Thus far, I've not been able to find any examples of how to do this. Seems I have to just find the list of delegate names available to me and type them in manually. Intellisense doesn't seem to lend any useful info on the subject either. ...

What are some good patterns for performing initial configuration of a web application?

I have a Java web application designed to be deployed on the internet. It needs a database connection. Depending upon hosting environments it may not be possible for the deployers of the web application to configure appropriate data sources so the application needs to store it's database connection information somewhere to be reloaded if...

struts-tiles

I have developed a simple struts application which retrieves and manipulates customer data from the database. Now I want to include an image at the top of all the pages. I know tiles is the best way to do it. Since I'm a newbie can anyone help me to include an image in my existing project using tiles. Thanks in advance ...

Struts & bean

I have two questions : 1) Where do we call a bean in struts (what is the exact line through which we call the bean and from which file) and how the getter and setter methods are called? 2) Also we are fixing the scope as request or session or something else, I can understand that the values will be stored in the request object or ses...

How do I record sound and send it to a server from a web application?

I'm developing a web application. It will allow people to link written phrases with spoken phrases. In order for this application to be useful, random users must be able to record their own voices and send the sounds to the server. If I just have an "upload wav" form, no one will use it. If I have a "record" button that streams or pa...

Restricting Web Application usage when Licensing

Hi, I am just putting some finishing touches onto a Licensing solution for a Web Application I have created for SharePoint. I want to be able prevent the page from loading the Web Application Content when the license is invalid. I have tried the following... protected override void Render(HtmlTextWriter writer) { if (Li...

Purpose of DynaValidatorForm

What is the use of DynaValidationForm in struts? I have read an article that it reduces the lines of code and complexity. Can anyone tell how it is so. Thanks in advance ...

Web Application Development Process - Version Control, Bug Tracking, Unit Testing, Deployment

Describe the process you use to develop web applications at a not-so-high level, focusing on VC, bug tracking, QA, unit testing, deployment and anything else similar (minus the planning/client communication side of things). I'm new in this area, so my rough example (read: haven't used this process) is no doubt abit off, so to speak - po...

Asp.Net Website Structure Question

Hi all, I recently got a project where i need to create a web app in asp.net. This is my first big project so i figured i'd ask you guys for your input on how to go about doing this. I'm planning on using asp.net webforms for this project. The app requires a bunch of summary pages that are some what similar (with the exception of a few ...

How can I preload web app classes in the JVM on start up?

In our web apps the first load of some pages takes a small but noticeable extra about of time due to class loading. Does anyone have any clever ways of preloading web app classes in the JVM on start up? Update: What we do now is store a bunch (700) of full class names in a db table. We read the table at startup and do Class.forName()...

The immediate place where an uploaded file is stored

When I upload a file, where is the immediate place the file will go to on the webserver? Is there anyway to configure this place? ...