我正试图获取在一份联合后勤业务守则中设定的一些联合后勤业务变量,以便纳入其中。
例:
<c:forEach items="${cart.entries}" var="entry">
<jsp:include page="helper.jsp"></jsp:include>
</c:forEach>
Inside helper.jsp 我想能够提及变量条目。 它一直空洞。 我认为,或许可以采取某种办法,在你能够拥有正常固定变量的每种变数之间增加空间。
Any ideas?
我正试图获取在一份联合后勤业务守则中设定的一些联合后勤业务变量,以便纳入其中。
例:
<c:forEach items="${cart.entries}" var="entry">
<jsp:include page="helper.jsp"></jsp:include>
</c:forEach>
Inside helper.jsp 我想能够提及变量条目。 它一直空洞。 我认为,或许可以采取某种办法,在你能够拥有正常固定变量的每种变数之间增加空间。
Any ideas?
ANSWER:我最后不得不这样做,才能工作。
<c:forEach items="${cart.entries}" var="entry">
<c:set var="entryFC" value="${entry}" scope="request"></c:set>
<jsp:include page="helper.jsp"></jsp:include>
</c:forEach>
然后,我就提到进军。 不仅如此,其做的只是想人不喜欢。
我知道,回答这个问题很晚,但对于陷入这种局面和寻求答案的人来说,会有所帮助。
如果你没有严格限制使用<代码><jsp: 包括并gt; tag,以包括jsp,那么我的答复将奏效。 相反,你可以使用<代码><%@include file=”/WEB-INF/views/path-to-jsp.jsp” %>在网页上进口另一个jsp,该网页可使用<c:forEach>
tagoping/2007/5。
例如。
<c:forEach items="${users}" var="user">
<%@include file="/WEB-INF/views/path-to-jsp.jsp" %> <!-- here ${user} can be use in importing jsp file. -->
</c:forEach>
它的工作是:<%@include file=”%>
tag将把指定档案的内容注入包含标签的联合项目,如加以复制和复制。 在对包括档案的内容进行分类之前,就这样做,而不是在含有共同财产清单的情况下加以分类。 这更类似于C #include指令,在该指令中,在预处理过程中,在档案汇编之前,该档案被“搁置”。 在列入内容之后,对内容进行评价,所有情况相同,因此,如果内容简单分类,则列入《守则》的准入和制约因素相同。
而<jsp:include page=”/>
tag的所作所为有所不同,因为在标签点将特定网页的提供结果注入含有共同财产的文件。 这样做的主要是将所要求的网页作为单独的翻译要求,并取得结果,而不是档案内容。 这项请求是在自己的背景下进行的,也就是说,它没有使用包含标签的同一页信息。 这可能是多余的,特别是如果包含的内容可能有相互矛盾的变量,例如。
Is it possible to use a select statement so that it returns Max and min columns of a child row foreach Parent record? So foreach parent record that has MANY child records I want to see the Max and ...
I m not quite sure how to do this in SQL. Here it is in pseudocode: Take the list of nodes with content type X. For each node, take the value of field Y. Insert into term_nodes VALUES ((tid that ...
What is the bare minimum amount of code to create a custom container that would work with Qt foreach macro? I have this so far template< class T > class MyList { public: class iterator { ...
I ve seen similar questions on here but I can t seem to apply the solutions to my problem. I have a variable called $results which I got from an API. I ll change the proper nouns so as to protect my ...
I m using a foreach loop to process a large set of items, unfortunately it s using alot of memory. (probably because It s doing a copy of the array). Apparently there is a way to save some memory with ...
I want to hide or show a column based on variable data from a users selection. How do you set a column to hidden in MS-Access 2003? For Example, After user change event... For Each ctl In Me....
I am having some trouble creating a for loop within a constructor to iterate over a map and an array at the same time. Here, it is indicated that this cannot be done with an enhanced for loop. I have ...
The following code prints (when invoking MyMethod): 0 0 0 1 I would expect it to print: 0 0 1 1 Why is this? Code: private struct MyStruct { public MyInnerStruct innerStruct; } private ...