웹개발/JSP

JSP study02 : method declarations!

HANCO 2019. 9. 5. 16:26

선언후 활용하는 방법은 아래와 같이 사용하면 된다.

 

<html>

<body>

String MakeItUpper(String data){

return data.toUpperCase();

}

 

this is uppercase "Hello World" : <%= MakeItUpper("Hello World")%>

</body>

</html>

 

Package에 file save and use

 

1. Package 만들기

com.luv2code.jsp

 

2. To make Class

Funutils.java

 

기본적인 사용방법

 

Import 후 사용방법