Hey Vinod,
Currently that's not really possible unfortunately; There is a design
discussion going on for how to solve these use cases by extending the
templating proposal and allowing for such more clasic-style-
webdevelopment, but that will be a little while more before that's in
place.
What does work, although it's a bit of a work around, is fetching your
html output with an signed gadgets.io.makeRequest call, and parsing
the information along on it's url. see:
http://code.google.com/apis/opensocial/articles/makerequest-0.8.html
The you can take the response from that, put that in your root div
element... and you pretty much have the development model your looking
for; Not the cleanest solution, but functional until we have another
way to solve it.
Hope that helps!
-- Chris
On Aug 25, 2008, at 1:10 PM, <[EMAIL PROTECTED]> wrote:
Hi,
I am looking for a solution to pass request parameters to a URL
gadget.
Here is an example of what I am trying to do:-
1) I have a servlet that expects name in the HTTP request so that it
can respond with a Hello <name> message
2) I have created a URL gadget that points to my servlet like this:-
<Module>
<ModulePrefs
title="Hello World Gadget"
directory_title="Simplest Gadget"
title_url="Hello World Gadget"
description="A very simple gadget."
height="120"
author="Vinod Pillai"
/>
<Content href="http://localhost/sample/hello.do" type="url" />
</Module>
Where http://localhost/sample/hello.do is the URL of my servlet.
3) Is there a way to pass name as HTTP request parameter (GET or
POST)
to hello.do through known gadget APIs provided with Shindig
distribution?
Any suggestions/pointers are greatly appreciated.
-vp
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any
attachments to this message are intended for the exclusive use of
the addressee(s) and may contain proprietary, confidential or
privileged information. If you are not the intended recipient, you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately and destroy all copies of this message
and any attachments.
WARNING: Computer viruses can be transmitted via email. The
recipient should check this email and any attachments for the
presence of viruses. The company accepts no liability for any damage
caused by any virus transmitted by this email.
www.wipro.com