J
Joey P
Hi,
I'm completely new to JSP and i have to carry out some tasks involving
variables. I've been asked to declare two variables 'x' (page scope)
and 'y' (session scope) and to then set the value of 'x' to 5 using a
value attribute and set the value of 'y' to 12 via the content of the
set element.
I thought I might be able to set the value of 'x' to 5 by doing
something like...
<c:set value="5" var="x" scope="page">
or
<c:set value="5" var="x" scope="page"></c:set>
but I'm not sure if any of the above are correct and I don't really
know how I could do the second part of the task. If anybody could give
me some explanation as to whether I'm heading along the right track or
not, I'd be very grateful.
Thanks again!
Joe P
I'm completely new to JSP and i have to carry out some tasks involving
variables. I've been asked to declare two variables 'x' (page scope)
and 'y' (session scope) and to then set the value of 'x' to 5 using a
value attribute and set the value of 'y' to 12 via the content of the
set element.
I thought I might be able to set the value of 'x' to 5 by doing
something like...
<c:set value="5" var="x" scope="page">
or
<c:set value="5" var="x" scope="page"></c:set>
but I'm not sure if any of the above are correct and I don't really
know how I could do the second part of the task. If anybody could give
me some explanation as to whether I'm heading along the right track or
not, I'd be very grateful.
Thanks again!
Joe P