ÎÒ¿ª·¢Ò»¸öjspϵͳʱÅöµ½µÄÎÊÌâ
1.No getter method for property name problem(struts)
ÓÐÒ»ÖÖ¿ÉÄÜÊÇBeanûÓÐдÏàÓ¦µÄget·½·¨£¬ÀýÈç±äÁ¿userNameµÄget·½·¨ÊÇgetUserName£»
»¹ÓоÍÊÇÕâ¸öBeanΪ¿Õ£»
2.
MyEclipseµÄ×Ô¶¯Ìí¼ÓstrutsºÍhibernate¹¦Äܲ»ÄÜ·µ»Ø£¬Çë×¢Ò⣡
ËùÒÔÎÒÏÈʹÓÃMyEclipseµ¼ÈëstrutsºÍhibernate£¬È»ºó½«ËüÃǵÄjarµ¼Èëµ½ÁíÍâÒ»¸öн¨µÄ¹¤³Ì£¬ÕâÊÇÎҾͲ»ÐèÒªMyeclipseÀ´¸øÎÒ¹ÜÀíÒÀÀµÁË¡£
3
.ÔÚÔö¼Ó¶Ôstruts taglibÖ§³Öʱ£¬Ç뽫¶ÔÓ¦µÄtldÎļþ×·¼Óµ½web.xmlÎļþÖÐÈ¥£º
ÀýÈ磺
<jsp-config>
<taglib>
<taglib-uri>http://struts.apache.org/tags-bean </taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld </taglib-location>
</taglib>
</jsp-config>
4.
Èç¹û³ö´í˵ij¸ötagÔÚtldÎļþÖÐûÓУ¬Ôò˵Ã÷×Ô¼ºÔÚjspÎļþÖÐʹÓõÄtagºÍʹÓõÄstruts taglib°æ±¾²»Ò»ÖÂ
ÀýÈ磺ÔÚstruts1.1ÖеÄhtml:locale£¬ÔÚstruts1.2ÖиÄΪhtml:lang
5.
struts tagÖпÉÒÔʹÓÃscriptlets£¬µ«ÊÇÔÚscriptletsÖв»ÄÜʹÓÃstruts tag¡£
Any Struts tag will work only if you place it directly in the JSP, not if you generate it through a scriptlet. To understand why it won't work to generate it in a scriptlet.
JSP life cycle:
* The JSP interpreter reads the JSP file, including any custom tags such as Struts tags and converts everything to Java source code
* It then compiles it into a class file
* It executes the code, rendering a response in plain HTML and sending it back to the browser.
* It is only at this point that the scriptlet code you inserted gets executed. It is now too late in the cycle to insert any custom tags, since they've already been interpreted by this point.
6. it is illegal according to JSP specification to nest one tag within another as an attribute.
There are two options:
1) You evaluate bean:write and then substitute it into html:text.
2) Use Struts-EL tags. They let you use expression language to get a bean value and substitute it in another tag.
Unless yo
Ïà¹ØÎĵµ£º
jspʹÓÃ×é¼þ½øÐÐÎļþÉÏ´«
WEBÎļþÉÏ´«¿ÉÄÜÊÇÍøÕ¾½¨ÉèÖÐ×î³£ÓõŦÄÜÖ®Ò»£¬ÎÒÔÚÏîÄ¿¿ª·¢Öм¸ºõ¶¼ÐèҪʵÏÖÎļþÉÏ´«¹¦ÄÜ£®Ç°¶Îʱ¼ä×Ô¼ºËѼ¯ÁËһЩÉÏ´«×é¼þ£®ÕâÆªÎÄÕÂÖн«½éÉÜÕâЩ×é¼þµÄʹÓ÷½·¨£¬²¢ÇұȽϸ÷×ÔµÄÓÅÁÓ£®
Ò»£¬smartupload×é¼þ£®
ÎÒÏëÖ»Òª×ö¸öÎļþÉÏ´«µÄÅóÓѶ¼ÖªµÀÕâ¸ö×é¼þ£¬ÎÒÈÏʶµÄÈËÖÐʹÓÃ×î¶àµÄÒ²ÊÇËü£¡ÎÒ¸ ......
FCKeditor jsp ÅäÖà ʹÓÃ
2009-04-07 16:57
FCKeditorÊÇÒ»¿î¿çƽ̨µÄÔÚÏß±à¼Æ÷£¬µ½ÎÒ·¢²¼±¾ÎÄ£¬FCKeditorµÄ¹Ù·½°æ±¾ÒѾ·¢Õ¹µ½ÁË2.6.4
µã»÷½øÈë ¹ÙÍø
1¡¢Ê×Ïȵǽwww.fckeditor.net/downloadÏÂÔØFCKeditorµÄ×îа汾£¬ÐèÒªÏÂÔØ2¸öѹËõ°ü£¬Ò»¸öÊÇ»ù±¾Ó¦Óã¬ÁíÒ»¸öÊÇÔÚΪÔÚjspÏÂËù×¼±¸µÄÅäÖá£
  ......
·½·¨Ò»¡¢
login.html
<html>
<head>
<title>Óû§µÇ¼</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
</head>
<script language="javascript">
&nbs ......
Ò») °²×°JDK(jdk-1_5_0-windows-i586.exe)£¬Ä¬Èϰ²×°£»
(¶þ) °²×°Tomcat(tomcat5.5-installer.exe)£¬Ä¬Èϰ²×°£»
* ˳Ðò²»¿ÉÒԵߵ¹ *
(Èý) ²âÊÔ°²×°½á¹û
1. ´ò¿ªä¯ÀÀÆ÷ÊäÈëhttp://localhost:8080£¬Èç¹û³É¹¦£¬Ôò»á¿´µ½»¶ÓÒ³Ãæ¡£´Ëʱ·ÃÎʵÄ·¾¶Îª$tomcat/webapps/root/
(ËÄ) ½¨Á¢ÎÒµÄÕ¾µ ......