Announcement Announcement Module
Collapse
No announcement yet.
Error in referenceData() Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error in referenceData()

    Hai users,

    I am having a jsp file which is called through a submit action by a link.

    then it uses a controller to show the form view.

    my doubt is in myreference data method i used the following code
    {
    map.put("Name","aniesh");
    }

    in my jsp i have
    <c:out value="${Name}"/>

    i am not getting any errord but there is no output displayed.

    should i use any bind tag.

    can anyone help me

    thanks
    anieshuk

  • #2
    Have you included the c: tag? I quite often get caught out by that

    Other than that, no idea. Can you step through and make sure referenceData is being called, and also what is being outputted in the source of the HTML?

    Comment


    • #3
      Error in referenceData()

      hai yatesco

      i have used c tag.the error is my referenceData has not been called.Can i directly use SimpleFormController or used i override that class?

      thank
      anieshuk

      Comment


      • #4
        Can i directly use SimpleFormController or used i override that class?
        You need to override that class and override the referenceData method, as it appears you are doing from an earlier post. As yatesco says, verify that referenceData is called, then you can move on to checking whether it is a JSP/JSTL issue.

        the error is my referenceData has not been called
        There must be a config issue - can you check it? Post it if unsure.

        Comment

        Working...
        X