-
Dec 17th, 2005, 03:00 PM
#1
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?
-
Dec 18th, 2005, 12:26 AM
#2
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.
-
Dec 19th, 2005, 10:08 AM
#3
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
-
Forum Rules