• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

angularjs value comparison issue in jstl

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I'm passing values between controllers on different pages using angularjs. This is a part of my app.js.



and i'm able to get the passed values in the next page



in my case this {{sharedData}} contains the value "Rings". i want to compare this value in jstl but it is not working. this is what i'm trying,



This comparison always fails. Do i have convert the {{sharedData}} to string and compare? I dont know how to do it. Any help is appreciated..

Thanks in advance..
 
Marshal
Posts: 67447
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are using AngularJS and JSP?      

In any case, data on the client cannot be compared with data on the server. Please read this article to understand how JSP works. The JSTL and other JSP directives are evaluated on the server long before AngluarJS is even loaded onto the page on the client.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
good job!
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic