Compiling Javascript files in order to render tags

2003-02-25 Thread kimbabilida [EMAIL PROTECTED]
Hi There,

I'm trying to implement bilingual Javascript menues in my Struts web 
application.  My server is SilverStream 3.7.
The problem is that the .js files are not compiled so the menu labels 
are left as 'bean:message key=label.options /' instead of being 
compiled into 'Options'.
I don't want to include all the javascript in my page because I need 
it accessable to several pages.
Has anyone come across this problem, or know how to compile .js files?

Thanks,

Kim


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Compiling Javascript files in order to render tags

2003-02-25 Thread Karr, David
JSP tags are only meaningful when translating JSP pages.  If you have
JSP tags embedded in javascript code, then the javascript code has to be
present inline in the page, or included from an include directive.
The latter is probably your best bet for sharing this code (make sure
it's an include directive, and not an include action).

 -Original Message-
 From: kimbabilida [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 1:28 PM
 To: [EMAIL PROTECTED]
 Subject: Compiling Javascript files in order to render tags
 
 Hi There,
 
 I'm trying to implement bilingual Javascript menues in my Struts web
 application.  My server is SilverStream 3.7.
 The problem is that the .js files are not compiled so the menu labels
 are left as 'bean:message key=label.options /' instead of being
 compiled into 'Options'.
 I don't want to include all the javascript in my page because I need
 it accessable to several pages.
 Has anyone come across this problem, or know how to compile .js files?
 
 Thanks,
 
 Kim
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Compiling Javascript files in order to render tags

2003-02-25 Thread Jarnot Voytek Contr AU HQ/SC
script language=Javascript1.2 src=html:rewrite
page=/myjs.jsp//script

and my myjs.jsp looks like:

%@ page language=java %
%@ page contentType=application/x-javascript %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
// javascript and JSP tags go here...

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


 -Original Message-
 From: kimbabilida [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 25, 2003 3:28 PM
 To: [EMAIL PROTECTED]
 Subject: Compiling Javascript files in order to render tags
 
 
 Hi There,
 
 I'm trying to implement bilingual Javascript menues in my Struts web 
 application.  My server is SilverStream 3.7.
 The problem is that the .js files are not compiled so the menu labels 
 are left as 'bean:message key=label.options /' instead of being 
 compiled into 'Options'.
 I don't want to include all the javascript in my page because I need 
 it accessable to several pages.
 Has anyone come across this problem, or know how to compile .js files?
 
 Thanks,
 
 Kim
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]