Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JSP
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830
this week in the
Programmer Certification
forum!
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
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
JSP
How to set value in JSTL
Raj Puri
Ranch Hand
Posts: 189
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I like to be able to do i=i+100 in JSTL. How this can be accomplished? Tried c:set it did not like expression in value.
<c:set var=i value="${i+100}" />
Bear Bibeault
Sheriff
Posts: 67752
173
I like...
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
What is 'i'? Is it already a scoped variable of a numeric type?
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
Bear Bibeault
Sheriff
Posts: 67752
173
I like...
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The following
test
page works fine for me. (
JSP
2.0)
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <c:set var="i" value="${1}"/> <c:set var="i" value="${i + 100}"/> <html> <body> ${i} </body> </html>
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
Raj Puri
Ranch Hand
Posts: 189
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks worked I had extra curly.
Please enjoy this holographic presentation of our apocalyptic dilemma right after this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
how to overwrite a request param?
JSTL ternary ?
Variables from JSTL to JSP
doubt in JSTL set tag
How-to use DOM document returned from a bean, with JSTL x:transform
More...