web-applications

JSF 2.0 How to link CSS from resources folder

Hi folks, I'm designing the template for my new JSF2.0 App and I want to use the resources folder to store my css-file. Now I started to create a template-file, but I don't know how to link the css. I tried: <link rel="stylesheet" type="text/css" href="resources/css/style.css"/> ..but didn't work Can somebody help me, pls. THX <...

Web user account management components

I need to create user account registration / login / management components for a Spring backed web application. I'm intending to use Acegi to help with the authentication side of things. Is there a framework / set of components that can help with the boilerplate account validation e-mails, forgotten password handling etc functions? Rela...

Is it possible to drive Flash app programmatically?

I was wondering if it is possible to drive Flash application programatically to provide some sort of automation for web Flash-based applications that demand user interactions? The naive approach would require taking screenshots and recognizing interactive areas based on some predefined patterns. Then we can emulate mouse clicks/keyboards...

How to recognize user language in PHP

Is there any way to parse the HTTP_USER_AGENT to get the current user language ? ...

strategy for digitally signing a process?

I'm developing a web application, and I'd like to digitally sign a certain step in a process That is, a user of the app performs a certain action, and I'd like that event to be digitally signed. The user should use and usb token when issuing the action to digitally sign it. I'd like to know which approach do you recommend to do such a...

How to organise Webdriver tests

I want to create some Webdriver tests to test my Java web application but I'm not sure whether they should live inside another project or if they should live inside my web application project. I also want to run these Webdriver tests from my Hudson CI server upon every commit to my SVN repository - would this be a standard practice? I ...

How to provide access to an external resource (file) for a GlassFish web application?

I am a bit of a GlassFish beginner, so please forgive my ingnorance on the subject. Basically we are serving a game website, and to make the client downloadable by our web app we copy it into a directory within domain1. The problem with this is that when redeploying the web app the client downloadable is lost and we have to copy it acro...

How many key-sets should be in use to encrypt/decrypt data in several instances of the same web application?

We host several instances of our web application on four different servers. Two of the servers host the IIS/web portion of the application, the other two host the MSSQL databases. Each of our clients has an individual virtual directory in IIS and an individual database. Each database shares exactly the same schema. Assume we're usi...

web application: store txt file on windows server share from linux web server

I have a java class that I use to create a text file from a web application. I'm using the following code: private void CreatePaymentFile(String QueryCriteria) { BigDecimal TotalPay; DecimalFormat df2 = new DecimalFormat("00000"); String RecordString = null; try{ String fileName = "\\\\fileandprint\\Apps\\Jury\\SHARE\\Payment_" + short...

Rails 2 vs. Rails 3

DHH recently stated that Rails3 is about to be in RC mode. This announcement ironically coincides with me and a friend of mine starting a Rails application. At this point in the game, we were going to just go ahead and be early adopters of 3. However, as we're both fairly inexperienced in creating large web apps with Rails, 2 seems like...

C is support web application

Whether C is Suitable for Web application ...

How to integrate Google Maps in a web application?

I have a web application. I want to integrate the Google Maps to show the map of a location where user types in the search location. Any help? ...

Regex that checks upper or lower case characters with or without accents.

How can I make the following regular expression ignore all whitespaces? $foo = ereg_replace("[^áéíóúÁÉÍÓÚñÑa-zA-Z]", "", $_REQUEST["bar"]); Input: Ingeniería Eléctrica'*;<42 Current Output: IngenieríaEléctrica Desired Output: Ingeniería Eléctrica I tried adding /s \s\s* \s+ /\s+/ \/s /t /r among others and they all failed. Objec...

iPhone 4 ignoring viewport meta tag

I have just added the following HTML to the <head> section of my iPhone web app: <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;"/> This (supposedly) limits the zoom of the page so the user can't zoom in. On the 3GS and previous versions, this tag is respected - but the iPhone...

How to achieve interrupt-driven communication from server to client with servlets?

Hello, we wrote in C++ a screen sharing application based on sending screenshots. It works by establishing a TCP connection btw the server and client, where the server forwards every new screenshot received for a user through the connection, and this is popped-up by the client. Now, we are trying to host this on google app engine, and...

Best way to define a function ?

I'm always learned to define a function in JavaScript like this: function myFunction(arg1, arg2) { ... } However, I was just reading Google's guide to Javascript, it mentioned I should define methods like this: Foo.prototype.bar = function() { ... }; Question: Is "Foo" in the example an Object, or is it a namespace? Why isn't the...

Which comes first, the framework or the application? Dynamic framework and application folders.

Okay, so I am creating an MVC framework in PHP and I want it to be pretty flexible. This is all fine - I'm working on this at the moment and things are going well (So I don't want to use Zend or another pre-existing framework, haha!), but I wanted to make both the framework and application quite dynamic. I'll try explain: Here's a simpl...

Web application architecture design

I am starting a new project trying to create a web application for an electronic programme guide for TV. This is not going to be a large scale project, but just something that I can use to learn web application programming. I am going to be using PHP for this. Before beginning coding for the application, there is a crucial question that...

Looking for a good python framework for web apps (w/threading support)

I am looking for a good framework for building web apps in python (could also be python + php). The apps will make http requests (GET/POST) and process data, so I'd like to have threading support to make it faster. I am currently using exec(/path/to/php thread.php ... ); to run "threads" on php. The main app will scrap tons of urls and ...

How to find out if the internet connection is not available from your web app

How to find out if the internet connection is not available from your j2ee web app, since some portions of our UI will not work properly if an internet connection is not available. So instead of failing with a bad exception, I would like to fail gracefully. ...