Skip to content

Instantly share code, notes, and snippets.

View martinlau's full-sized avatar

Martin Lau martinlau

View GitHub Profile
@martinlau
martinlau / standard-form-with-portlet-action-url.html
Created August 14, 2012 11:52
HTML output of a portlet JSP illustrating a standard actionURL and form
<form action="http://www.example.com/web/guest/home?p_auth=Ex7KuhQN&amp;p_p_id=samplegetformportlet_WAR_samplegetformportlet&amp;p_p_lifecycle=1&amp;p_p_state=normal&amp;p_p_mode=view&amp;p_p_col_id=column-1" method="post" id="aui_3_4_0_1_2502">
<input type="text" name="query" id="aui_3_4_0_1_2501" class="">
<input type="submit">
</form>
@martinlau
martinlau / standard-form-with-portlet-action-url.jsp
Created August 14, 2012 11:44
Portlet JSP illustrating a standard actionURL and form
<%@ taglib prefix="portlet" uri="http://java.sun.com/portlet_2_0" %>
<portlet:actionURL var="submitURL" />
<form action="${submitURL}" method="post">
<input type="text" name="query" />
<input type="submit" />
</form>
@martinlau
martinlau / form-get-with-query-string.html
Created August 14, 2012 11:38
HTML Form illustrating a GET method with query string parameters
<form action="http://www.example.com/search?query=blah" method="get">
<input type="hidden" name="search" value="blech" />
<input type="submit" />
</form>