java - quote symbol expected error when using hibernate as form vaildation -


i getting error says:

/web-inf/jsps/createoffer.jsp (line: 29, column: 67) quote symbol expected   

from read in java spring documentations below correct. app runs until select link form on index.jsp page.

<%@ page language="java" contenttype="text/html; charset=utf-8"     pageencoding="utf-8"%> <%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form" %> <!doctype html public "-//w3c//dtd html 4.01 transitional//en"  "http://www.w3.org/tr/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <link href="${pagecontext.request.contextpath}/static/css/main.css"     rel="stylesheet" type="text/css" />  <title>my form</title> </head> <body>      <sf:form method="post"         action="${pagecontext.request.contextpath}/docreate" commandname="offer">          <table class="formtable">             <tr>                 <td class="label">name:</td>                 <td><sf:input class="control" path="name" name="name" type="text" /></td>             </tr>             <tr>                 <td class="label">email:</td>                 <td><sf:input class="control" path="email" name="email" type="text" /></td>             </tr>             <tr>                 <td class="label">your offer:</td>                 <td><sf:textarea class="control" path="text" name="text" rows=10 cols=10 /></td>             </tr>             <tr>                 <td></td>                 <td><input name="create offer" type="submit" /></td>             </tr>         </table>      </sf:form>  </body> </html> 

from offerscontroller.java

@requestmapping("/createoffer") public string createoffer(model model) {  model.addattribute("offer", new offer());  /*list<offer> offers = offersservice.getcurrent();  model.addattribute("offers", offers); */ return "createoffer"; 

}

offer bean

@component public class offer {      private int id;     @size(min = 5, max = 25, message = "name not vaild")     private string name;     @notnull     @email(message = "is not vaild email address")     private string email;     private string text;      public offer() {      } 

i don't have enough points add comment. can double check row=10 same row="10" in jsp file? error message seems syntax problem in jsp.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -