我换成
//sample.jsp
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %><html:html locale="true">
<head>
<title>RegUser</title>
<html:base/>
</head>
<body bgcolor="white">
<html:errors/><html:form method=post action="sample.do">
   username:<html:text property="theName" size="16" maxlength="16"/><br>
   password:<html:password property="thePassword" size="16" maxlength="16"/><br>
   <html:submit property="submit" value="Submit"/>
   <html:cancel property="reset" value="Reset"/>
</html:form></body>
</html:html>
还是报同样的错~怎么回事哈??

解决方案 »

  1.   

    org.apache.jasper.JasperException: /sample1.jsp(13,19) quote symbol expected
    13行少了引号,错误已经非常清楚了啊!
    <html:form method=post action="sample.do">
    ===》
    <html:form method="post" action="sample.do">
      

  2.   

    <html:form method=post action="sample.do">
    改成:
    <html:form method="post" action="/sample.do">
    1个是引号的问题,第二个是路径的问题,一定要加“/”
      

  3.   

    这样写就好了~谢谢哈!散分拉
    <%@ page contentType="text/html; charset=gbk"%>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <html:html locale="true">
    <head>
    <title>logon.title</title>
    <html:base/>
    </head>
    <body bgcolor="white"><html:errors/><html:form action="sample.do" focus="username">
    <table border="0" width="100%">  <tr>
        <th align="right">
          用户名:
        </th>
        <td align="left">
          <html:text property="theName" size="16" maxlength="18"/>
        </td>
      </tr>  <tr>
        <th align="right">
          密  码:
        </th>
        <td align="left">
          <html:password property="thePassword" size="16" maxlength="18"
                        redisplay="false"/>
        </td>
      </tr>  <tr>
        <td align="right">
          <html:submit value="发送"/>
        </td>
        <td align="left">
          <html:reset value="重置"/>
        </td>
      </tr></table></html:form></body>
    </html:html>