Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread Balwinder
nauke. wrote: Hi all, Is there a way to access values in ApplicationResources.properties in Javascript functions? I've found a way where I can just pass a value from the app resource file as a parameter, but discovered that I return alerts with different messages based on some criteria. Any

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread nauke .
in ApplicationResources.properties in Javascript functions? I've found a way where I can just pass a value from the app resource file as a parameter, but discovered that I return alerts with different messages based on some criteria. Any ideas? Thanks heaps Try this script var someVar = 'bean:message key

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread Owen Berry
the JSP file right? My javascript functions are in it's on .js file ... On Thu, Aug 7, 2008 at 8:23 PM, Balwinder [EMAIL PROTECTED] wrote: nauke. wrote: Hi all, Is there a way to access values in ApplicationResources.properties in Javascript functions? I've found a way where I can just pass

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread nauke .
file ... On Thu, Aug 7, 2008 at 8:23 PM, Balwinder [EMAIL PROTECTED] wrote: nauke. wrote: Hi all, Is there a way to access values in ApplicationResources.properties in Javascript functions? I've found a way where I can just pass a value from the app resource file

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread Dave Newton
--- On Thu, 8/7/08, nauke wrote: There must be a more elegant solution than this! Not really: you're trying to access server-side resources from the client side. If you're not going to run your JavaScript through the JSP processor your options are limited, for obvious reasons. One solution

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread nauke .
Hi Dave, Thanks for replying. Yeah I declared variables in my JSP file and tried to parse them through as arguments to the JavaScript function like mentioned. No matter how I tried to pass those values in as parameters, my JavaScript function kept treating it as literal text hehe! Like:

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread Dave Newton
--- On Thu, 8/7/08, nauke. [EMAIL PROTECTED] wrote: No matter how I tried to pass those values in as parameters, my JavaScript function kept treating it as literal text Like: %=String aString = Hi There!% That's most likely not what you wanted, you mean: % String aString = Hi There!; %

Re: ApplicationResources.properties and JavaScript

2008-08-07 Thread Wes Wannemacher
On Thu, 2008-08-07 at 17:43 -0700, Dave Newton wrote: --- On Thu, 8/7/08, nauke. [EMAIL PROTECTED] wrote: No matter how I tried to pass those values in as parameters, my JavaScript function kept treating it as literal text Like: %=String aString = Hi There!% Periodically, I run

ApplicationResources.properties and JavaScript

2008-08-06 Thread nauke .
Hi all, Is there a way to access values in ApplicationResources.properties in Javascript functions? I've found a way where I can just pass a value from the app resource file as a parameter, but discovered that I return alerts with different messages based on some criteria. Any ideas? Thanks