`
wuyizhong
  • 浏览: 50343 次
  • 性别: Icon_minigender_2
  • 来自: 南京
社区版块
存档分类
最新评论

select 循环 attribute id does not accept any expressions

阅读更多

居然这样只写 解决了

<select name="companyId">
<c:if test="${!empty listCompany}">
  <c:forEach items="${listCompany }" var="company">
    
  <option value="${company.id}">${company.chname }</option>
   
  </c:forEach>
</c:if>
</select>
<%-- <s:select list="" id="${val.count}" name="${val.count}" theme="simple" listKey="" listValue=""  --%>
<!-- 	cssStyle="width:100px;" onmouseover="this.title=this.options[this.selectedIndex].text">  -->
<%-- </s:select> --%>

 

在csdn上面看到这段,省得敲就拷贝了。对于这种s:select标签的id或者name里面有变量的,会报错,所以搜了一下,貌似没有解决方法。所以只好分下来写了。

分享到:
评论

相关推荐

    Android XML attribute

    ### Android XML Attribute详解 在Android开发中,XML文件扮演着非常重要的角色,特别是在定义界面布局、样式、动画等方面。为了帮助开发者更好地理解Android中的各种XML属性及其用途,本文将详细介绍部分核心XML...

    jsp之c标签用法实例分析.docx

    - 在JSP 2.4版本中,使用JSTL可能遇到与EL(Expression Language)的兼容性问题,导致错误提示“According to TLD or attribute directive in tag file, attribute value does not accept any expressions”。...

    java实验6(Person.java)

    Instantiate the other Person object with the default constructor (that does not accept any parameters), then set it's attributes via the appropriate setter methods. For each of the Person objects, ...

    .net中attribute实现方法调用拦截(就是aop)

    在.NET框架中,Attribute是一种元数据,用于向编译器、IDE、运行时环境等提供额外的信息。这些信息可以用来修饰类、接口、方法、属性等各种编程元素,从而实现特定的功能或扩展。AOP(面向切面编程)是一种编程范式...

    Attribute Weighting for Averaged One-Dependence Estimators

    However, AODE does not consider the relations between super-parent attribute with other normal attributes. In this paper, we propose a method based on AODE which weighted the relationship between the...

    glsl自定义attribute

    自定义attribute允许我们根据项目需求扩展默认的数据类型,例如,如果我们需要为每个顶点添加一个自定义的ID,我们可以创建一个新的attribute。 首先,我们将在顶点着色器中定义自定义attribute。例如,如果我们要...

    c#的attribute实例源码

    C#的Attribute是一种元数据,它允许我们向代码添加额外的信息,这些信息可以在编译时或运行时被程序集、编译器、反射或其他工具使用。Attribute不是代码的一部分,它们不直接影响程序的执行,但提供了方便的方式来...

    12 Deep Learning Interview questions you should not be missed

    12 Deep Learning Interview questions you should not be missed,深度学习的12个面试问题,分为Part I, Part II, Part III ,by JP Tech。

    PyPI 官网下载 | attribute_dict-1.0.0-py3-none-any.whl

    《PyPI官网下载 | attribute_dict-1.0.0-py3-none-any.whl》 在Python编程领域,PyPI(Python Package Index)是官方的软件仓库,它为Python开发者提供了一个集中分享和获取第三方库的平台。"attribute_dict-1.0.0-...

    __attribute__

    ### __attribute__ 在 C 语言中的使用方法 #### 一、引言 在 C 语言中,`__attribute__` 是 GNU 编译器集合 (GCC) 的一个扩展特性,它允许开发人员向函数、变量或类型添加元数据,从而增强编译时的错误检查能力并...

    Attribute在NET中的应用

    在.NET框架中,属性(Attribute)是一种元数据,可以附加到程序元素,如类、方法、属性等,为编译器、运行时环境或其他工具提供额外的信息。它们是编程中的一个重要概念,允许开发者向代码中添加非执行性的描述性...

    Attribute标记属性_资料收集

    Attribute标记属性在.NET框架中扮演着重要的角色,它是元数据的一部分,允许我们在代码中附加信息,这些信息在程序运行时可以被编译器、运行时或其他工具读取和使用。Attribute提供了一种灵活的方式来注解类、方法、...

    AttributeError: module 'tensorflow.compat.v1' has no attribute '

    AttributeError: module 'tensorflow.compat.v1' has no attribute 'contrib'的问题您具体怎么解决问题具体解决的seq_loss.py文件

    求解报错:AttributeError:module ‘os’ has no attribute ‘exit’

    python3 server.py 127.0.0.1 8888 ...AttributeError: module ‘os’ has no attribute ‘exit’ 部分代码入下: from socket import * import sys,os #实现登录 def do_login(s,user,name,addr): for i in user: i

    attribute的作用和具体使用方法

    ### Attribute的作用和具体使用方法 随着信息技术的飞速发展,软件开发领域中各种技术与工具不断更新迭代。在Web开发中,属性(Attribute)作为一项基础而重要的功能,被广泛应用于处理用户请求、数据传递以及页面...

    Property和Attribute的区别

    "Property和Attribute的区别" 在面向对象编程(Object-Oriented Programming)中,Property和Attribute都是常用的概念,但是它们之间存在着本质的区别。Property是指类向外提供的数据区域,是智能的字段,其中有get...

    attributeQuery.rar_AttributeQuery

    "attributeQuery.rar_AttributeQuery" 提供的资源是关于如何利用ArcGIS Engine (AE) 和C#编程语言实现一个特定类型的查询——框选要素并弹出其属性值的查询功能。这个功能对地图数据的分析和应用非常实用,尤其在...

    FileAttribute

    在IT领域,文件属性(File Attribute)是操作系统用于标识和管理文件的重要机制。它提供了关于文件的基本信息,如隐藏、只读、系统、存档等状态。这些属性可以帮助用户和程序更好地控制文件的访问和存储。现在我们来...

    ASP.NET MVC5 新特性:Attribute路由使用详解

    ### ASP.NET MVC5 新特性:Attribute路由使用详解 #### 一、Attribute路由简介与启用 在探讨Attribute路由之前,我们先来明确一下它的定义。**Attribute路由**是一种新的路由机制,它允许开发者直接在控制器的方法...

    attribute详细介绍

    ### Attribute详解:深入理解GCC属性 #### 概述 在Linux开发及GCC(GNU Compiler Collection)的使用过程中,深入理解`__attribute__`是至关重要的。`__attribute__`是GCC提供的一种特性,用于向编译器传递额外的...

Global site tag (gtag.js) - Google Analytics