ajax


JSTL foreach and AJAX load() not working


My app.jsp file is this:
<%# page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%#taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="shortcut icon" type="image/x-icon" href="imgs/ano_white.png">
<title>Home - Hackeet</title>
</head>
<body>
<div class="container">
<div class="mainCont"></div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="js/register.js"></script>
<script src="js/app.js"></script>
</body>
</html>
And my file call to AJAX is this:
$('.mainCont').load('register');
My JSP file is this:
<input list="teams" name="team" placeholder="Team Name">
<datalist id ="teams">
<c:forEach items="${teams}" var="team">
<option value="${team}"></option>
</c:forEach>
</datalist>
And the exit in chrome dev tools:
<c:foreach items="[Stratagee, The Best Team (TBT), Alex_peroGriego_TEAM, Excella]" var="team">
<option value=""></option>
</c:foreach>
As you see the elements are introduced correctly, but foreach is not working.
SOLVED, I include this:
<%#taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
In register.jsp file and all works

Related Links

Why do I sporadically receive a 400 (Bad Request) in my Bing News GET requests?
IE11 Ajax Request Only Made if Dev Tools Open
mvc ajax return partial view with model get the value of model in the success
enable ajax on datepicker prev/next
Execute only 1 POST function at a time
How Can I set $.ajax data the List<Entity> from Controller's ModelMap?
Use AJAX to update django if-else template
esp8266webserver evaluate get request parameter
Why does NGINX reverse proxy $.ajax post give “net::ERR_CONNECTION_REFUSED”
Rendering in AJAX
Django - reload div upon form submit
How to return the result using AJAX in CodeIgniter?
AjaxFileUpload, upload file error, any file over 32KB
How to pass Ajax Json object to the Controller Class in .Net Core?
I can't seem to generate content for dynamic content load
How to add AJAX to load my data from database using CodeIgniter

Categories

HOME
sidekiq
batch-processing
google-cloud-bigtable
reverse-engineering
webrtc
ubuntu-16.04
visualization
csvhelper
chaiscript
flyway
jrebel
iis-7.5
triggers
lotus-notes
hashicorp-vault
wysiwyg
google-openid
zoho
multicore
cvs2svn
apply
fop
dspic
azure-servicebus-queues
jquery-scrollify
restfb
philips-hue
edge-detection
fileinfo
autofill
hibernate-cache
android-vpn-service
svnkit
smart-mobile-studio
expand
division
passenger
remote-server
mmdrawercontroller
axis-labels
equivalence
common.logging
onbackpressed
dart-pub
productivity
resuming-training
cppunit
archer
lumen-5.3
ajp
range-v3
ti-basic
multi-agent
execl
hpcc
autoresize
libtiff.net
gradle-script-kotlin
children
gitweb
qregexp
shipitjs
mongoskin
loopj
galaxy
servlet-3.0
android-recyclerview
test-class
difference
geodjango
insert-into
mirrorlink
unity5.3
kendo-menu
xjc
pyopengl
bridge
code-first-migrations
google-earth-plugin
jai
client-side-validation
dmp
firebug-lite
facebook-wall
power-law
smartystreets
colt
voldemort
indexing-service
dbsetup
dvcs
baucis
cdata
sslexception
va-list
dynamic-binding
carddav
xslkey
pascals-triangle
vt100
returnurl
legacy-code
hibernate3
die
userid
nintendo
throttling
electronic-signature
surf
goliath
cookieless
nvelocity
pantheios
visual-c++-2008-express
project-lifecycle
rd

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