Announcement Announcement Module
Collapse
No announcement yet.
form:label does not display value to screen Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • form:label does not display value to screen

    Hello,

    Spring 3.0 and jsp. I have a simple POJO named Registration that contains a couple of instance variables.

    -- jsp page
    <%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>

    <form:form action="" method="post" commandName="registration">
    <div>
    <form:label path="first">NotShowingUP</form:label>
    <form:input path="first"/>
    <form:errors path="first" />
    </div>

    -- end jsp

    When I call this up, the pojo contains first and does not complain. Only problem is the label never shows up.

    I have googled this dilemma for a bit, but no solution.

    Thanks,

  • #2
    Are the DIV tags conflicting with the outer form tag?

    EDIT: Also, are you closing your opening form tag?

    Example:

    Code:
    </form:form>
    Last edited by markabrucey; Aug 16th, 2011, 10:36 AM.

    Comment


    • #3
      Will give that a whirl

      Thanks for the reply to my email. I am working on another issue, but your idea makes good sense. I will try it in a bit and respond back.

      Thanks

      Comment

      Working...
      X