关键代码如下:
<%
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>显示的时候显示的是"/"这是怎么回事?在线等啊!~~~

解决方案 »

  1.   

    仔细检查一下,不 应该的,不过你贴的代码就不对,try 和catch间不是一个block哦
      

  2.   

    因为你的value=  后面没用双引号引起来,  所以你后面的/ 当成value值了
      

  3.   

    <input type="text" name="author" value=${article.author}/>
    用el表达式试试.或这样
    <input type="text" name="author" value="<%=article.getauthor()%>" />
      

  4.   

    问题已解决,原来是<input type="text" name="author" value= <%=article.getauthor()%>/> 这句的问题,不能又结束标签
      

  5.   

    <input type="text" name="author" value= <%=article.getauthor()%>/>
    需要改成
    <input type="text" name="author" value=<%=article.getauthor()%> />

    <input type="text" name="author" value="<%=article.getauthor()%>" />