[prev in list] [next in list] [prev in thread] [next in thread]
List: taglibs-user
Subject: Re: Need help with <x: tags
From: Shawn Bayern <bayern () essentially ! net>
Date: 2002-12-19 20:53:23
[Download RAW message or body]
Hi Tom,
On Thu, 19 Dec 2002, Zvolensky, Thomas J {PGL~Nutley} wrote:
> Can someone advise if it is possible using x: tag in JSTL to obtain
> the value of an parameter within a tag?
>
> For instance, I have a tag:
>
> <version createdate='2002-03-06T21:45:17'
> filecreatedate='2002-03-06T21:45:16' filedatasize='25600'
> filemodifydate='2002-03-06T21:45:16' filename='Migration Issues.doc'
> fileplatform='2' fileressize='0' filetype='doc' id='6359951'
> indexed='0' locked='0' mimetype='application/msword'
> modifydate='2002-03-06T21:45:17' name='1' nodeid='6359949' number='1'
> owner='4763453' providerid='6359950' providername='EXTSHARED'>
>
> and would like to retrieve the values for mimetype, filename,
> filecreatedate, etc.
>
> Is this possible with JSTL or should I use the XTags library.
Sure, you can use XPath expressions that use the "@" shorthand notation
for the "attribute" axis, so you end up with something like
/version/@mimetype
This means "the attribute 'mimetype' of the tag 'version.'"
Hope that helps,
--
Shawn Bayern
"JSTL in Action" http://www.manning.com/bayern
--
To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@jakarta.apache.org>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic