Skip to content

Instantly share code, notes, and snippets.

@yasakbulut
Created August 14, 2014 13:16
Show Gist options
  • Select an option

  • Save yasakbulut/85f1bbec1cfe5c33ee98 to your computer and use it in GitHub Desktop.

Select an option

Save yasakbulut/85f1bbec1cfe5c33ee98 to your computer and use it in GitHub Desktop.

Revisions

  1. yasakbulut created this gist Aug 14, 2014.
    23 changes: 23 additions & 0 deletions addPost.jsp
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    <%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    </head>
    <body>
    <h1>Add new blog post</h1>
    <div>
    <form action="./addPost" method='POST'>
    <label for="title_input">Post Title:</label>
    <input type="text" name="title" id="title_input">
    <br>
    <label for="content_input">Content:</label>
    <textarea name="content" id="content_input" cols="30" rows="10"></textarea>
    <br>
    <button type="submit">Add Blog Post</button>
    </form>
    </div>
    </body>
    </html>