Forums Register Login

jsp tags inside javascript function

+Pie Number of slices to send: Send


list1 size is 10 records
list2 size is 10 records
list3 size is 13 records


if I pass 1 to the function. , I get first alert "list1 size = 10 "
but the last alert which displays the List size = as 13.


if I pass 2 to the function. , I get second alert "list2 = 10"
but the last alert which displays the List size = as 13.



what is the reason? how are jsp scriptlets executed inside javascript?
+Pie Number of slices to send: Send
Nothing to do with Struts. Moved to the JSP forum.
+Pie Number of slices to send: Send
 

Originally posted by shah rah:
how are jsp scriptlets executed inside javascript?



They aren't. Scriptlets -- along with all other server-side mechanisms -- are executed on the server long before the HTML page is sent to the browser and the JavaScript executes.

Perhaps this article will be helpful.
[ April 16, 2007: Message edited by: Bear Bibeault ]
What kind of corn soldier are you? And don't say "kernel" - that's only for this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 3645 times.
Similar Threads
What does it mean ?
call Action from javascript
Doubt with List assignment using Generics
Find matches in two collections
Linked List equals method
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 09:48:58.