After seeing a couple threads on the subject I decided I would formalize the
issue. It sounds as though I am not the only one who can't get a jsp
portlet to behave as expected when dealing with forms. Simply put, all I
want to do is have a jsp in a portlet that has a form. There are a few
requirements:
-When I click on the submit button I shouldn't post everything back to the
server, only the information in my portlet, or at least the only thing that
should fire on the server is something that I want.
-The portal should only display a change in that particular pane that it is
displayed in. If 5 portlets are on a page and one of them is mine, then
only mine should show any change of state if I interact with it by pressing
the submit button.
While getting this to work between a servlet and jsps outside of the portal
is a breeze, I haven't for the life of me got this to work inside jetspeed.
Specifically I have the following questions
-What is the action of a form in the included JSP? (Scott Weaver was nice
enough to suggest $jslink.template, but I assume that is some kind of
velocity paradigm and didn't work for me, resulting in a 404 error.)
-Are action classes the tool to use to process the input parameters posted
to the server (as if you use the jsp portlet you can't get at the jsp
portlet code)? I assume that the action class would model that of a servlet
outside of jetspeed.
To register an action class with jetspeed, if I have a class called called
com.mycompany.portal.actions.MyActionClass with a method called "doNext()",
would I put
module.properties=com.mycompany.portal
in the TurbineResources.properties file
and then in the portlet's xreg file put
<parameter name="action" value="actions.MyActionClass" hidden="false"
cachedOnName="true" cachedOnValue="true"/>
And in the jsp, for the button would I put
<input type="submit" name="eventSubmit_doNext" value="Next >>">
And then for the form's action I would put what?
If someone can assist and can get me a working example I would be more than
happy to make a doc of exactly how to do this so that we don't have to keep
posting the same question to the newsgroup. Thanks in advance.
_________________________________________________________________
Choose an Internet access plan right for you -- try MSN!
http://resourcecenter.msn.com/access/plans/default.asp
--
To unsubscribe, e-mail: <mailto:jetspeed-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-user-help@;jakarta.apache.org>
- RE: Forms, portlets, and JSPs Andy Benjamin
- RE: Forms, portlets, and JSPs Mark Orciuch
- Using Frame in JetSpeed Danh Hoai
