I'm trying something a bit different and just doing some general testing on an idea. But basically I am going to have a login form on every page that doesn't specifically require a login, but will unlock more features once the user logs in. I place all my JSP's under the WEB-INF folder. I have the following code:
My login jsp is simple:
Now what is happening is when I click the Login button, Firebug complains that login() is not a function. I have login defined in an included JS file. However, if I type login() at the Firebug console, the function is fond and fired.
Does this have to do with the way I am including the JSP (at compile time)? Is there something I can change to make this work? Thanks.
[ March 27, 2007: Message edited by: Gregg Bolinger ] [ March 27, 2007: Message edited by: Gregg Bolinger ]
Originally posted by Gregg Bolinger: Does this have to do with the way I am including the JSP (at compile time)?
No, that cannot be the problem. The response is assembled on the server and sent to the browser as a "normal" HTML document. The included-ness of the fragment is not relevant. [ March 27, 2007: Message edited by: Bear Bibeault ]