Ben, I looked around for quite a while for a 'simple' way to do this (like add some sort of parameter to the query) that would directly to what the <form> method does. However I was not able to find anything and time is at a prime in my current project. The only solution I could find (and the one I am currently using) as to add a destination parameter as in:
<a href="$jslink.Template.addQuery('destination','doSearch')">Search</a> I am using Velocity instead of JSP (don't know how it's done in JSP), but you should get the general idea. Afterwards, in my Action, in the buildNormalContext() I run a test like: protected void buildNormalContext(VelocityPortlet portlet, Context context, RunData rundata) throws Exception { [...] if (destination !=null) { if (destination.equals("doSearch")) doSearch(); else if (destination.equals("doUpdate")) doUpdate(); } [...] private void Search(RunData rundata, Context context) throws Exception { [...] Hope this helps. If you find out a better way to do this (like in the <form>) please let me know! Regards Ruy --- Ben Bookey <[EMAIL PROTECTED]> wrote: > > Dear List, > > Great project. I would like to pass an action to my action class. This works > fine within > a JSP page as a FORM tag. (see below) > > > <FORM method="get" action="<jetspeed:link template="AdvanceSearch" > action="portlets.AdvanceSearchAction"/>"> > > <tr align='top'> > <td><input type="submit" name="eventSubmit_doSearch" > value="Search"/></td> > </tr> > </FORM> > > > > Is it possible to pass an action parameter via a HREF link ? something like > this ? > > <a href="<jetspeed:link template="AdvanceSearch" > action="portlets.AdvanceSearchAction"/>?eventSubmit_doSearch=true">Search</a > > > > > Would really appreciate help > > regards > Ben > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]