Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsp 引导行链接,仍不工作_Jsp_Spring Mvc_Twitter Bootstrap - Fatal编程技术网

Jsp 引导行链接,仍不工作

Jsp 引导行链接,仍不工作,jsp,spring-mvc,twitter-bootstrap,Jsp,Spring Mvc,Twitter Bootstrap,我意识到在这个特定的话题上有很多问题,但我已经尝试了所有这些解决方案,但都不太管用。或者我做错了什么,如果你看到了请指出 因此,我有一个SpringMVC应用程序,带有实现Twitter引导的JSP页面。在其中一个表中,我得到了一个由JSTLforEachcycle填充的表。这就是我似乎无法让它工作的地方。以下是我得到的: <table class="table table-hover" data-provides="rowlink"> <thead>

我意识到在这个特定的话题上有很多问题,但我已经尝试了所有这些解决方案,但都不太管用。或者我做错了什么,如果你看到了请指出

因此,我有一个SpringMVC应用程序,带有实现Twitter引导的JSP页面。在其中一个表中,我得到了一个由JSTL
forEach
cycle填充的表。这就是我似乎无法让它工作的地方。以下是我得到的:

<table class="table table-hover" data-provides="rowlink">
    <thead>
        <tr>
            <th>Title</th>
            <th>Author</th>
            <th>Last Mod</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        <c:forEach var="recipe" items='${recipes}'>
            <tr>
                <td><a href="/recipes/${recipe.id}">${recipe.inputTitle}</a></td>
                <td>${recipe.author}</td>
                <td>${recipe.timestamp}</td>
                <td><a class="btn btn-small btn-primary" href="/recipes/${recipe.id}"><i class="icon-list icon-white"></i> Detalhe</a></td>
            </tr>
        </c:forEach>
    </tbody>
</table>
我尝试将
class=“nolink”
添加到提供链接的
中,也尝试将其添加到我放置
class=“rowlink”
中,但两种方式都不起作用


因此,关于整行可点击的问题已经解决,我只想删除第一个表字段上的链接突出显示。

'rowlink'是Jasny的一部分:-您为此包括必需的.js吗?是的,我在其中包括必需的.js和.css。尝试将
class=“rowlink”
添加到
循环内的标记。是的,这就使得整行都可以点击。不过,这并不完全是我所需要的。表的第一个字段仍然突出显示为链接,我不希望这样。我要用新的片段编辑这篇文章,晚些时候。不知道内容,我猜forEach是在服务器上运行的?如果没有,请尝试这样做:var theTable=$(“#您的表”);table.rowlink(theTable.data());
    <table class="table table-bordered table-striped" data-provides="rowlink">
        <thead>
            <tr>
                <th>Title</th>
                <th>Author</th>
                <th>Last Mod</th>

            </tr>
        </thead>
        <tbody>
            <c:forEach var="recipe" items='${recipes}'>
                <tr class="rowlink">
                <a href="/recipes/${recipe.id}">
                    <a href="/recipes/${recipe.id}">${recipe.inputTitle}</a></td>
                    <td>${recipe.author}</td>
                    <td>${recipe.timestamp}</td>

                </a>
                </tr>
            </c:forEach>
        </tbody>
    </table>