Link to home
Start Free TrialLog in
Avatar of mali_ini
mali_ini

asked on

how to pass an EL variable into a scriptlet?

hi,

i am setting a variable with EL syntax as mentioned below.
<c:set var ="_p0"><%=PolicyQuery.getINSURED_ADDRESS_LINE1(0)%></c:set>

am trying to call this scriptlet method like this:
<%=PolicyQuery.getSingleQuotDoubleQuotEncoding(_p0)%> --this line is throwing error.

_p0 passed in this method is set with EL , how can i get that in SCRIPTLET ?
Avatar of Eternal_Student
Eternal_Student
Flag of United Kingdom of Great Britain and Northern Ireland image

I think you are setting the variable incorrectly, try this:

<c:set var ="_p0" value="<%=PolicyQuery.getINSURED_ADDRESS_LINE1(0)%>"/>
Avatar of TimYates
that shouldn't make any difference (afaik)
Avatar of mali_ini
mali_ini

ASKER

i m getting an error saying _p0 cannot be resolved, how can i resolve this?
ASKER CERTIFIED SOLUTION
Avatar of rrz
rrz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial