Results 1 to 3 of 3

Thread: map referenceData

  1. #1

    Default map referenceData

    Hi,

    I know the method referenceData return a map that contains objet
    that I can use in my jsp page. things like a list
    that I can use to make a drop down list.

    But I want to pass a list in that map to a custom tag.

    And I've been trying for month and I can't find a solution

    I can use EL (${}) to construct my drop down, But I have
    13 of them in a form, So my jsp is quite big, and I don't like that.

    I have a custom tag that builds a drop down, but I just can't pass
    the list to it. Because I cannot access it easily. How does
    jstl access it??? simply with ${listJob}???

    what does ${listJob} means really in ??? Which bean does it use??
    How this introspection works???

    I was trying to use

    <jsp:useBean id="listJob" scope="request" class="java.util.List" />
    But it doesn't work.

    Have someone did that?

  2. #2
    Join Date
    Aug 2004
    Location
    Hawaii, US
    Posts
    225

    Default

    It depends on how you wrote your custom tag. Your tag is responsible for dereferencing ${xxx}. For an example, check the Spring tags' source code. Spring provides a nice utility for working with JSTL variables.

    On a side note, you should really use a JSP 2.0 tag file. They are much easier to write than standard Java tags, and can handle the dynamic JSTL parameters automatically.

  3. #3

    Default tag file article

    Thank you very much for indicating me about
    existance of tag file,

    I didn't even know their existance.

    I found a interesting article on OTN(oracle technology network)

    Here's the link for people like me

    http://www.oracle.com/technology/pub..._tagfiles.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •