Commit 9d159196 authored by Tianyi Zuo's avatar Tianyi Zuo
Browse files

Test if the radio button is working

parent 362e31e8
Pipeline #63075 canceled with stages
in 8 seconds
......@@ -27,6 +27,10 @@ public class WebServer {
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
String query = req.getParameter("q");
String type = req.getParameter("t");
if(type == "markdown"){
System.out.println("Is a mark down!");
}
if (query == null) {
new IndexPage().writeTo(resp);
} else {
......
......@@ -22,7 +22,7 @@ public class IndexPage implements Page {
"<form>" +
"<input type=\"text\" name=\"q\" />" +
"<form action=\"\">" +
" <input type=\"radio\" name=\"file_type\" value=\"pdf\"> pdf<br>"+
" <input type=\"radio\" name=\"t\" value=\"markdown\"> markdown<br>"+
// "<input type=\"radio\" name=\"gender\" value=\"female\"> Female<br>"+
// "<input type=\"radio\" name=\"gender\" value=\"other\"> Other"+
"</form>"+
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment