jsp 포워딩 샘플
파라메터 1 추가해서 Action Class 로 이동
파라메터 1 추가해서 Action Class 로 이동
1.Servlet(서블릿) 이란 jsp/html 클라이언트의 요청을 처리하고, 그 결과를 반환하는 클래스 객체로 구현된 컴파일 되어지는 프로그램밍 언어 2.특징 클라이언트의 요청에 대해 동적으로 작동하는 웹 어플리케이션 컴포넌트 html을 사용하여 […]
Servlet 에서 Hppts로 요청되는지 확인되는 값 (true / false)
잘쓰는 키 Step Over(F6) : 한 단계씩 진행합니다-> 주로 디버깅을 할 때 한 단계씩 진행할 때 많이 사용하는 방식입니다 Resume(F8) : 다음 브레이크포인트까지 진행합니다 Step […]
Go to Eclipse->Help menu->Install new software choose the Web, XML, Java EE plugin and install it.
소스: Docs | Ext JS 6.2.0
var server = require(‘http’); server.createServer(function(req, res){ res.writeHead(200, {‘Content-Type’:’text/plain’}); res.end(“Hellow node.js!\n”); }).listen(3000, ‘localhost’); console.log(‘Server running at http://localhost:3000/’);
C# 하다가 jsp 넘어오니 헷갈리네요. 이거 찾는다고 시간좀 걸렸네. equals 은 객체가 가지고 있는 값을 비교 == 는 개체가 같은지 다른지 비교 그래서 비교 구문은 […]
E-Mailing Through Java.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
<%@ page language="java" contentType="text/html; charset=EUC-KR" pageEncoding="EUC-KR"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=EUC-KR"> <title>Insert title here</title> </head> <body> <table width="550" border="1"> <%@ page import = "java.sql.*" %> <% Connection conn = null; //String sql = null; PreparedStatement pstmt = null; ResultSet rs = null; try { String url1 = "jdbc:sqlserver://localhost:1433;databaseName=IBE_Basic_Code;user=user01;password=password01;"; conn = DriverManager.getConnection(url1); String sql = "select top 100 * from IBE_AIRLINE"; pstmt = conn.prepareStatement(sql); rs = pstmt.executeQuery(); while(rs.next()) { String id = rs.getString("country_code"); String passwd = rs.getString("airline_english"); String name = rs.getString("airline_japan"); String time = rs.getString("airline_korean"); %> <tr> <td width="100"> <%=id%> </td> <td width="100"> <%=passwd%> </td> <td width="100"> <%=name%> </td> <td width="250"> <%=time%> </td> </tr> <% } } catch(Exception e) { e.printStackTrace(); } finally { if(rs != null) try{rs.close();}catch(SQLException sqle){} if(pstmt != null) try{pstmt.close();}catch(SQLException sqle){} if(conn != null) try{conn.close();}catch(SQLException sqle){} } %> </table> </body> </html> |
Java EE 마우스 오른쪽 눌러 Reset 선택
테스트용 웹브라우저 선택
톰캣 레진 웹로직 셋다 같은 jsp/servlet 엔진 즉 WAS(Web Application Server)라고 합니다. 똑같은 WAS인데 틀린점이라면 서비스 하는 기능의 성능이나 차이에 따라 무료 , 유료 인 […]
Copyright © 2025 | WordPress Theme by MH Themes