Thanks Howard.. great stuff..
Looks like its easy than I thought..
-----Original Message-----
From: Howard Lewis Ship [mailto:[EMAIL PROTECTED]
Sent: 07 February 2008 17:36
To: Tapestry users
Subject: Re: can i do this in T5
It would be easier if it were just /myapp/mypage/...arguments...
To Tapestry, the myMethod/...arguments.... will look like a page
activation event context.
You can see those values as
Object onActivate(Object[] parameters)
{
}
parameters[0] is "myMethod"
parameters[1] is "...arguments..."
You can render a response and return a StreamResponse from your
activate method; that will result in the response (XML in this case)
being sent to the client.
I bulit something just like this a few months ago.
On Feb 7, 2008 9:24 AM, Mahen Perera <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>
>
> This is my requirement.
>
>
>
> I need to basically have a method which sits in the web tier (it
doesn't
> matter where this method is placed),, it should accept some arguments
> and return a XML fragment.
>
>
>
> I need to get this method invoked when the user click on some URL
which
> looks like the following:
>
> http://host:8080/myapp/mypage/myMethod/<i can pass some arguments
here>
>
<http://host:8080/myapp/mypage/myMethod/%3ci%20can%20pass%20some%20argum
> ents%20here%3e>
>
>
>
> Any ideas as to how I can go about doing such a thing?
>
>
>
> Thanks in advance
>
>
>
>
>
>
>
>
>
>
>
>
>
> The information contained in this email is strictly confidential and
for the use of the addressee only, unless otherwise indicated. If you
are not the intended recipient, please do not read, copy, use or
disclose to others this message or any attachment. Please also notify
the sender by replying to this email or by telephone (+44 (0)20 7896
0011) and then delete the email and any copies of it. Opinions,
conclusions (etc.) that do not relate to the official business of this
company shall be understood as neither given nor endorsed by it. IG
Index plc is a company registered in England and Wales under number
01190902. VAT registration number 761 2978 07. Registered Office: Friars
House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised and
regulated by the Financial Services Authority. FSA Register number
114059.
>
--
Howard M. Lewis Ship
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
The information contained in this email is strictly confidential and for the
use of the addressee only, unless otherwise indicated. If you are not the
intended recipient, please do not read, copy, use or disclose to others this
message or any attachment. Please also notify the sender by replying to this
email or by telephone (+44 (0)20 7896 0011) and then delete the email and any
copies of it. Opinions, conclusions (etc.) that do not relate to the official
business of this company shall be understood as neither given nor endorsed by
it. IG Index plc is a company registered in England and Wales under number
01190902. VAT registration number 761 2978 07. Registered Office: Friars House,
157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the
Financial Services Authority. FSA Register number 114059.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]