如何使用jsp文件链接bootstrap文件

时间:2016-01-28 17:58:22

标签: java twitter-bootstrap jsp

好的,我是JSP的新手,我试图在JSP文件index.jsp中创建一个带按钮的简单表单,并将其链接到bootstrap。我无法弄清楚如何从JSP调用引导程序文件。这是我的JSP代码:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!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=ISO-8859-1">
        <link href=”Bootstrap/css/bootstrap.min.css” rel=”stylesheet” type=”text/css” />
        <script type=”text/javascript” src=”Bootstrap/js/bootstrap.min.js”></script>
        <title>Bootstrap Project</title>
    </head>
    <body>
        <div class=”container”>
            <form role=”form”>
                <div class=”form-group”>
                    <label for=”exampleInputEmail1″>Email address</label>
                    <input type=”email” class=”form-control” id=”exampleInputEmail1″ placeholder=”Enter email”>
                </div>
                <div class=”form-group”>
                    <label for=”exampleInputPassword1″>Password</label>
                    <input type=”password” class=”form-control” id=”exampleInputPassword1″ placeholder=”Password”>
                </div>
                <div class=”form-group”>
                    <label for=”exampleInputFile”>File input</label>
                    <input type=”file” id=”exampleInputFile”>
                    <p class=”help-block”>Example block-level help text here.</p>
                </div>
                <div class=”checkbox”>
                    <label>
                        <input type=”checkbox”> Check me out
                    </label>
                </div>
                <button type=”submit” class=”btn btn-default”>Submit</button>
            </form>
        </div>
    </body>
</html>

这是我的文件夹安排: Project Folders

我使用Eclipse IDE和Tomcat作为服务器。我哪里错了?

感谢。

0 个答案:

没有答案