Skip to main content

Posts

Showing posts with the label web-development

How do I remove the root element of my Jetty webapp url?

I am running a Java webapp (let's call it mywebapp). Currently I access my page in this webapp by pointing locally to: http://localhost:9000/mywebapp/mystuff However, I need to access it using: http://localhost:9000/mystuff How can I do this? I've tried messing with some confs, but to no avail... This is my current root.xml: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> <Configure class="org.mortbay.jetty.webapp.WebAppContext"> <Set name="contextPath">/root</Set> <Set name="war"> <SystemProperty name="app.webapps.path"/>/mywebapp.war </Set> </Configure> Also tried: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configu

Is there any way I could auto-fill the fields on this registration page?

I have a link to a registration page: Registration Page When I take users to the page, I'd like to save them a load of time, frustration and calories to burn, by filling in the fields automatically. The whole form is ran in JavaScript and JQuery by the looks of things, but I have no idea where I would start to actually do something like this. I have the users details (to input into the fields) in a SQL db, so some PHP parsing to start off with. Any ideas where I'd go from there? SORRY,forgot to mention: I don't have any moderation access to the Reg page.