본문 바로가기

분류 전체보기27

React JS - JSX & Props function Food({ favorite }) { return I like {favorite}; } function App() { return ( Hello ); } JSX is something like HTML + JavaScript. In the example above, I made a JSX with Prop named "favorite" and put a value named "kimchi" The first example shows how to send value from one component to another. In this case, it is using prop favorite and the Food component is receiving the value using the .. 2021. 2. 23.
How to start React JS Project? For the starter, I needed to install 3 things. 1. Node JS - Downloaded from the official website. 2. NPM - Came witH Node JS 3. NPX - Ran command "npm install npx -g" There is an easy web to setup React Web app with one command. - npx create-react-app (name-of-the-app) github.com/facebook/create-react-app 2021. 2. 23.
JSP Life Cycle Hello~!!! With the code above, you can test how JSP life cycle works. First, check on Java file that has created after you create JSP file. Location: ...workplace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\firstWeb\org\apache\jsp public void jspInit(){ System.out.print("jspInit()"); } public void jspDestroy(){ System.out.print("jspDestroy()"); } Just like servlet.. 2019. 8. 7.
What is JSP(Java Server Page)? A sum of 1 to 10 : JSP is a scripting language that allows us to use Java inside HTML code.In or area, you can write Java code and when it runs, the code is converted into Servlet.For example, the code above has . This part will be converted into out.print().  lecture from www.edwith.org 2019. 8. 6.