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

Reusing JSP custom tags inside html
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

Categories

HOME
electron
webstorm
spagobi
read-eval-print-loop
xmpp
google-oauth
elm
electronics
icloud
enterprise-library-5
datastax-java-driver
in-app-purchase
constraint-programming
tomcat6
percona
after-effects
invantive-sql
lldb
tokenize
language-agnostic
zurb-foundation-6
cultureinfo
crystal-reports-2010
fgetcsv
c++-amp
skia
binary-data
bosh
semantic-versioning
code-contracts
grails-3.1
windows-dev-center
repo
http-referer
adobe-premiere
retina-display
hot-module-replacement
dynamics-crm-2013
objectlistview
streamreader
cookiecutter-django
sql-server-agent
gulp-sourcemaps
reportingservices-2005
texmaker
websphere-mq-fte
apple-news
google-datalayer
qsslsocket
prolog-setof
logparser
ifs
namecoin
hittest
color-profile
redundancy
smart-table
cubes
removechild
vmware-tools
home-directory
plottable.js
player
firebaseui
gridview-sorting
connect-by
persist
master-slave
captivenetwork
livequery
ipconfig
cannon.js
angular-leaflet-directive
php-ci
cisco-ios
skos
fscommand
tween
nstableviewcell
angularjs-ng-click
winddk
rdl
openexr
ceil
eol
jquery-layout
hyprlinkr
terminal-services
yui-compressor
html-editor
factory-method
viewswitcher
parametric-equations
heartbeat
self-extracting
floating
lang
mozilla-prism
asp.net-profiles
3gp

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