Win a copy of Fixing your Scrum this week in the Agile forum!

Di Wang

Greenhorn
+ Follow
since Aug 15, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Di Wang

This is what I did:



It works. A little ugly but I guess this is the best I can do (without changing existing code)? Any other suggestions?

Thanks Stefan for the tip.

Thanks Nizams for pointing out the errors. I had the orderBean defined but not included in the snipplet and the tags "classname" was indeed my typo.
15 years ago
JSP
The scriptlet can access "currency". How is this different from "ccdc"? And more specifically, in terms of namespace? Thanks!
15 years ago
JSP
WSAD 5.1.2 lite container, JSP container 1.2 I believe

jsp:useBean id="currency" classname="CurrencyConverter"
/jsp:useBean
..
c:forEach var="ccdc" items="${orderBean.items}"
[leftbracket]%= currency.convertPrice(ccdc.price) %[righbracket]
/c:forEach

It complains "cannot resolve symbol" ccdc. I need to use scriptlet due to existing code.
15 years ago
JSP