HTML/JS Code:
<form id="myform" action="<portlet:actionURL/>" method="GET">
<input type="hidden" id="val" name="val"/>
<input type="submit" onClick="Go()" value="Go">
</form>
<script>
function search() {
document.getElementById("val").value = "MYVALUE";
document.getElementById("myform").submit();
}
</script>
Java Code:
@Override
public void processAction(ActionRequest request, ActionResponse response)
throws PortletException, IOException {
System.out.println("SHOULD REACH HERE");
}
IF I change the method to post in HTML, I reach the process action but not with GET method. Can some one please point me how can i submit a GET request in liferay?
Thanks/