我有以下使用library(stringr)
df$geneID <- paste0('ENSG', str_pad(df$geneID, width = 11, pad = '0'))
df
# geneID Sample.290
#1 ENSG00000000001 0.4018499
#2 ENSG00000000010 0.2694255
#3 ENSG00000000100 1.4441846
#4 ENSG00000001000 13.7652753
#5 ENSG00000010000 2.1552100
#6 ENSG00100008586 0.2358481
@ModelAttribute
如何从jsp发送@ModelAttribute(value = "getRelatedNames")
public Map<String, String> getRelatedFormNames(String value) {
// Logic to get and return the related names
}
字符串?我试过了
value
和
<c:forEach var="nameMap" items="${getRelatedNames('testString')}">
<option value="${nameMap.key}">${nameMap.value}</option>
</c:forEach>
但是我收到以下错误:
<c:forEach var="nameMap" items="${getRelatedNames(value = 'testString')}">
<option value="${nameMap.key}">${nameMap.value}</option>
</c:forEach>
答案 0 :(得分:0)