This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JSP and the fly likes how to read values of javascript button from .properties file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to read values of javascript button from .properties file" Watch "how to read values of javascript button from .properties file" New topic
Author

how to read values of javascript button from .properties file

James Whillis
Ranch Hand

Joined: Jul 27, 2013
Posts: 35


When I do like this - I've got JSP exception.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63348
    
  70

Well, that's all JavaScript code, so it's unlikely that it's the cause of any JSP exception.

Perhaps you could post the exception?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
James Whillis
Ranch Hand

Joined: Jul 27, 2013
Posts: 35
Well it's JasperException
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63348
    
  70

Heh, I missed the EL expressions in the script (they look a lot like $())...

Not sure why they are not evaluating. If you simplify the page down to just the EL expressions, do they parse? (Determining if it's systemic, or page-specific.)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63348
    
  70

I assume that not and book are established scoped variables? (Though if they are not, it shouldn't error out.)
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
My guess would be that it's because "not" is an El keyword - that's what line 55 of the exception indicates.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63348
    
  70

Doh! I missed that. I was going to say that the names were poorly chosen, but I missed the keyword conflict.

Good eye, Ulf!
James Whillis
Ranch Hand

Joined: Jul 27, 2013
Posts: 35
It works! Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to read values of javascript button from .properties file
 
It's not a secret anymore!