1 <%@page import = “java.util.*” %> 2

<%
      String s1= request.getParameter(“str1”);
      String s2= request.getParameter(“str2”);
      str = concatenateStr(s1, s2);
  %>

3
)

<%!
      String str ;
  
      public String concatenateStr(String s1, String s2){
        return s1+s2 ; 
      } 
  %>

And what is this suppose to be?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.