2.由于数据库的SQL语句完成对数据库的数据操作时
"'"用于表示字符串而且是成对出现的.比如说你的
sql语句最后可能就成了.webname='ABCD'EFGH'这样当然有错了
解决方法我也不知道,不好意思.
3.你可以用session传递一个标志,在input.jsp叶面中设置一个hidden类型的
变量,根据session的传的值改变hidden的属性。

解决方案 »

  1.   

    1 :查一下乱码方面的文章吧,好像是回到原页面就乱码了,看怎样转换一下3:On the JSP, you can check for messages, as opposed to errors, by specifying message= 
    true in any of the message tags: 
    <logic:messagesPresent message="true"> 
    <UL> 
    <html:messages id="message" message="true"> 
    <LI><bean:write name="message"/></LI> 
    </html:messages> 
    </UL> 
    </logic:messagesPresent> 
    To check for errors, as opposed to messages, omit the message attribute (which 
    defaults to false). 
    这是《Struts in action》215页,就是说你把 message="true" 如果是false(默认值)显示Error信息 木子