简体   繁体   中英

Failure in adding href in jsp page

I'm trying to add a link in one .jsp page using the a tag but it's not working. I have three jsp's in the Web Pages folder: index.jsp, login.jsp and page.jsp.

In my login.jsp i am doing: link But it's not working. What error am i doing?

    <h1>Hello World!</h1>
    <html:form action="/login">
        <table border="0">
            <tbody>
                <tr>
                    <td>Enter your name:</td>
                    <td><html:text property="name" /></td>
                </tr>
                <tr>
                    <td>Enter your email:</td>
                    <td><html:text property="email" /></td>
                </tr>
                <tr>
                    <td></td>
                    <td><html:submit value="Login" /></td>
                </tr>
            </tbody>
        </table>
    </html:form>
    <a href="/Web Pages/index.jsp"> hh</a>
</body>

好像... 1.移至没有空间的文件夹... 2. / WEB-INF文件夹中的文件不可公开访问,我们必须使用servlet FController等。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM