web-applications

Cross-Domain Cookies

I am trying to have two webapps such as WebApp1 and WebApp2. I am setting one cookie in WebApp1 in the HttpResponse. How to read the same cookie from HttpRequest at WebApp2? I know it sounds weired b'coz cookies are specific to websites, we cant access it from different webapp. But i heard of CROSS-DOMAIN cookies which can be shared ...

Novice question about building a program

I'm interested in doing a start-up website that would feature a program that would allow me to update data on a daily basis that would alter projected values. For example, if I wanted to rank the top ten family vacation sites, or public golf courses, or investment firms, etc... for a particular state. Each item would receive a value bas...

When does it make sense to use Spring WebFlow on top of Spring MVC?

Spring MVC has become a very popular framework for building enterprise web applications. Any complex web application has certain flows that need to be coded, including some conditional flows (i.e., show order processed if the credit card information was correct, or validation errors if something was not entered correctly). When does it...

Why having multiple managed beans?

This is more of a general question, so that I a better understand about JSF and managed bean. So when people having multiple managed bean, is it solely because they want to group methods with the same scoped(RequestScoped, ApplicationScoped, SessionScope...) together? Or is there some other reason? What would happen if you inject managed...

Sending data to django site

I am trying to build a django service to which numerous clients will send data. Each client will represent an authenticated user, who might be connected to the internet or not, so the client will aggregate the data and send them when a connection is available. The data should also be persisted locally so that they are accessed quickly wi...

App Engine (python) skips webapp middleware (like Appstats) in production but works fine on dev server

I'm using App Engine python to host an application and would love to use Appstats and a couple of other libraries that run as middleware. However, when I set up middleware through appengine_config.py (as shown below) it works on the dev server but not in production. Appstats AND gaesessions work like a charm in the dev server and don't...

Java Webapp: catch 22 regarding dev/prod builds for a .war

There's something I just don't get regarding config files and dev or prod environments. If you have a .war and want to use the same .war in dev and prod (because the point of the dev environment being, well, to test that the .war is working fine, hence you don't want to test that .war and then deploy another .war right!?), then where do...

Is it portable to reference the request parameter map after a request-cycle?

I'd like to know if its conform to the java servlet specification 2.5 to reference/save the return value of request.getParameterMap() between requests. The final specification only states at page 203: Returns: an immutable java.util.Map containing parameter names as keys and parameter values as map values. The keys in the parameter map...

Matplotlib: interactive plot on a web server

hi, I'm currently using Open Flash Chart 2 on my django website, but I find it insufficiently customizable. (It's great when you want the usual barcharts, piecharts, but what about homemade shapes...). Although it's open source, I don't feel like diving in the Flex code. I'm thinking a lot about matplotlib but the documentation is rathe...

online game best-practice

I'm developing a django-based MMO, and I'm wondering what would be the best way for server-client communication. The solutions I found are: periodical AJAX calls keeping a connection alive and sending data through it Later edit: This would consist in "you have a message", "user x attacked you", "your transport to x has arrived" and ...

Web-based .NET SQL database manager

I have an ASP.NET project and would like to create a page where my system admins can modify database table data (insert, update, and delete rows). First, I have a drop down that is databound based on the tables in the database: DdlTable.DataSource = from x in dc.Mapping.GetTables() orderby x.TableName.Replace("d...

How long should reset-your-password links be available?

In a web application, if the user forgets his password, its fairly common practice to send an email to the user with a temporary link or password that expires after a given amount of time. Most of the posts I read on SO suggested expiring the link after 24 to 72 hours, but it seems to me that it would really only be needed for about 10 ...

Updating Method in Web-Based application - Java Servlets

I'm writing a servlet based back-end for a mobile phone app and I'm pretty new to web programming in general. Anyways my issue is I have a data model that associates users to a general feed and when that feed is updated by any one user I want the rest of the users associated with the feed to receive the updated model. From what I gat...

PHP: Creating Extensible CMS System

Hello, I have been given a new task from the client which is basically creating a CMS for actors/singers and the like that client will be selling out to them. It will basically be a package and would work out-of-box pretty much similar to WordPress, you just hand over to whoever buys it but of course this is not going to be a blogging ...

How to program an application with unknown future modifications and features?

Background I'm not new to programming, however I am when it comes to handling clients and their needs. Here's my history with my current client: I inherited a PHP application with it being 2/3 completed, continued to make it 100% completed until the client wanted (major) features that caused the application and database to need to be re...

JSF2: navigation flow question

I am not sure if what I want is possible, but it worth a try to ask. Let say, I have 2 pages: List.jsf and CreateNew.jsf. List.jsf display data from datasource as <p:dataTable>. CreateNew.jsf insert a new entry into the datasource. What I want is from CreateNew.jsf, when I click create, it create a new entry in a database, then return ba...

Any architecture tips for sending out daily, weekly email updates that require calculation.

I have a web app that will send out daily, weekly email updates depending on the user permissions and their alert settings (daily, weekly, monthly, or none). Each email to an account (which would have multiple users) requires a few DB calls and calculations. Thus making these daily/weekly emails pretty expensive as the number of users ...

Screen capture of a java applet

I'd like to "capture" a screenshot of what a java applet would currently look like if it were loaded, effectively screenshoting an applet without the use of a vdu. The purpose of this is to display the image to a user that doesn't have a JVM. Lets assume the applet is a digital clock and has no requirement on user input. So what could b...

Programming language or tool for web-based Visio-like drawing as applied to product configurator

I have extensive experience with MS Visio Solution development, and have a need to provide similar functionality in a web interface in the context of a heavily visual product-builder or "configurator". Visio functionality that I hope to reproduce: Visual shapes stored in a sidebar, from which the user drags and drops onto a drawing are...

Blocking a record from editing while another user is editing the record - how?

I'm trying to add record locking to a site. This isn't database locking where I have 2 processes editing the same record at the same time, but instead 2 users editing the same record at the same time. Here's the situation: I need to be able to lock a record while 1 person is editing it so someone else can make changes to record at the s...