Demo entry 2761614

nanana

   

Submitted by anonymous on Sep 27, 2015 at 21:02
Language: Java. Code size: 333 Bytes.

import javax.servlet.annotation.WebServlet;

import servletio.*;
import servletio.annotation.*;

@WebServlet("/base-path/*")
public class MyApp extends ServletIO {

    @Get("/edit/:id")
    public Result edit(Request req){
        return respond("<h1>the url has: " + req.param(":id") + "</h1>").as("text/html");
    }
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).