You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Rob Revels <RR...@ENGENIA.COM> on 2001/11/18 20:06:57 UTC
RE: How do I post HTML-form parameter to my portlet, instead of a
CGI/Servlet?
One way to do this--if you are using the default Jetspeed Home screen-- is
that you could post
your form to /PORTLET/"portlet name" and use the getParameters() method on
RunData
to read the name/value pairs from the form and act on them within your
portlet's getContent() method.
You could also create an action class to read the form data (as above),
process the form data,
and set the RunData object so that an appropriate screen and/or portlet will
be used to
render the response.
Rob Revels
-----Original Message-----
From: ZHU Jia [mailto:jia.zhu@ains.at]
Sent: Sunday, November 18, 2001 10:26 AM
To: Jetspeed Users List
Subject: How do I post HTML-form parameter to my portlet, instead of a
CGI/Servlet?
Hello,
can I pass the parameters I entered into an HTML form in Jetspeed to my
portlet (which also initialized this HTML form), and this same portlet
should display different output according to the parameter, all in the
portlet area and without occupying the whole page?
Which kind of portlet should I use? I understand it couldn't be a normal
HTTP request because then the response would take the whole screen, which I
don't want. I just want to send these parameters to my portlet, the portlet
updates its output and Jetspeed refresh the screen and the new content is
there!
Any hints or tips will be highly appreciated and many thanks in advance!
regards
ZHU Jia
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
Re: How do I post HTML-form parameter to my portlet, instead of
aCGI/Servlet?
Posted by ZHU Jia <ji...@ains.at>.
Many thanks for the response! I'll try this out asap.
Btw, I've heard action class a lot in this list, but I'm not sure what
it is, can you give me a short description or point me to some
documentation?
Again, many thanks in advance!
regards
ZHU Jia
Rob Revels schrieb:
>
> One way to do this--if you are using the default Jetspeed Home screen-- is
> that you could post
> your form to /PORTLET/"portlet name" and use the getParameters() method on
> RunData
> to read the name/value pairs from the form and act on them within your
> portlet's getContent() method.
>
> You could also create an action class to read the form data (as above),
> process the form data,
> and set the RunData object so that an appropriate screen and/or portlet will
> be used to
> render the response.
>
> Rob Revels
> -----Original Message-----
> From: ZHU Jia [mailto:jia.zhu@ains.at]
> Sent: Sunday, November 18, 2001 10:26 AM
> To: Jetspeed Users List
> Subject: How do I post HTML-form parameter to my portlet, instead of a
> CGI/Servlet?
>
> Hello,
>
> can I pass the parameters I entered into an HTML form in Jetspeed to my
> portlet (which also initialized this HTML form), and this same portlet
> should display different output according to the parameter, all in the
> portlet area and without occupying the whole page?
> Which kind of portlet should I use? I understand it couldn't be a normal
> HTTP request because then the response would take the whole screen, which I
> don't want. I just want to send these parameters to my portlet, the portlet
> updates its output and Jetspeed refresh the screen and the new content is
> there!
> Any hints or tips will be highly appreciated and many thanks in advance!
>
> regards
> ZHU Jia
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>