It's not a secret anymore!
The moose likes JSP and the fly likes Calling JavaScript using EL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Calling JavaScript using EL" Watch "Calling JavaScript using EL" New topic

Calling JavaScript using EL

Ed Carrington
Ranch Hand

Joined: Oct 11, 2007
Posts: 77
I am trying to call a JavaScript function using EL.
My below attempt outputs the following exeption:
The function dateInfo must be used with a prefix when a default namespace is not specified
Please advise.

David Newton

Joined: Sep 29, 2008
Posts: 12617

EL runs on the server; JS runs on the client. It's not going to work.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63349

Read this article to find out how JSP works.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Calling JavaScript using EL
It's not a secret anymore!