Note that there are some explanatory texts on larger screens.

plurals
  1. POGet keyword of the search with struts Liferay
    primarykey
    data
    text
    <p>I want get the keywords of the search with the portlet of Search. I saw that in the url appear: "struts_action=/search/seach" then I looked for in strut-config.xml and find:<br> action path="/search/search" forward="portlet.search.search" </p> <p>I am trying to do a strut but I don't know very much about struts and it doesn't work. This is the code of 'liferay-hook.xml': </p> <pre><code>&lt;portal-properties&gt;portal.properties&lt;/portal-properties&gt; &lt;struts-action&gt; &lt;struts-action-path&gt;/search/search&lt;/struts-action-path&gt; &lt;struts-action-impl&gt;com.segmentationProject.searchAction.struts.SearchAction&lt;/struts-action-impl&gt; &lt;/struts-action&gt; </code></pre> <p>portal.properties: auth.public.paths=/search/search</p> <p>SearchAction.java: </p> <pre><code>import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.liferay.portal.kernel.struts.BaseStrutsAction; public class SearchAction extends BaseStrutsPortletAction { @Override public void processAction(StrutsPortletAction originalStrutsPortletAction, PortletConfig portletConfig, ActionRequest actionRequest, ActionResponse actionResponse) throws Exception { System.out.println("inside the process "); super.processAction(originalStrutsPortletAction, portletConfig, actionRequest, actionResponse); } @Override public String render(StrutsPortletAction originalStrutsPortletAction,PortletConfig portletConfig, RenderRequest renderRequest, RenderResponse renderResponse) throws Exception { // TODO Auto-generated method stub System.out.println("inside the render"); return super.render(portletConfig, renderRequest, renderResponse); } } </code></pre> <p>Any idea about I missing or do wrong? I only want get the keywords and then do the search normally. Thanks! </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload