struts tags in a .js file?

2006-06-11 Thread Ronald Traikovich
Hi group, I was given a javascript file called operations.js that handles javascript events that load images. So this javascript file is included in my jsp page. The problem is that the image paths are hardcoded, so I want to rewrite these paths with some struts tags. So for example html:page

Re: struts tags in a .js file?

2006-06-11 Thread Leon Rosenberg
On 6/11/06, Ronald Traikovich [EMAIL PROTECTED] wrote: Hi group, I was given a javascript file called operations.js that handles javascript events that load images. So this javascript file is included in my jsp page. The problem is that the image paths are hardcoded, so I want to rewrite these

Re: struts tags in a .js file?

2006-06-11 Thread Angelo zerr
Hello Ronald, when I must use variable comming from Server Side like Web Application context. I create a javascript variable which I initialize in my JSP and after in my Jsvacript I use this variable. For instance, in my JSP script var webApplicationContext = 'html:page src=/ /'; /script And