I hope no one feels offended if I post that much newbie questions but I'm at a point where I don't get any further without help.
In previouse posts people suggested me to use ${status.expression} instead the name it self. It actually did not solve my problem I posted before but I have another problem.
I currently use following code which returns me the disered values from the user
But if I use status.expression instead the value and the name attribute in the input tag is empty - so it does not work with user.expression but with the fix name username it works!Code:<spring:bind path="user.user.username"> <input type="text" name="username" value="${user.user.username}"/> <span class="fieldError">${status.errorMessage}</span> </spring:bind>
This should work both way!? Shouldn't it?Code:<spring:bind path="user.user.username"> <input type="text" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>"> <span class="fieldError">${status.errorMessage}</span> </spring:bind>


Reply With Quote