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

JSP Quiz process is not giving me the correct percentage scored
Refer the id variable of logic - iterate using jstl-el
Invalid tagdir attribute while web-fragment is used
JSP foreach tag for two variables
Adding Parameter to href tag before uri
Servlet exception stream closed jsp
creating and exporting a csv from Display tag table
bean write to number type id
restrict image file size in alloy UI
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

Categories

HOME
yii2
openlayers
clips
atom-editor
mfc
at-command
setup-deployment
elm
cross-browser
windows-server
mouse
user-input
reveal.js
offline
collectd
google-apps-marketplace
clearcase-ucm
foselasticabundle
saxon
ab-testing
paging
errorlevel
graphicsmagick
realex-payments-api
microsoft-r
blazemeter
microsoft-sync-framework
fish
facet
poltergeist
fopen
tasklet
srcset
unboundid
instant-messaging
react-chartjs
xquery-3.0
code-contracts
caret
commit
openoffice.org
form-data
atl
cloud-code
overlap
qwerty
sqlite2
jna
opshub
azure-ml
optix
mapzen
mime
modelmapper
flashair
logfiles
jsch
outlook-2013
apache-fop
hendrix
celery-task
idisposable
svmlight
nstextview
recursive-datastructures
android-cursor
qtwebview
imanage
dwscript
eventkit
nxt
lua-5.1
sigabrt
energy
phpcas
iad
cartesian-product
sdhc
wordml
0xdbe
cakephp-3.1
microbenchmark
method-parameters
event-bubbling
appfabric-cache
mono-embedding
sailfish-os
generic-programming
oberon
e10s
formatjs
website-monitoring
qpainter
internet-connection
starcluster
hippomocks
balanced-payments
quantlib-swig
google-cloud-save
coverflow
opcache
interface-orientation
sharp-repository
referrer
tinn-r
path-separator
broken-links
datawindow
getmessage
asyncfileupload
spyware
joyent
cinema-4d
digest-authentication
infrastructure
perfect-hash
user-friendly
brewmp
libs
zune

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