Skip to content

Instantly share code, notes, and snippets.

@iruslani
Created June 14, 2012 20:11
Show Gist options
  • Save iruslani/2932628 to your computer and use it in GitHub Desktop.
Save iruslani/2932628 to your computer and use it in GitHub Desktop.
Basic JSP code to grab a url parameter.
<%
String version = request.getParameter("version");
if ("new".equals(version)) { %>
<jsp:include page="/jsp/pages/newversion.jsp" flush="true" />
<% } else { %>
<p>show this page </p>
<% } %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment