由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - Re: Custom Tag: embedding tag inside tag
相关主题
Custom Tag: embedding tag inside tag?What version of the Java Development Kit (JDKTM)
学习JAVA的人要注意What are the design goals of the Enterprise JavaB
struts 问题What specific services does a container provide f
Help me: jsp tag 问题What are the transaction management benefits of t
default value in hibernate?What's the relationship between Enterprise JavaBe
who use JavaBean?What's the relationship between the Enterprise Ja
[转载] Mutually exclusive attributes关于EJB
What is the roadmap for EJB technology?jBuiler 4白皮书(来自inprise网站)
相关话题的讨论汇总
话题: tag话题: tag1话题: tag2话题: what话题: lib
进入Java版参与讨论
1 (共1页)
m**c
发帖数: 90
1

What don't you use nested tag to solve the problem:



You need to implement BodyTagSupport (cannot remember if it is correct name)
for tag2. tag2 can "communicate" tag1.
attribute
r*u
发帖数: 436
2
Yeah, I thought about nested tag too but it doesn't really fit my case. What I
have really is something like

where "string" needs to be retrieved from a int'lized resource bundle. I
could've put the bundle information in tag1 but hoping there's an easier way
of doing this.
Currently I am looking at JSTL and EL stuff - that should provide a good
solution...
Thanks for your suggestion.

【在 m**c 的大作中提到】
:
: What don't you use nested tag to solve the problem:
:
:
:

: You need to implement BodyTagSupport (cannot remember if it is correct name)
: for tag2. tag2 can "communicate" tag1.
: attribute

n*****k
发帖数: 123
3

I
Really doubt you can do it with JSTL. I personal do not like this design,
using javabean for that resource second tag makes life lots of easy.
name)

【在 r*u 的大作中提到】
: Yeah, I thought about nested tag too but it doesn't really fit my case. What I
: have really is something like
:
: where "string" needs to be retrieved from a int'lized resource bundle. I
: could've put the bundle information in tag1 but hoping there's an easier way
: of doing this.
: Currently I am looking at JSTL and EL stuff - that should provide a good
: solution...
: Thanks for your suggestion.

r*u
发帖数: 436
4
I can retreive that string from a JSTL tag (fmt:message), now the question is
how to set the result of that tag to a bean object.
Or am I drilling into a dead end here? :(

What
way

【在 n*****k 的大作中提到】
:
: I
: Really doubt you can do it with JSTL. I personal do not like this design,
: using javabean for that resource second tag makes life lots of easy.
: name)

n*****k
发帖数: 123
5

is
First all, I am not an expert in this field, so do not take my words so
seriously.
What I am trying to say is you can transfer the resourse tag into a javabean,
so than you can use this javabean within any other tags.
I just know JSTL, but I am pretty sure there are lots of other tag libraries
out there, so you may find something suit you well.
Otherwise, what you have to do is redesign the tag, so that it can be used
within other tag.

【在 r*u 的大作中提到】
: I can retreive that string from a JSTL tag (fmt:message), now the question is
: how to set the result of that tag to a bean object.
: Or am I drilling into a dead end here? :(
:
: What
: way

r*u
发帖数: 436
6
Yeah, the JavaBean approach will be my backup plan. Any good places you know
for looking up other tag libs? Thanks a lot.

javabean,

【在 n*****k 的大作中提到】
:
: is
: First all, I am not an expert in this field, so do not take my words so
: seriously.
: What I am trying to say is you can transfer the resourse tag into a javabean,
: so than you can use this javabean within any other tags.
: I just know JSTL, but I am pretty sure there are lots of other tag libraries
: out there, so you may find something suit you well.
: Otherwise, what you have to do is redesign the tag, so that it can be used
: within other tag.

m**c
发帖数: 90
7

http://jakarta.apache.org/taglibs/index.html
question
libraries

【在 r*u 的大作中提到】
: Yeah, the JavaBean approach will be my backup plan. Any good places you know
: for looking up other tag libs? Thanks a lot.
:
: javabean,

r*u
发帖数: 436
8
yeah, found that too. thnx!

know
used

【在 m**c 的大作中提到】
:
: http://jakarta.apache.org/taglibs/index.html
: question
: libraries

1 (共1页)
进入Java版参与讨论
相关主题
jBuiler 4白皮书(来自inprise网站)default value in hibernate?
Re: 推荐推荐who use JavaBean?
Re: 谁能谈谈EJB!![转载] Mutually exclusive attributes
Please recommend Builder for JavaBeanWhat is the roadmap for EJB technology?
Custom Tag: embedding tag inside tag?What version of the Java Development Kit (JDKTM)
学习JAVA的人要注意What are the design goals of the Enterprise JavaB
struts 问题What specific services does a container provide f
Help me: jsp tag 问题What are the transaction management benefits of t
相关话题的讨论汇总
话题: tag话题: tag1话题: tag2话题: what话题: lib