web-applications

Is it ok to return application/octet-stream from a REST interface ?

Am I breaking any laws in the REST bible by returning application/octet-stream for my responses ? The REST endpoint receives 5 image urls. { "image1": "http://ww.o.com/1.gif", "image2": "http://www.foo.be/2.gif" } and it will download these and return them as application/octet-stream. CLARIFICATION: The client that invokes this RES...

Web Crawler Application

Hi, can anyone recommend a website crawler that can show me all of the links in my site? ...

How can I combine WAR packaging and OSGi bundle creation in Maven?

I want to deploy one of my OSGi bundles with a war package structure so it is recognized as a web application by Struts. I use Maven, so I get WAR packaging built-in and I have the Maven bundle-plugin to create the OSGi compatible manifest for me. The problem is, the two don't work together, so the bundle plugin is not aware that the cl...

How do I deploy a webapp into Apache Felix?

What bundles do I need to install? At least, this would have to be a servlet container / web server such as Jetty, but will the basic org.apache.felix.http.jetty bundle do, or is there anything else needed to discover the web.xml in other bundles? Do I put the webapp in a standard WAR, add OSGi headers and am done? Or are there any weba...

From Idea to Solution - Next Step to take in Programming Project

I'm planning a programming project, but am an unexperienced programmer. Aside from a couple of intro courses in C and Java long ago, I know little about programming, except that I know what I want the end point of the project to look like Without getting too specific, what I want to do is this: Create a website where users can regist...

Restricting Save Location in Web Application?

I have a web application (ASP.NET MVC, running on IIS7) that exports files to CSV. All was fine and well, until the client requested that due to security concerns, only specific directory locations should be valid targets for the resulting "save" dialog when I send the correct MIME type and send all the data. Is this possible? An alter...

ASP.Net 3.5 website project VS web application project

I have an interesting scenario: - Site has 209,000+ pages. - Evertime a user submits a new article/item a new page is generated and if it has a refernece to one of the existing pages then that page is also re-generated and saved. - A windows service is looking after the generation of pages which creates a page(file) in the site directory...

Portable web applications framework

I like Gears (aka Google Gears), but it seems to need a lot of work and AJAX skills to enable off-line support in portions of web applications. What about distributing web applications were there is no web? I mean, something like server2go, a portable web server you can deploy along with database and PHP scripts. Is there some framework ...

Deleting files from a client machine

Is there a way to delete files on a client computer after they've been uploaded to a server? My web application allows users to upload files to a server and I'm trying to find a way to have the original files deleted from the computer on which they reside. Specifically, the web application provides the user with the ability to delete fi...

Recommendation on development framework for a browser based online product catalogue?

I have to develop a online product catalog which will eventually developed into a simple online ordering system, I have never developed a web application before. Please recommend an application framework which might be a good choice for this kind of apps. Is Ruby on Rails a good choice? Thanks. ...

Why do so many Ruby on Rails apps have missing trailing slashes?

Why do so many Ruby on Rails apps have missing trailing slashes in their URLs? One example is http://basecamphq.com/tour. AFAIK this goes against Web standards. Is it something to do with the way RoR is set up? ...

How do I get the scope attribute on my table headers when using MyFaces 1.1?

Hi, I'm using MyFaces 1.1.7 with Facelets and Tomahawk. When creating a regular data table, like: <h:dataTable value = "#{Datamanager.data}" var = "row"> <h:column> <f:facet name = "header"> <t:div> <h:outputText value = "Name" /> </t:div> </f:facet> <h:outputText valu...

Auhtorize.net (CIM) sample code not working with tomcat webapplication

I have been trying to integrate Authorize.Net ( Customer Information Manager (CIM) ) I got their sample code [ wsimport -s /tmp/RebillAPI -p AuthNet.Rebill https://apitest.authorize.net/soap/v1/Service.asmx?wsdl ] Their sample code works fine as stand-alone program, but not working in our tomcat web application. It throws an error below ...

How do I display real-time python script output on a website?

I have a Python script that outputs something every second or two, but takes a long while to finish completely. I want to set up a website such that someone can directly invoke the script, and the output is sent to the screen while the script is running. I don't want the user to wait until the script finishes completely, because then a...

Generic applet style system for publishing mathematics demonstrations?

Anyone who's tried to study mathematics using online resources will have come across these Java applets that demonstrate a particular mathematical idea. Examples: http://www.math.ucla.edu/~tao/java/Mobius.html http://www.mathcs.org/java/programs/FFT/index.html I love the idea of this interactive approach because I believe it is very ...

How should I best structure my web application using job queues [and Perl/Catalyst]?

Hi, I'm writing a web application using the Catalyst framework. I'm also using a Job Queue called TheSchwartz. I'm wanting to use a job queue because I'm wanting as much of the application specific code decoupled from the web application interface code. Essentially the whole system consists of three main components: GUI (Catalyst ...

Using Web Setup Project for multiple types of projects

Hi, I am trying to a create an installer for my web application. My solution contains several projects. They include: Class library project (referenced by the web application) Web Application Windows Service Web Services project Database project (execute update script) I also have an unmanaged dll (crystal reports) in my web applica...

Best practices in modelling user constraints in a webapp?

I'm building a webapp with role based access control using Acegi (Spring) security. So i have different users with roles: ROLE_ADMIN, ROLE_USER and etc. However, i need to implement various user constraints. Let's consider an example: Suppose, there is a site where users can watch movies online. There are users with roles ROLE_STA...

Django or similar for composite primary keys

I am writing a web application for my engineering company (warning: I am a programmer only by hobby) and was planning on using Django until I hit this snag. The models I want to use naturally have multi-column primary keys. Per http://code.djangoproject.com/ticket/373, I can't use Django, at least not a released version. Can anyone help ...

How to tell where the user is coming from?

Is there a reliable way to determine where a user is coming from in an ASP.NET application? We have a web application that is linked to from two different locations. The two links are on separate domains, and they need to dictate certain user permissions within this app. Here's what I have tried so far... Using Request.UrlReferrer (...