N
Nicolas Laplante
Hi all,
I didn't find a suitable JSP newsgroup so I post my question here:
I have a tag that has an attribute "level" which is a numeric type
(integer).
I want to know if it's possible to use EL language to create the
equivalent of this:
The methods in JSTL's core library (c) cannot do the trick as far as I
know, nor do the functionalities offered by the functions library (f).
Do I need to do it in a scriplet? If so, how can I access the "levels"
variable (which is an attribute of the custom tag) from the Java scriplet?
If you need any additional info, just ask!
Thank you,
Nicolas Laplante
I didn't find a suitable JSP newsgroup so I post my question here:
I have a tag that has an attribute "level" which is a numeric type
(integer).
I want to know if it's possible to use EL language to create the
equivalent of this:
Code:
String str = "";
for (int i = 0; i < level; i++) {
str += "../";
}
The methods in JSTL's core library (c) cannot do the trick as far as I
know, nor do the functionalities offered by the functions library (f).
Do I need to do it in a scriplet? If so, how can I access the "levels"
variable (which is an attribute of the custom tag) from the Java scriplet?
If you need any additional info, just ask!
Thank you,
Nicolas Laplante