Re: tc & xmlhttprequest

2007-09-11 Thread David Smith
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

Re: tc & xmlhttprequest

2007-09-11 Thread Pid
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

Re: tc & xmlhttprequest

2007-09-10 Thread Chris Pat
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

Re: tc & xmlhttprequest

2007-09-10 Thread David Smith
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

Re: tc & xmlhttprequest

2007-09-10 Thread Chris Pat
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

Re: tc & xmlhttprequest

2007-09-10 Thread David Smith
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

Re: tc & xmlhttprequest

2007-09-10 Thread Chris Pat
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">

Re: tc & xmlhttprequest

2007-09-10 Thread David Smith
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.

RES: RES: tc & xmlhttprequest

rcus -Mensagem original- De: Chris Pat [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 10 de setembro de 2007 19:39 Para: Tomcat Users List Assunto: Re: RES: tc & xmlhttprequest Hi Marcus Sorry. I have an ajax page. It works. I need to add other technologies to it, the easiest wa

Re: tc & xmlhttprequest

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

Re: RES: tc & xmlhttprequest

an AJAX framework like DWR ? If not, I guess you should give it a try: http://getahead.org/dwr . You can easily find installing and deployment instructions there. Yours, Marcus -Mensagem original- De: Chris Pat [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 10 de setembro de 2007 19:2

RES: tc & xmlhttprequest

:[EMAIL PROTECTED] Enviada em: segunda-feira, 10 de setembro de 2007 19:23 Para: Tomcat Assunto: tc & xmlhttprequest Hello Any tips on serving a ajax page with tomcat? I am now calling the page with a jsp:forward outside of the web-inf. Do I also have to fully unc path to the *.js files, like

tc & xmlhttprequest

Hello Any tips on serving a ajax page with tomcat? I am now calling the page with a jsp:forward outside of the web-inf. Do I also have to fully unc path to the *.js files, like src=localhost:8080/context/intPages/myScripts.js ?