public void Setpath(String ls_file)
{
ls_path = ls_file;
}
public String Getpath()
{
return ls_path;
}改成:
public void setLs_path(String ls_path)
{
this.ls_path = ls_path;
}
public String getLs_path()
{
return ls_path;
}
{
ls_path = ls_file;
}
public String Getpath()
{
return ls_path;
}改成:
public void setLs_path(String ls_path)
{
this.ls_path = ls_path;
}
public String getLs_path()
{
return ls_path;
}
解决方案 »
- editArea编辑器读取textarea问题,急
- fckeditor出错
- struts javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection
- 如何实现比较准确的查询结果!???
- 开发二年,遇到一个没有见过的SQL报错,大家来讨论一下(急)。
- 打算参加明年高程(软件设计师)考试,大家给推荐几本好书!
- 谁有像csdn中一样分页代码?(jsp)
- ehcache集群问题
- 一个老的简单问题!
- jsp中if else的问题。请指点。给分!在线等待!!!
- 乱码问题
- 一个用时间搜索的问题!!!!
in a bean of type 'firstpackge.ReadFile'
这个异常的意识是说在'firstpackge.ReadFile'中没有找到名为'ls_path'的属性你的属性定义方法不对,我在上面的回复已经给出了定义的正确方式,注意大小写——必须的!
javax.servlet.ServletException: class firstpackge.ReadFile : java.lang.IllegalAccessException: Class java.beans.Beans can not access a member of class firstpackge.ReadFile with modifiers ""
没有修饰符.加上public
public class ReadFile {
....
}第二、确保你的c:\aaa.txt存在。