Keep in mind an XMLHttpRequest is very much the same as any other client
side request as far as tomcat is concerned and follows the same rules.
As a test, try a direct access via the browser. If it doesn't work, it
won't work in javascript either.
--David
Chris Pat wrote:
Hi David
That is
Chris Pat wrote:
> Hi David
> That is just macro syntax. The real issue is why/how to avoid the security
> violation on using xmlhttprequest when launching the webapp from localhost or
> externally. I dont understand what to put where and how to access it so to
> allow xmlhttprequest to execut
Hi David
That is just macro syntax. The real issue is why/how to avoid the security
violation on using xmlhttprequest when launching the webapp from localhost or
externally. I dont understand what to put where and how to access it so to
allow xmlhttprequest to execute.
David Smith <[EMAIL P
No comment on the whole bean construct other than to say that's too
complicated for my tastes.
My personal preference on the whole resources inside of WEB-INF front is
to just place the resources outside of WEB-INF. Then configure a
security constraint or write a filter on the request to hand
Hi David
I did it partially this way, and it works. My objects in the js file are
executing.
http://:/
decarta javascript api example
/extPages/myScripts.js">
However I still get the "Permission denied to call XMLHttpRequest.open... I
thought by putting a jsp:forward outside my WEB-INF
As for that last bit, I have found
that you can specify the path as /FolderInWebApp/Script/myScript.js
You still need either the context path or make it relative to the page's
URL or the client won't be able to resolve it. This doesn't work like
the jsp internals that are aware of the context
Hi David
Thanks this is EXACTLY the syntax I was looking for and doing precisely what I
expect.
David Smith <[EMAIL PROTECTED]> wrote: If you are linking from inside a jsp
page and using jsp spec 1.2+ /
servlet spec 2.4+, you can do this:
src="${request.contextPath}/intPages/myScripts.js">
If you are linking from inside a jsp page and using jsp spec 1.2+ /
servlet spec 2.4+, you can do this:
src="${request.contextPath}/intPages/myScripts.js">
The comment is there if you are using xml valid jsp to prevent tomcat
from collapsing the script tag and breaking it in IE.
hmm what exactly do you need ajax for? From my recollection, ajax is
simply a method of making mini-requests to the server so the interaction
with your webapp is a bit more fluid. As for that last bit, I have found
that you can specify the path as /FolderInWebApp/Script/myScript.js
instead of using