jsp-tags


Refer the id variable of logic - iterate using jstl-el


Facing a unusual challenge :
//Code
<logic:iterate id="list" name="accountRouteConfigListForm" property="valueList" indexId="incr">
<div <custom:align defaultAlign="left"/>>
<html:select name="list" property="accountStatus" onchange="onChangeStatus(${list.accName})"> //This is not working, how to refer accName in list
<html:option value="<%= String.valueOf(Constants.ENABLED) %>">
</html:option>
<html:option value="<%= String.valueOf(Constants.DISABLED) %>">
</html:option>
How do i refer a field inside a list and pass it as an argument to onChangeStatus
First, it seems you are missing an end tag for <logic:iterate> in your example code.
Second, unless you have a very good reason, try to use JSTL instead of the outdated struts custom tags. It's always good to stay with standards, right?
In your case, that would look like this:
<c:forEach items="${accountRouteConfigListForm.valueList}" var="list">
....
</c:forEach>

Related Links

The function getContextPath must be used with a prefix when a default namespace is not specified
how can i retrive parameters from EncodeURL using jsp?
onclick tag giving error in h:commandLink
Displaytag - How to pass hidden value in url?
Embedding Tag Files in a JAR
Errors when the compiler is trying to build a custom JSP tag based on an Java Bean
Creating nested custom tag using jsp2 tag files
Unable to access session on JSP
Dealing with <html:options>
No tag “tableFacade” defined in tag library imported with prefix “jmesa”
how to refer values of one jsp file to other jsp
incorrect username and passwords
creating the welcome page
How to use list object in <c:forEach tag?
How to call a Servlet when I click on a Hyperlink
EL Messages on JSP page

Categories

HOME
pypi
oracle11g
image-processing
mockito
iot
bpmn
spagobi
framework7
leon
graphql
frameworks
yum
django-imagekit
wheelnav.js
quicklook
resize
windows-server-2012
quickfix
opentracing
finite-automata
undefined
visual-composer
mmap
rundeck
one-to-many
buildbot
su
poltergeist
kannel
c++-amp
primitive
google-cloud-endpoints-v2
jspresso
column-family
perlin-noise
framemaker
avcapturesession
uiswipegesturerecognizer
cloud-code
google-api-nodejs-client
mmenu
force-layout
catalog
main
git-merge
libvpx
occlusion
c11
vapor
preconditions
heightmap
wptoolkit
angular-resource
appcompat
komodoedit
clean-architecture
typescript1.8
return-value
git-diff
mplayer
nstextview
colorama
composite-key
capacity
arrow-keys
static-ip-address
passport-google-oauth
rotativa
android-textview
savon
fody
flash-cs5
qgraphicsview
make-install
sdf
whois
yaws
system.management
cloudbees
prerequisites
collapse
metaclass
browser-bugs
mmc
system32
angular-local-storage
sonarqube5.1.2
facebook-graph-api-v2.4
sorl-thumbnail
coldbox
elliptic-curve
oracle-warehouse-builder
stxxl
flexmojos
mqx
kyotocabinet
angularjs-controller
ocx
gcj
genshi
django-tagging
javax.script
servicehost
dmx512
nsviewanimation
audio-capture
premature-optimization

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App