web-applications

Slow server script makes IE stall

I am working on a php web application which involves calls to 3rd party web services. Recently I've run into problems because some of the web services are slow and/or time out. (When this happens the service throws an error after 5-6 minutes, which is handled by the web application) However, the problem arise that while waiting for the...

ZK: OnOK event in Internet Explorer

Hi, I am using framework ZK to develop web applications and they have to be usable also in Internet Explorer 6+. I have registered event OnOK on the Textbox. This event should be emitted when key ENTER is pressed. In Firefox this works pretty well but in IE it doesn't. Can anybody help me how to fix it, please? I'll be very greatful I...

How do you virus scan a file being uploaded to your java webapp as it streams?

Basically, I want to virus scan files as they are uploaded (before writing them to disk) to a web app. In particular, I'd like to integrate with "McAfee VirusScan Enterprise" (latest version). From a design and maintenance perspective, would it perhaps be better to scan certain paths at the firewall using a third party product? That w...

What is needed to add emailing capabilities to web application?

I have java web application to which I'd like to add emailing capabilities, however, I'm unsure what is needed to accomplish this. Specifically I want my app to be able to: Send emails confirming sign-up Allow users to send emails to one another, using my app's domain i.e. [email protected] From my research it seems I'll need a mail tra...

How can I unit test a servlet with a request that just consists of xml content

I'm trying to unit test a java WFS web service implementation. The service can accept requests containing KVP params such as: http://www.someserver.com/wfs&amp;SERVICE=WFS&amp;VERSION=1.1.0&amp;REQUEST=GetFeature&amp;TYPENAME=InWaterA_1M or it can also accept a request containing an XML fragment such as <?xml version="1.0" ?> <...

Best tools web app that makes heavy use of dragging and dropping widgets on a page

I'm in the research phase for a web application I'm considering building and need some advice on the best choosing the best technology for the job. The app will make heavy use of dragging and dropping widgets onto a page and on top of other widgets. Two frameworks I'm aware of that have good support for this kind of thing are Sproutcor...

How to program dynamic preview on site

Hi! I'm asking for some orientation and recommendations for developing something similar like the yahoo movies page: http://movies.yahoo.com/ I don't know how the thing at the top with the arrows and different title of movies is called but I've seen it several times.(the one that has 4 options:expendables, yogi bear, etc) I want to add ...

Error while starting Apache

I am getting following error while starting apache. Can't locate /usr/sbin/webmux.pl in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /...

Web-Application Security with Apache Shiro Configuration Problems

Hi folks, I decided to use Shiro to secure my webapplication. I use a tomcat app server, maven, hibernate and jsf. Now I tried to configure Shiro but got some problems. Here are my files: ---POM.xml--- <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-core</artifact...

Execute code after Http resonse is sent

Hello, In a Java web application, is there any way to execute some code after and depending on the HttpServletResponse that has been sent to the client? Thanks in advance. ...

JSF not rendered when the url has a parameter

My problem is that when I for example do this <h:outputLink value="changeinfo.jsf"> Change name <f:param name="change" value="name"/> </h:outputLink> then the requested url is http://localhost:45054/WMC/user/changeinfo.jsf?change=name My url pattern for the faces servlet look like this <servlet-mapp...

How do you handle multiple files in a form submission using Apache2::Upload?

I'm writing a small web application using Perl, HTML::Mason and Apache. I've been using Mason's usual <%args> method for receiving 'normal' form parameters, and Apache2::Upload for receiving files. However, I want to write a page that allows a user to upload multiple files, and I'd like to take advantage of HTML5's multiple attribute t...

Default initialization of variables in action forms.

Hi Guys, i have made a from like : MyForm extend ActionForm{ list<Menu> MenuList=null; MyForm(){ super(); setMenuList(); //initialize menu list } } Menu object has string desciption and boolean variable for selected or not. In web page, i am iterating the list to display all the menus and checkbox over those boole...

Primary keys on webforms (load initially or on save) ?

This is just a general question irrespective of database architecture. I am maintaining an ASP.NET web application. The structure is such that, Say on 'Add a new employee' webform The primary key (or the record id to be saved with) is initially loaded on form load event & displayed as a label So when the form loads, the record id to ...

How to get client-side dateTime in server-side ASP script?

I need to get the browser user local date and Time on my server side asp vbscript page. The goal is to show a specific message to all connected users that are in conversation at a specific local time in my web chat application. Is that possible? One way is to include the local time on an hidden text field and then pass it through usin...

Python decorators and class inheritance

I'm trying to use decorators in order to manage the way users may or may not access resources within a web application (running on Google App Engine). Please note that I'm not allowing users to log in with their Google accounts, so setting specific access rights to specific routes within app.yaml is not an option. I used the following r...

Proper way to edit existing entity in tipfy

I'm using a PersonEditHandler class in tipfy to edit a Person entity. I have the get() and post() methods formed, but when I reference self.person (to check if the get method found the existing person by key), I get an 'object has no attribute' error. This is because I never initialize it in the init method since I'm inheriting from...

Packaging/Deploying web applications in rpm format

Is it a good or a bad idea to package and deploy web applications in rpm format. Did anyone experiment with this. ? Thank you ...

Singleton database.php

If I have a database.php class (singleton) which reads and writes information for users of my web application, what happens when simultaneous requests for the same database function is called? Is it possible that the database class will return the wrong information to other users accessing the same function at the same time? What othe...

Google App Engine - When to use it, when not too?

It's still unclear to me when I should or should not use Google App Engine to deploy a commercial web application. It appears Google has "business" level support. http://code.google.com/appengine/ Can someone bullet list when I should use Google App Engine and when I shouldn't use it for a web application ...