JSFiddle - React, Tailwind, and code Playground

by Menuka Ishan

HTML

<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<html>
<head>
    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
    <title>Spring MVC Form Handling</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <h2>Modal Example</h2>
    <!-- Trigger the modal with a button -->
    <button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Open Modal</button>

    <!-- Modal -->
    <div class="modal fade" id="myModal" role="dialog">
        <div class="modal-dialog">

            <!-- Modal content-->
            <div class="modal-content">

                <h2>Student Information</h2>
                <form:form method="POST" action="addStudent">
                    <table>
                        <tr>
                            <td><form:label path="name">Name</form:label></td>
                            <td><form:input path="name" /></td>
                        </tr>
                        <tr>
                            <td><form:label path="age">Age</form:label></td>
                            <td><form:input path="age" /></td>
                        </tr>
                        <tr>
                            <td><form:label path="id">id</form:label></td>
                            <td><form:input path="id" /></td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <input type="submit" value="Submit"/>
                            </td>
                        </tr>
                    </table>
          ...