关键代码如下:
<%
String temp = request.getParameter("id");
try{
int num=new Integer(temp).intValue();
article=jthandle.getArticle(num);
catch(Exception e)
{ article.setauthor("");
article.setcontext("");
article.setleibie("");
article.settittle("");
%><td><input type="text" name="author" value=<%=article.getauthor()%>/></td>显示的时候显示的是"/"这是怎么回事?在线等啊!~~~
<%
String temp = request.getParameter("id");
try{
int num=new Integer(temp).intValue();
article=jthandle.getArticle(num);
catch(Exception e)
{ article.setauthor("");
article.setcontext("");
article.setleibie("");
article.settittle("");
%><td><input type="text" name="author" value=<%=article.getauthor()%>/></td>显示的时候显示的是"/"这是怎么回事?在线等啊!~~~
用el表达式试试.或这样
<input type="text" name="author" value="<%=article.getauthor()%>" />
需要改成
<input type="text" name="author" value=<%=article.getauthor()%> />
或
<input type="text" name="author" value="<%=article.getauthor()%>" />