hi,
i am new to struts. my colleagues who are in struts say that i shouldnt use scriptlets in my jsp page where i use struts. but in some situations where the struts tags dont come to our rescue, say in logic situations. then we are compelled to use scriptlets to solve the problem.
for ex,
i am creating a collection to hold some value in my action class. Also i am setting to a request/session scope a variable which holds a number.
in the jsp page i have to iterate using the number used in the request/session scope. but it has to display the collection elements holding the value.
for this <logic:iterate isnt helping, or maybe i dont know.
but using scriptlets in jsp it became very easy.
 
My question is can we use scriptlets in struts jsp in such situations or is it mandatory that we shouldnt use scriptlets what ever be the reason
regards
Srihari

 

Reply via email to