I just got Java running on my Raspberry Pi which took a lot more screwing around than i had hoped. I want to be able to read/write data to/from the header pins from Java. How can I do this? Do I need to write a driver or some sort with C first in order to get the data from the header pins? I am running an instance of Soft-float Debian “wheezy." Is this even possible to do in Java? Are there any workarounds that I should know about? Thanks for reading!


Question: Weird jquery 302 error in Firebug
Answer: Your servlet is sending the redirect message, which gives you the 302 response header. It'd be better to send back an url, and redirect the user to it on success itself.

Like so:

$.post("scripturl", { data: data }, function(result) { 
    if (result.success) {
        window.location.href = result.url;
    }
})