• Post Reply Bookmark Topic Watch Topic
  • New Topic

angularjs value comparison issue in jstl  RSS feed

 
Arun Emm
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..
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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.
 
yi long
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
good job!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!