web-applications

How can I build WAR with Maven in Eclipse?

I have project that I'm now starting as Maven project, but for some reason it is not working. Here is my pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt; <modelVersi...

Why do I get TypeError: get() takes exactly 2 arguments (1 given)? Google App Engine

I have been trying and trying for several hours now and there must be an easy way to retreive the url. I thought this was the way: #from data.models import Program import basehandler class ProgramViewHandler(basehandler.BaseHandler): def get(self,slug): # query = Program.all() # query.filter('slug =', fslug) ...

Can you pull data from a spreadsheet that is security protected?

If our finance department wants us to create a web app that pulls data from a spreadsheet calculation, based on user input, but also want that spreadsheet to be private from all developers working on the app, is this possible? How do companies launch an app with sensitive information that they want to protect? Can you access data from ...

ServletContext getContextPath()

I checked the javadocs of the Tomcat library I have included under my Netbeans project, and when I deploy the code works fine, but when I do a clean-build of my web project I get a "cannot find symbol" on the getContextPath() method of the ServletContext interface It's driving me completely insane because in order to run my tests and so...

Grails and multithread process

Hi, I have a grails app and I need to trigger an cpu-intensive process. I'm thinking in creating a service that spawns multiple threads that do the same calculations but with random data to compare the results later on. Is it safe to do it this way ? Any recommendations / experiences ? Thanks. ...

Using CMS in web development.

What are advantages and drawbacks in CM systems. What cases are suitable for CMS adaptation? Performance issues... et cetera... ...

Reading info from sqlite database, Syntax? How do I use it in html5 webapp?

I have a webapp that I'm building, and have just started with SQLite. I have been able to create my form, open the database I created, create the table, and fields i need, and enter data into the fields. Now I'm trying to read the data back out with a SELECT statement, to show it on screen and as a list of the columns. I just don't ...

Glassfish JAAS active directory

I'm attempting to use JAAS in Glassfish to handle authentication and authorization in my web applications against Active Directory. First off I have written some POJO programs that can successfully connect to my AD and authenticate against the users and groups I have setup. So I am confident that the usernames, passwords, and groups I'm ...

How would you go about building distributed internet-scale systems ?

Hi, There are many job descriptions having a phrase similar to "building distributed internet-scale systems" in the list of required skills. Although I do have a basic sense of what it probably involves (using technologies like Hadoop, key-value stores, message queues, focusing on scalability, availability etc), could you describe how...

How do sites count other sites' visitors and "value", and how can they tell users' location?

Hi actually this is a simple question but just came up out of the curiosity... I have seen a web evaluation online tool recently called teqpad.com.I have lots of queries on it How do they do it?? eg:page views daily visitors etc. without mapping real website??... Website worth...is this getting any near to any site?? I don't know how ...

Downloadable database of software products

I'm making a website to track which software is used internally in my company. Is there a downloadable database which contains as much software product as possible, along its description. If I can get all sourceforge.net and code.google.com projects as database for instance - it could be really nice. The only option I saw so far is to ...

Which architecture should I select for a web based CRM app?

I m planning a web based CRM app. Target users will be small firms with few hundred clients. I am planning to use Rails framework and Rackspace Cloud Server/Amazon EC2 for hosting. Since the data will be confidential I would prefer not to use a single database for all users. Does that mean that I will have to fire up a new instance of...

iPhone HTML5 App Scrolling Question

I don't know if this is even possible or what to Google to find it, but like you can add: <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"/> And it will make it so you can't scroll side to side, only up and down. Is there a way to make it so it doesn't do that overscroll effect...

How to connect C++ code to an application?

Suppose I have some function, say in C++ int f() { // do some stuff } How do I connect it to a button in some application? It does not need to be a web application per se, it can be a normal desktop application (not a big difference, I guess). What all do I need to do to get this function to be called when I press a button in som...

JSTL vs Old School JSP EL Conflict?

I have been developing a web application for about six months with no framework or JSTL support. After recent decisions, I have decided that I am interested in integrating JSTL use into my development, but am not sure what the repercussions would be. If I were to begin using JSTL in my application, would I have to go back and refactor al...

How can I return gzipped css/js

I'm using .NET and the simple question is: How or can I let the web browser know that <script type="text/javascript" src="/Scripts/myjsfile.js"/> is gzipped? can I just append .gz to the source? This article, which is pretty cool, shows how to to compress my dynamic html by plugging into the Response.Filter stream object to return...

Deny access to login page to authenticated user in ASP.NET

Hi all, I'm working on an ASP.NET web application. We've got a login page (index.aspx), as well as a user's "home page", userhome.aspx. What's the most elegant way to deny a user to display index.aspx when they're logged in? At the moment, index.aspx can still be displayed by explicitly typing it into the browser address bar. I tried t...

How to change the vibility of a button in dashcode programmatically ?

Hello Everybody, i'm using dashcode for a webapp and in order to add a + button in the browser bar to a specific view i need to hide and unhide that + button. The problem is i really don't know how to do this. I tried to write on the screen all the button's properties and in fact there is a visible parameter but when i display the value ...

Best way to use welcome file in web application

Hello I have a Tomcat application where I have the choice to list the welcome (or index) page in the web.xml file as follows: <welcome-file-list> <welcome-file>/jsp/user/index.jsp</welcome-file> </welcome-file-list> And use scriptlets to call database methods to populate the page. Or I can use a servlet to call a welcome pag...

Insert API in a web page .class path

Hi! I would like to insert an API java into a web page. Even with such an easy code: applet code = 'Ejs.Simulations._apps._examples.HVmin' archive = 'Ejs/Simulations/_apps/_examples/HVmin/hVmin.jar', width = 300, height = 300 /> I get this error: cargar: clase Ejs.Simulations._apps._examples.HVmin not found. java.lang.Class...