The action class (classes derived from org.apache.turbine.modules.Action)
comes from the
turbine framework.  If you check out the turbine site
(jakarta.apache.org/turbine and click
on "Specification" under Essentials, there is enough to give you the general
idea.  Basically,
by setting an action in the url /action/"actionclassname", you cause the
turbine servlet to set the
RunData object to use that action before the screen is run (inside the
page).  You can also,
modify the RunData object inside of your action to change the flow of the
app.

A good example of using forms,actions,and screens/portlets is the login
scenario.  Somewhere in
your TurbineResources.prpoperties are screen.login and action.login
properties.  The screen.login
class will set up the form that submits to the action.login class.  If login
is successful, it will
the action will set the screen to some screen (by default, screen.homepage).

If you get a good handle on that process, you should understand how it all
works.

For the submitting or dealing with a single portlet part, take a look at the
org.apache.jetspeed.modules.screens.Home
class.

Rob Revels

-----Original Message-----
From: ZHU Jia [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 19, 2001 3:16 AM
To: Jetspeed Users List
Subject: Re: How do I post HTML-form parameter to my portlet, instead of
aCGI/Servlet?


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:[EMAIL PROTECTED]]
> 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:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>

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

Reply via email to