Google App Engine: RUN JSP ERROR
I used Eclipse to try the google app engine demo project: guestbook.
when i create a *.jsp file in the WAR directory,the error information appear:
"Your Web Application Project must be configured to use a JDK in order to use JSPs."
solution:
It is because Eclipse put the JRE to the JRE directory, but not the JDK directory.
under "windows - preference", expand "Java". click on "Installed JRE":
change the location to JDK directory.
refresh the project. Done!!!
Ïà¹ØÎĵµ£º
¸ñʽÈçÏ£º <%!
[synchronized] ·µ»ØÀàÐÍ º¯ÊýÃû(ÐβÎÁбí)
&nbs ......
ÓеÄʱºò»áÍü¼Ç£¬¼Ç¼һÏ£º
<iframe id="xx" name="xx" width="515" height="177" scrolling="no" border="0" marginwidth="0" marginheight="0" frameborder="0" src="Xx.jsp"></iframe>
Ҫʹjsp²»±äÐΣ¬Ö÷ÒªÊÇmarginwidth="0" marginheight="0"Á½¸öÊôÐÔ¡£ ......
Ò»¸öÕ¾µã·þÎñÆ÷ÖÐËùÓеÄÓû§¹«ÓÃÒ»¸öapplication¶ÔÏ󣬵±Õ¾µã·þÎñÆ÷¿ªÆôʱ£¬¸Ã¶ÔÏó¾Í±»´´½¨£¬Ö±µ½ÍøÕ¾¹Ø±Õ£»Ò²¾ÍÊÇ˵£º¸Ã¶ÔÏóÒ»µ©±»´´½¨ÁË£¬Ëü½«±»±£´æÔÚ·þÎñÆ÷ÉÏ£»ËüµÄÉúÃüÖÜÆÚÓë·þÎñÆ÷µÄÉúÃüÖÜÆÚÏàͬ£»³£Ó÷½·¨ÈçÏÂ
setAttribute(String name,Object o)£º½«Ãû×ÖΪname£¬ÖµÎªoµÄÊý¾Ý´æ´¢µ½appli ......
¿ª·¢Ó¦ÓóÌÐò¹ý³ÌÖеÄģʽ¸ÅÄGOFÊÇÃæÏò¶ÔÏóÈí¼þģʽµÄȨÍþ£¬Ëü½«ÃæÏò¶ÔÏóµÄÉè¼ÆÄ£Ê½·ÖΪÈýÖÖ»ù±¾ÀàÐÍ£º´´½¨Ä£Ê½£¬½á¹¹Ä£Ê½ºÍÐÐΪģʽ¡£
²ÉÓÃJSP¿ª·¢ÍøÕ¾µÄÈýÖÖģʽ£º
1.Ö±½ÓʹÓÃJSP
¿ª·¢Ð¡ÐÍÍøÕ¾£¬ÔÚJSPÒ³ÃæÖлìºÏHTMLºÍJava´úÂ룬ʹӦÓóÌÐòÄÑÒÔά»¤ºÍÀ©Õ¹;
2.ʹÓÃJSP+JavaBean
ÔÚҳà ......