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

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
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

Categories

HOME
wso2
openmp
gremlin
relative-path
jsp-tags
gis
serverspec
ios-charts
modelica
jplayer
n-gram
task
fallback
clearcase-ucm
footer
code-review
google-cloud-speech
shared-hosting
mmap
java-7
semantic-analysis
url-scheme
kannel
filezilla
windowbuilder
quote
gsoap
nameservers
junit5
stringtemplate
commit
wallpaper
devextreme
jquery-bootgrid
automake
serverside-rendering
az-application-insights
document.write
webdriver-manager
squib
ws-security
android-tabhost
gulp-sourcemaps
firebase-admin
angular-resource
avconv
dotnetzip
mu
libusb-win32
windows-mobile-6.5
django-scheduler
minimization
ableton-live
firmata
rotativa
file-writing
py2app
ctest
gstreamer-0.10
lttng
disque
lua-5.1
netmq
energy
iad
wyam
angular-leaflet-directive
emailrelay
event-bubbling
apache-commons-fileupload
sniffer
mmc
remobjects
sonarqube5.1.2
apache-commons-net
directoryservices
geonetwork
sorl-thumbnail
clicktag
camanjs
has-many-through
typeof
navigationservice
funcunit
jquery-layout
poller
kgdb
centos5
openlaszlo
intentservice
floating-point-precision
c18
oam
xsockets.net
spring-io
jquery-mobile-dialog
random-seed
browser-detection
libstdc++
pysimplesoap
dsn
semantic-diff
adk
data-loss
w3wp.exe
google-friend-connect
asp.net-mvc-areas
ext3
web-architecture
noscript
ntvdm.exe

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