如何¾l™webworkçš„action里的Field讄¡½®åˆå§‹å€?/a>jdev说到"ä¸ÞZ»€ä¹ˆè¦æ”‘Öœ¨˜q™é‡ŒåQŒè€Œä¸æ˜¯æ”¾åˆ°ç³»¾lŸé…¾|®æ–‡ä»¶ä¸åQŒç„¶åŽåœ¨¾pÈ»Ÿè®„¡½®ç•Œé¢ä¸æä¾›è®¾¾|?åQŒåŽæ¥æˆ‘ž®Þq”¨springæ¥æ³¨å…¥äº†(ji¨£n)。现在就把值放入propertiesæ–‡äšgä¸äº†(ji¨£n)ã€?br />
 (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng)<bean (t¨©ng)id="propertyPlaceholderConfigurer" (t¨©ng)class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
 (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng)<property (t¨©ng)name="locations">
 (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng)<list>
 (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng)<value>classpath:mail.properties</value>
 (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng)<value>classpath:upload.properties</value>
 (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng)</list>
 (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng)</property>
 (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng)</bean>
 (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng)<!-- (t¨©ng)æ”¶å‘外部邮箱 (t¨©ng)author:somebody-->
 (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng)<bean (t¨©ng)id="outMailManager" (t¨©ng)class="cn.com.fivefortunes.mail.manager.impl.OutMailManagerImpl">
 (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng)<property (t¨©ng)name="javaMailSender"><ref (t¨©ng)bean="javaMailSender"/></property>
 (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng)<property (t¨©ng)name="attachementDirectory"><value>${mail.attachementDirectory}</value></property>
 (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng)<property (t¨©ng)name="uploadFileDirectory"><value>${upload.directory}</value></property>
 (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng)<property (t¨©ng)name="outMailHibernateManager"><ref (t¨©ng)bean="outMailHibernateManager"/></property>
 (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng)<property (t¨©ng)name="outMailAccountManager"><ref (t¨©ng)bean="outMailAccountManager"/></property>
 (t¨©ng) (t¨©ng) (t¨©ng) (t¨©ng)</bean>
˜q™æ ·æŠŠuploadFileDirectory攑օ¥manangerä¸åŽ»äº?ji¨£n)。在properties里é¢é…置一下就okäº?ji¨£n)ã€?br />
upload.directory=D:\\tomcat5\\webapps\\files
mail.attachementDirectory=D:\\tomcat5\\webapps\\files
上次˜q˜æœ‰¾|‘勘q™æ ·è¯´åˆ°"return ServletActionContext.getServletContext().getRealPath("/");
ä½ è¿™æ äh¢äº?ji¨£n)部¾|²çŽ¯å¢ƒæ¯‹Æ¡éƒ½è¦æ”¹
而且也该�
D://tomcat5//webapps//files"
ä¹Ÿè®¸å¾ˆå¤šäººéƒ½ä»¥äØ“(f¨´)˜q™æ˜¯æœ€å¥½çš„æ–¹å¼åQŒå¯æ˜¯å®žé™…æƒ…å†µä¸æ˜¯è¿™æ øP¼Œæˆ‘们的uploadfileç›®å½•å·²ç»æœ?G的文ä»Óž¼Œè€ŒåŸºæœ¬ä¸Šæ¯å¤©æˆ‘们都è¦å‘布新的webappåQŒå¦‚果把uploadfile目录攑ֈ°webapp的一个å目录åQŒæ¯‹Æ¡éƒ¨¾|²çš„æ—¶å€™éƒ½è¦å…ˆæŠŠuploadfile copy出æ¥ç„¶åŽå†éƒ¨¾|ŒÓ€‚所以我们这么嚞®±æ˜¯æŠŠupload目录攑ֈ°å…¶ä»–目录ä¸åª„(ji¨£ng)å“uploadfile目录里é¢çš„æ–‡ä»¶ã€‚关于我们项目的部çÖvè§æˆ‘的下一½‹‡æ–‡ç« 。谢谢大家。如果æ?zh¨¨n)¨æœ‰ä»€ä¹ˆæ›´å¥½çš„æ–ÒŽ(gu¨©)³•è¯äh‚¨æŒ‡æ•™ã€?img src ="http://www.aygfsteel.com/rory/aggbug/42463.html" width = "1" height = "1" />