1

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?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Hirantha
  • 81
  • 1
  • 10
  • 1
    EL is translated to Java so instead of using EL you should directly go for the Java equivalent - or convert the entire expression to EL. – Thomas Sep 15 '22 at 08:01

0 Answers0