| Author |
Removing scriplets
|
Vishnu Prakash
Ranch Hand
Joined: Nov 15, 2004
Posts: 1026
|
|
Here is my code. Can you please suggest me how to avoid scriplets here.
|
Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
|
 |
John Simpson
Greenhorn
Joined: Sep 10, 2007
Posts: 25
|
|
write a <script> tag. in a function write something along the lines of: I know its basically the same thing, but you asked...
|
 |
Merrill Higginson
Ranch Hand
Joined: Feb 15, 2005
Posts: 4864
|
|
Just substitute: for your assignments to the variable "s". If the type is not specified in a bean:define, it defaults to String. When you want to display "s", you can do so with either the EL expression ${s} or a bean:write tag.
|
Merrill
Consultant, Sima Solutions
|
 |
Vishnu Prakash
Ranch Hand
Joined: Nov 15, 2004
Posts: 1026
|
|
|
Thanks for your response.
|
 |
 |
|
|
subject: Removing scriplets
|
|
|