http://wsbm.qdedu.gov.cn/publiclogin.do

来源:颁奖词 时间:2018-09-22 08:00:05 阅读:

【www.zhuodaoren.com--颁奖词】

http://wsbm.qdedu.gov.cn/publiclogin.do(共10篇)

http://wsbm.qdedu.gov.cn/publiclogin.do(一):

一个数据逻辑层为什么要封装两次?
比如这个对登录验证的操作 在登录页面的后台直接调用这个方法不就可以了吗?为什么一般都要在封装一次?
(封装如下:)
public SqlDataReader login(Model.user aa)
{
DAL.user dalus = new DAL.user();
return dalus.login(aa);
}
------------------------------------------------------------------------------------
public SqlDataReader login(Model.user aa)
{
StringBuilder sql = new StringBuilder();
sql.Append("select _userid from [user] where _email=@email and _pwd=@pwd");
SqlParameter[] par ={
new SqlParameter("@email",SqlDbType.VarChar,50),
new SqlParameter("@pwd",SqlDbType.VarChar,50)
};
par[0].Value = aa.email;
par[1].Value = Common.DESEncrypt.Encrypt(aa.pwd);
//
return Common.DbHelperSQL.ExecuteReader(sql.ToString(),par);
}

分层为了好控制逻辑,你这里只是单纯分层.没有做控制.
一般都是分层+反射 控制逻辑分层

http://wsbm.qdedu.gov.cn/publiclogin.do(二):

private static final log log = logfactory.getlog(***.class);【http://wsbm.qdedu.gov.cn/publiclogin.do】

通过logFactory得到一个log对象,一般如果这样来得到对象的话,Log类里面的构造函数是不可视的,一般只能通过getIntance()来得到一个Log对象,(往往会用单例),如果按照一般逻辑,会在LogFactory中定义一个getLog函数,由...

http://wsbm.qdedu.gov.cn/publiclogin.do(三):

HTTP Status 404 - No result defined for action com.project.web.action.PersonAction and result succ
type Status report
message No result defined for action com.project.web.action.PersonAction and result success
description The requested resource (No result defined for action com.project.web.action.PersonAction and result success) is not available.
在我的项目里配置了hibernate和struts2,运行的时候出现了这样的错误.
我的struts.xml配置文件是这样子的:







log
page/login_struts2.jsp
/page/manage.jsp
/page/register.jsp


/page/manage.jsp



我的action是这样的:
public String login() {
Map request = (Map) ActionContext
.getContext().get("request");
Person pn = biz
.searchPerson(person.getUsername(), person.getPassword());
if (pn == null) {
request.put("message", "登录失败");
return "fail";
} else {
request.put("message", "登录成功");
return SUCCESS;
}
}
它进入了action,运行最后报了错.求大神.

log
page/login_struts2.jsp
log和page/login_struts2.jsp前面是否需要加“/”

http://wsbm.qdedu.gov.cn/publiclogin.do(四):

C程序,请大家帮我看看for (--in;in>=0;in--)中的--in是什么意思,不是自减吗?
main()
{
char bd[16]={"0","1","2","3","4","5","6","7","8","9","10","A","B","C","D","E","F"};
int cn[64],nd,b,in=0;
long int ntc;
printf("\n Input an integer which is transformed:");
scanf("%ld",&ntc);
printf("\n Input a changing to system number:");
scanf("%d",&b);
do
{
cn[in]=ntc%b;in++;ntc=ntc/b;
} while(ntc);
printf("Transform to:\n");
for(--in;in>=0;in--)
{
nd=cn[in];
printf("%c",bd[nd]);
}
printf("\n");
}

for(表达式1;表达式2;表达式3)
该语句执行过程如下:
  ①先对表达式1赋初值;
  ②判别表达式2是否满足给定条件,若其值为真,满足循环条件,则执行循环体内语句,然后执行表达式3,进入第二次循环,再判别表达式2……;否则判断表达式2的值为假,不满足条件,就终止for循环,执行循环体外语句.
又因为do……while语句是先执行 do语句再判断while条件的,所以do语句中的变量 in 就多进行了一次 +1 操作,所以在接下来的for循环中,要先对in变量进行 -1 操作,代码中for(--in;in>=0;in--) 等同于 for(in-1;in>=0;in--)
do
{
cn[in]=ntc%b;in++;ntc=ntc/b;
} while(ntc);
printf("Transform to:\n");
for(--in;in>=0;in--)
{
nd=cn[in];
printf("%c",bd[nd]);
}

http://wsbm.qdedu.gov.cn/publiclogin.do(五):

我想知道我哪错了我不知道怎么改谢谢了
public partial class chat_login :System.Web.UI.Page
{
private System.Data.OleDb.OleDbCommand objselectcomm;
private System.Data.OleDb.OleDbConnection objchatconn;
protected void Page_Load(object sender,EventArgs e)
{
}
protected void btn2_Click(object sender,EventArgs e)
{
this.txtname.Text = "";
this.ckbox.Checked = false;
}
protected void ImageButton1_Click(object sender,ImageClickEventArgs e)
{
SqlConnection con=new SqlConnection();
SqlCommand com=new SqlCommand();
string myread="dataread from yonghu3 where name=""+this.txtname.Text+"",pass=""+this.txtpwd.Text+""";
try
{
if(txtname!=null&&txtpwd!=null)
{
if("dataread from yonghu3 where name=""+this.txtname.Text+"",pass=""+this.txtpwd.Text+""")
{
con.ConnectionString="server=.;integrated security=sspi;database=yonghu";
com.Connection= con;
com.CommandText=myread;
com.Connection.Open();
com.ExecuteReader();
Response.Redirect("jiyilt1.aspx");
}
else
Label1.Text="用户名或密码不正确";
}
else
Label1.Text="请输入用户名和密码";
}
catch(System.Exception msg)
{
Response.Write(msg.Message.ToString());
}
finally
{
com.Connection.Close();
}
}
protected void ImageButton2_Click(object sender,ImageClickEventArgs e)
{
Response.Redirect("zhuce.aspx");
}
}
编译错误
说明:在编译向该请求提供服务所需资源的过程中出现错误.请检查下列特定错误详细信息并适当地修改源代码.
编译器错误消息:CS0029:无法将类型“string”隐式转换为“bool”
行 41:if("dataread from yonghu3 where name=""+this.txtname.Text+"",pass=""+this.txtpwd.Text+""")

if("dataread from yonghu3 where name=""+this.txtname.Text+"",pass=""+this.txtpwd.Text+""")
你这个东西是string类型,而if里面需要 bool型的,当然报错啦.

http://wsbm.qdedu.gov.cn/publiclogin.do(六):

public class StaffLogAction extends ActionSupport implements SessionAware {
\x05private Log logger = LogFactory.getLog(StaffLogAction.class);

以StaffLogAction字节码内存区域地址为标示,通过日志工程来创建一个该标示的日志输出对象.这个是log4j的普通用法,详情可以参考log4j的相关用法.
--Best wishes! Jason

http://wsbm.qdedu.gov.cn/publiclogin.do(七):

看看英文邮件
This is the Postfix program at host mail.mina.com.cn.
I"m sorry to have to inform you that your message could not
be delivered to one or more recipients.It"s attached below.
For further assistance,please send mail to
If you do so,please include this problem report.You can
delete your own text from the attached returned message.
The Postfix program
:cannot append message to
destination file
/var/spool/virtual/mina.com.cn/yyang:error writing message:File
too large
我发完邮件老手的这个回信,请问是什么问题?

yyang.mina.com.cn@mail.mina.com.cn无法发送到这个邮件地址,请发邮件到 以获得帮助.(邮件管理员)【http://wsbm.qdedu.gov.cn/publiclogin.do】

http://wsbm.qdedu.gov.cn/publiclogin.do(八):

英语阅读理解:For 170 years,members of a tiny American
For 170 years,members of a tiny American native tribe have lived and celebrated their traditions on a
small piece of land off the Louisiana coast called Isle de Jean Charles.They fished and they farmed,making living by hard work amid the bays and marshes(沼泽).But now the waters that have supported them are threatening to overwhelm(淹没)them.
“I don’t think we’re going to have any other choice except to leave because we’re getting washed away by every storm that comes by,” said Albert Naquin,chief of the Biloxi-Chitimacha tribe.“We have lost more and more land,and it keeps happening.”
Surrounded by the Gulf of Mexico on one side and the marsh on the other,Isle de Jean Charles sits at the southern tip of Louisiana’s rapidly disappearing wetlands,an area that is 3 to 4 miles long and about a mile wide.The tribe has been living here since 1840.but about a football field worth of land in the region is lost every half hour because of erosion(侵蚀),storms and rising sea water-a constant process that is expected to worsen with climate change.
Isle de Jean Charles has been flooded five times in the last six years,being transformed from a once lush(繁茂的)landscape into a barren disaster zone.The floodwaters have spread large amounts of salt across the tiny island,making it nearly impossible for much to grow any more.
The road to their village has been flooded so often,and now only one narrow road is usable,which is often covered by water.The fire station was closed a few years ago,and the island’s church was relocated.Now,only 25 families are left,with a “few dozen” people.A controversial(有争议的)$900 million system of sea walls to save endangered communities along the Louisiana coast raised hopes here.But the final design did not include Isle de Jean Charles because officials concluded it simply would cost too much to protect the relatively few families that were left.
72.What would be the best title of the passage?
A.Climate change threatens an American native tribe
B.Decreasing population of an American native tribe
C.The survival of an American native tribe
D.The harmful effect of climate change
73.We learn from the third paragraph that .
A.only a football field worth of land remains for the tribe
B.the southern tip of the wetlands is now in water
C.the tribe is losing its land at a fast speed
D.the tribe has lived here for 300 years
74.What do we know about the remaining land of Isle de Jean Charles?
A.It still remains rich and beautiful.
B.It is almost unsuitable for crops to grow.
C.There’s no resident living on the land.
D.All of them have been covered by water.
75.The last paragraph suggests that .
A.the govemment has paid much attention to the tribe
B.the tribe insists on remaining where they are
C.the fate of the tribe remains dangerous
D.the tribe has a large population

For 170 years,members of a tiny American native tribe have lived and celebrated their traditions on a
small piece of land off the Louisiana coast called Isle de Jean Charles.They fished and they farmed,making living by hard work amid the bays and marshes(沼泽).But now the waters that have supported them are threatening to overwhelm(淹没)them.
“I don’t think we’re going to have any other choice except to leave because we’re getting washed away by every storm that comes by,” said Albert Naquin,chief of the Biloxi-Chitimacha tribe.“We have lost more and more land,and it keeps happening.”
Surrounded by the Gulf of Mexico on one side and the marsh on the other,Isle de Jean Charles sits at the southern tip of Louisiana’s rapidly disappearing wetlands,an area that is 3 to 4 miles long and about a mile wide.The tribe has been living here since 1840.but about a football field worth of land in the region is lost every half hour because of erosion(侵蚀),storms and rising sea water-a constant process that is expected to worsen with climate change.
Isle de Jean Charles has been flooded five times in the last six years,being transformed from a once lush(繁茂的)landscape into a barren disaster zone.The floodwaters have spread large amounts of salt across the tiny island,making it nearly impossible for much to grow any more.
The road to their village has been flooded so often,and now only one narrow road is usable,which is often covered by water.The fire station was closed a few years ago,and the island’s church was relocated.Now,only 25 families are left,with a “few dozen” people.A controversial(有争议的)$900 million system of sea walls to save endangered communities along the Louisiana coast raised hopes here.But the final design did not include Isle de Jean Charles because officials concluded it simply would cost too much to protect the relatively few families that were left.
72.What would be the best title of the passage?
A.Climate change threatens an American native tribe
73.We learn from the third paragraph that .
C.the tribe is losing its land at a fast speed
74.What do we know about the remaining land of Isle de Jean Charles?
B.It is almost unsuitable for crops to grow.
75.The last paragraph suggests that .
C.the fate of the tribe remains dangerous

http://wsbm.qdedu.gov.cn/publiclogin.do(九):

MainActivity中的this是什么
public class MainActivity extends Activity {
\x05private static final String TAG = "MainActivity";
private FileService fileService;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
fileService = new FileService(this);
Button button = (Button) this.findViewById(R.id.button);
button.setOnClickListener(new View.OnClickListener() {
\x05\x05\x05@Override
\x05\x05\x05public void onClick(View v) {
\x05\x05\x05\x05EditText filenameText = (EditText) findViewById(R.id.filename);
\x05\x05\x05\x05EditText contentText = (EditText) findViewById(R.id.filecontent);
\x05\x05\x05\x05String filename = filenameText.getText().toString();
\x05\x05\x05\x05String content = contentText.getText().toString();
\x05\x05\x05\x05try {
\x05\x05\x05\x05\x05//判断sdcard是否存在于手机上,并且可以进行读写访问
\x05\x05\x05\x05\x05if(Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)){
\x05\x05\x05\x05\x05\x05fileService.saveToSDCard(filename,content);
\x05\x05\x05\x05\x05\x05Toast.makeText(MainActivity.this,R.string.success,1).show();
\x05\x05\x05\x05\x05}else{
\x05\x05\x05\x05\x05\x05Toast.makeText(MainActivity.this,R.string.sdcarderror,1).show();
\x05\x05\x05\x05\x05}
\x05\x05\x05\x05} catch (Exception e) {
\x05\x05\x05\x05\x05Log.e(TAG,e.toString());
\x05\x05\x05\x05\x05Toast.makeText(MainActivity.this,R.string.error,1).show();
\x05\x05\x05\x05}
\x05\x05\x05}
\x05\x05});
}
}
上面fileService = new FileService(this);中的this什么意思

this就是获得当前对象,在你的程序里就是获得MainActivity这个对象.你改成MainActivity.this也可以的

http://wsbm.qdedu.gov.cn/publiclogin.do(十):

英语翻译
This is the mail system at host mx2-192.sinamail.sina.com.cn.
I"m sorry to have to inform you that your message could not
be delivered to one or more recipients.It"s attached below.
For further assistance,please send mail to postmaster.
If you do so,please include this problem report.You can
delete your own text from the attached returned message.
The mail system
(expanded from ):host
mail3-41i.sinamail.sina.com.cn[10.55.2.41] said:522 5.2.2 can not find the
user path (in reply to end of DATA command)


大概帮你翻译了一下:
这是主人mx2-192.sinamail.sina.com.cn系统.
我很抱歉地通知您,您的留言却是不能
被送到一个或更多的接受者.它是下面的附件.
为进一步的帮助,请发送邮件到邮政.
如果你这样做,请附上该问题的报告.你可以
删除你发送的消息.
邮件系统
《lvhui@mail3-41.sinamail.sina.com.cn > > < lvhui@sina.com(从):主人
mail3-41i.sinamail.sina.com.cn[10.55.2.41]说:522 22找不到
使用者路径(回复的数据的指令)

本文来源:http://www.zhuodaoren.com/yanjiang889475/

推荐访问:
扩展阅读文章
热门阅读文章