Hi Richard,

You could use the GenericLink component to create the mailto link.

http://jakarta.apache.org/tapestry/3.0.3/doc/ComponentReference/GenericLink.html

As to how to embed the link, perhaps something like

  <a jwcid="@GenericLink" href="ognl:'mailto:' + emailAddress">email</a>

would do the trick. Depending on how much you know about Tapestry already, this might be total gibberish to you, or not.

Or you could create a getEmail method in your Java class and have it assemble the link, then use something like

  <a jwcid="@GenericLink" href="ognl:email">email</a>

instead.

Well, I hope that cleared things up a bit... If you have any other questions - or if my answer doesn't make any sense to you - please ask. I won't stay awake for much longer - it's 4am here - but surely someone else will be here.

-Filip

Richard Hart wrote:
Hello,
I have only started playing around with Tapestry in the last few days and am
really enjoying but I am totally stumpped as to how I can create a "mailto"
link. I have searched through the documentation but haven't found it very
helpful as to how to create links of any kind. I have set up a BasePage class with, for example, a variable containing the
email address. I just don't understand how to embed that into a link?
Any help is appreciated. Regards, Richard


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


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to