samedi 2 juillet 2016

Invalid token #end - Struts Velocity


I placed the following code in enter-protein.vm

 <html>
      <head>
         <meta http-equiv="CONTENT-TYPE" content="text/html; charset=ISO-8859-1">
         <title>Insert title here</title>
      </head>
      <body>
         <h1> Enter Protein VELOCITY </h1>

         #sform ("action = enter-protein")
         #stextfield ("name=enteredProtein")
         #ssubmit("value=Enter")
         #end
         <div>Amount entered: #sproperty ("value = enteredProtein")</div>
         <div> Total for the day : 100 grms  </div>
         <div> #sproperty ("value=goalText")</div>
      </body>
   </head>
</html> 

I get an error at #end as

Invalid token #end

I also included additional directories like commons-collections-3.2.jar, velocity-1.6.2.jar, velocity-tools-view.2.0.jar


Aucun commentaire:

Enregistrer un commentaire