java - Spring MVC : tag form: not interpreted -
I'm facing a problem.
I have a jesp, it works perfectly and well.
& form; Form: form action = "$ {form}" class = "form-options" commandName = "form" & gt; & Lt; Div id = "clonal" class = "clonable" & gt; & Lt; Fieldet id = "monfield" & gt; & Lt; P & gt; Lien source: & lt; Look: Input ID = "urlSource_0" path = "mesFormulaires [0] .urlSource" type = "text" name = "urSLSource_0" /> & Lt; Br / & gt; & Lt; / P & gt; & Lt; P & gt; & Lt; Input class = "input" type = "submit" value = "save" /> & Lt; Br / & gt; & Lt; / P & gt; & Lt; / Form: Form & gt; And, I have a button, which adds another similar form using Javascript
& lt; Script & gt; Var formacount = 0; Click on the "+" (function () {$ (function () {formCount ++; var template = "& lt; fieldet id = 'field' & gt;" + "& lt; p & gt; Eclipse source:" + "& Amp;; Lt; Input id = 'urlSource _' + formCount + "'path =' mesFormulaires [" + formCount + "]. UrlSource 'type =' text 'name =' urlSource _" + formCount + "'/ & amp; ;;; "+" & Lt; / br> & lt; / p & gt; "+" & lt; / fieldset & gt; template; template.replace (/ & lift; / g, "& Lt;"); template = template.replace (/ & gt; / G, "& gt;"); $ (template) .appendTo ('#cloneable');});}); Lt; / script & gt; But when I add a new look to my page, I only have text, and My "form:" is not interpreted, so my form is not working and I need to work for my form.
Yes, I have it (other similar Regular questions in posts)
& lt;% @ taglib uri = "http: /wwwwww.springframework.org/tags/form" prefix = "form"% & gt; This is the only form: which does not work, because if I delete it, the form looks ok.
Regards.
Thank you.
The markup you are outputing in JavaScript is that spring form JSP tag ( path < / Code>). Javascript is executed after that page has been provided and sent to the customer, so to produce spring form JSP tags to correctly output bound value Can be executed. The JSP tag works only before , the page has been sent to the customer, while it is still being provided on the server.
Comments
Post a Comment