非常可能是因为tomcat的lib文件夹jar包和项目的lib文件下的jar包冲突了把项目下lib文件下和tomcat的jar的重复的全部删除。注意,如果你是先建flex工程然后转成web形式的,请把项目中tomcat类库删除,不然还会冲突第二种解决办法修改了tomcat里的context.xml文...
分类:
其他好文 时间:
2014-07-22 22:58:14
阅读次数:
159
///using System;using System.Web;using System.Data;public class DHallZTinfo : IHttpHandler{ public void ProcessRequest(HttpContext context) { ...
分类:
Web程序 时间:
2014-07-22 22:54:15
阅读次数:
246
布局:线性布局+相对布局日志打印:利用LogCat和System.out.println打印观察。Onclick事件是采用过的第四种:在配置文件中给Button添加点击时间涉及知识:通过上线文context获得文件的路径和缓存路径,保存文件布局代码: ...
分类:
移动开发 时间:
2014-07-18 23:29:29
阅读次数:
402
public Bitmap drawTextToBitmap(Context mContext, int resourceId, String mText) {
try {
Resources resources = mContext.getResources();
float scale = resources.getDisplayMetri...
分类:
其他好文 时间:
2014-07-18 21:23:53
阅读次数:
258
来自:http://shine-it.net/index.php/topic,16360.0.html 有个需求想many2one字段关联显示的value在各个模块显示不同的值。 如果直接该rel_name 相当与改了全局的。所有关联的都变了。 @重庆-mrshelly 说可以通过context设置...
分类:
其他好文 时间:
2014-07-18 20:26:58
阅读次数:
186
最近在做JavaWeb项目,总是出现各种的路径错误,而且发现不同情况下 / 所代表的含义不同,导致在调试路径上浪费了大量时间。
在JavaWeb项目中尽量使用绝对路径 因为使用绝对路径是绝对不会出错的,而使用相对路径可能会出现错误。
首先 说下在JavaWeb项目中的绝对路径和相对路径的含义
绝对路径: 相对于当前Web应用根路径的路径 也就是任何路径都必须要带上context...
分类:
编程语言 时间:
2014-07-18 17:07:30
阅读次数:
213
1)A-->BstartActivity(Context,.class);2)A-->B-->AA:startActivityForResult(intent,0);(此处的0为requestCode)B:a)Intentintent=newIntent();/Intentintent=getIntent();b)intent.putExtra("","");c)setResult(0,intent);(此处的0为resultCode)finish();(销..
分类:
其他好文 时间:
2014-07-17 09:06:31
阅读次数:
247
private void dataGrid_MouseRightButtonDown(object sender, MouseButtonEventArgs e) { ContextMenu context = new ContextMenu(); ...
分类:
其他好文 时间:
2014-07-16 16:52:05
阅读次数:
318
文件的保存
public static boolean saveUserInfo(Context context, String username, String password)
{
try
{
// 定义一个文件路径对象
File file = new File(context.getFilesDir(), "info.txt");
// 定义一个文件的写入流...
分类:
移动开发 时间:
2014-07-16 14:06:44
阅读次数:
222
spring 配置文件 -->测试类import org.springframework.context.ApplicationContext;import org.springframework.context.support.ClassPathXmlApplicationContext;impo...
分类:
编程语言 时间:
2014-07-16 12:12:07
阅读次数:
256