Hirantha
Hirantha

Reputation: 81

How do I use a Java method inside the JSP page and pass an EL value as an argument?

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

Answers (0)

Related Questions