Announcement Announcement Module
Collapse
No announcement yet.
reference data Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • reference data

    Hello All,
    I am just starting to use the reference data method in cancellableformcontroller to populate some data on my jsp page.

    The method I have so far is simple:

    protected Map referenceData(HttpServletRequest request)
    {
    Map referenceDataModel = new HashMap();
    referenceDataModel.put("testData", "This is my data");
    logger.debug ("Were getting here" + referenceDataModel.toString());
    return referenceDataModel;
    }

    How do I access this 'testData' on my JSP page? I tried using:
    THIS IS THE VALUE: <c:out value="${model.testData}"/>!

    but no success. I thought that this 'testData' field would just get merged into the model that is returned to the form view.

    Any ideas or links you can point me to?

    Thanks!

    Yogesh

  • #2
    Originally posted by ychawla
    I thought that this 'testData' field would just get merged into the model that is returned to the form view.
    You are exactly right, it does

    Originally posted by ychawla
    THIS IS THE VALUE: <c:out value="${model.testData}"/>!
    Do you reference anything else with "model."? Answer: no

    Originally posted by ychawla
    THIS IS THE VALUE: <c:out value="${testData}"/>!
    HTH

    Comment


    • #3
      Code:
      <c:out value="${testData}"/>

      Comment


      • #4
        Thanks Lumpynose and Yatesco,
        I think I was having a deployment problem. I redeployed and all data passed through as expected.

        Comment

        Working...
        X