Reputation: 81
I have just a question about passing parameters to the java method inside JSP.
I have a java class called ParameterCrypto
and it contains decode(String str)
and encode(String str)
static methods.
I would like to pass an EL value into the method parameter like:
<%=ParameterCrypto.decode("${searchbean.searchvalue}")%>
But the issue is when passing "${searchbean.searchvalue}"
into the decode method it gets as String, not the value it holds.
Is there a solution?
Upvotes: 1
Views: 333