pass java variable in jsp:param

后端 未结 5 1665
耶瑟儿~
耶瑟儿~ 2021-02-04 03:37
 <%!  
    String str = \"prerna\";  
  %>  

 
       >
               


        
5条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-04 03:43

    Just put it in value directly.

    
        
    
    

    Or use JSTL to set it and EL ${} to get it.

    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    ...
    
    ...
    
        
    
    

    And if your included page is a jsp, then you can use it as ${param.type1}

提交回复
热议问题