This week's book giveaway is in the Android forum.
We're giving away four copies of Android Programming: The Big Nerd Ranch Guide and have Bill Phillips & Chris Stewart on-line!
See this thread for details.
Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • 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: 65973
140
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!
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!