자바빈 미칩니다 ㅡㅡ
슬아s
http status 500 - type exception report
message
description the server encountered an internal error () that prevented it from fulfilling this request.
exception
preorg.apache.jasper.jasperexception: unable to compile class for jsp: an error occurred at line: 4 in the jsp file: /login.jsplogin cannot be resolved to a type1: %@ page language=java contenttype=text/html; charset=euc-kr2: pageencoding=euc-kr%3: !doctype html public -//w3c//dtd html 4.01 transitional//en http://www.w3.org/tr/html4/loose.dtd4: jsp:usebean id=login class=login scope=page /5: jsp:setproperty name=login property=* /:6: html7: headan error occurred at line: 4 in the jsp file: /login.jsplogin cannot be resolved to a type1: %@ page language=java contenttype=text/html; charset=euc-kr2: pageencoding=euc-kr%3: !doctype html public -//w3c//dtd html 4.01 transitional//en http://www.w3.org/tr/html4/loose.dtd4: jsp:usebean id=login class=login scope=page /5: jsp:setproperty name=login property=* /:6: html7: headan error occurred at line: 4 in the jsp file: /login.jsplogin cannot be resolved to a type1: %@ page language=java contenttype=text/html; charset=euc-kr2: pageencoding=euc-kr%3: !doctype html public -//w3c//dtd html 4.01 transitional//en http://www.w3.org/tr/html4/loose.dtd4: jsp:usebean id=login class=login scope=page /5: jsp:setproperty name=login property=* /:6: html7: headstacktrace: org.apache.jasper.compiler.defaulterrorhandler.javacerror(defaulterrorhandler.java:92) org.apache.jasper.compiler.errordispatcher.javacerror(errordispatcher.java:330) org.apache.jasper.compiler.jdtcompiler.generateclass(jdtcompiler.java:439) org.apache.jasper.compiler.compiler.compile(compiler.java:349) org.apache.jasper.compiler.compiler.compile(compiler.java:327) org.apache.jasper.compiler.compiler.compile(compiler.java:314) org.apache.jasper.jspcompilationcontext.compile(jspcompilationcontext.java:589) org.apache.jasper.servlet.jspservletwrapper.service(jspservletwrapper.java:317) org.apache.jasper.servlet.jspservlet.servicejspfile(jspservlet.java:313) org.apache.jasper.servlet.jspservlet.service(jspservlet.java:260) javax.servlet.http.httpservlet.service(httpservlet.java:717)/pre
note the full stack trace of the root cause is available in the apache tomcat/6.0.26 logs.
apache tomcat/6.0.26
-자바빈파일
public class login { public login() {} private string id,pw; public void setid(string s) { this.id = s; } public string getid() { return this.id; } public void setpw(string s) { this.pw = s; } public string getpw() { return this.pw; }}
-jsp파일%@ 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.dtdjsp:usebean id=login class=login scope=page /jsp:setproperty name=login property=* /htmlheadmeta http-equiv=content-type content=text/html; charset=euc-krtitleinsert title here/title/headbody
/body/html