hi

Hans Bergsten schrieb:
> 
> Ben Pezzei wrote:
> > So the perfect way would be: give the String, which contains the
> > tag, to some method, parse it and return the altered text with
> > the correct link. how can i give this String to the corresponding
> > link-tag-class? if possible;)
 
> I would suggest that you instead allow regular <a> elements in the
> text. If the URL must be processed somehow (e.g. expanded with a
> some special prefix, URL rewritten, etc. your <article:display> can
> simply parse out the <a> elements, process them and add the result
> to the output stream. This way the author can use an HTML element
> she is familiar with, no need to learn a new one.

yeah, that would be nice, but i cant use the normal <a href..>-tag
because a link to another doc in the app would point actually
to some kind of object (which is processed at runtime into an URL)
 
> If the processing is complex, and if you want to invoke it in other
> places using the <a:link> action, put it in a separate class that you
> can use from both the <a:link> and the <article:display> tag handlers.

yeah, that was also the first thing i thought about. But the point ist
that i dont want to code something which already exists, so i asked
the mailinglist.

so basically this is what i tried (in the <article:display>-Class):

LinkTag t = new LinkTag();
t.setPageContext(pageContext); [x]
t.setParent(this);
t.doStartTag();
...and so on till
t.release();

[x] the point is that i have to create a PageContext object which
content(data) is actually the String i read out from the db.
at least this could be the way i *think* it would be possible.

well after reading around i doubt this would work

> Or did I miss something?

nope ;)

greetings
ben

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to