现在我有一个properties文件:scope=30
一个stuts2的Action中有一个scope字段。现在我想通过Spring配置的手段,将properties文件中的那个scope值,赋给Action中的scope。(运行时)该怎么办?
一个stuts2的Action中有一个scope字段。现在我想通过Spring配置的手段,将properties文件中的那个scope值,赋给Action中的scope。(运行时)该怎么办?
解决方案 »
- 一个关于log4j的问题
- 使用Struts2的ajax支持,结果返回数据会打开一个“保存文件”的对话框?
- struts、hibernate、spring这三个框架和J2EE是什么关系?
- test
- MySQL能实现如下的功能吗?
- 高分求助!如何实现动态表单或智能表单,工作流中可能经常用到
- 怎么通过代码取得当前classpath下某一包中的所有类(急)
- 再提两个问题!关于entity bean 和 session bean,谢谢高手解答。
- SaxException:File "c:\xml\reports.xml"not found
- 急用,求大神指点!!请问有谁用java做过那个复制、粘贴功能 这类功能的呢?
- hibernate中buildSessionFactory极其慢。
- Junit报java.lang.ClassNotFoundException
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>WEB-INF/conf/database/jdbc.properties</value>
<value>WEB-INF/conf/search/search.properties</value>
</list>
</property>
</bean>
加载属性文件,然后在action中就可以采用{scope}使用改值了,然后在web中加载spring文件。