Skip to content

Instantly share code, notes, and snippets.

@chingovan
Created June 27, 2015 11:43
Show Gist options
  • Save chingovan/a550da9add83552411d6 to your computer and use it in GitHub Desktop.
Save chingovan/a550da9add83552411d6 to your computer and use it in GitHub Desktop.
<%@ include file="/html/database/init.jsp"%>
<%
List<Student> students = StudentLocalServiceUtil.getStudents(QueryUtil.ALL_POS, QueryUtil.ALL_POS);
for(Student student : students) {
%>
<span><%= student.getFullName() %></span>
<br />
<%} %>
<portlet:renderURL var="addStudentURL">
<portlet:param name="mvcPath" value="/html/database/edit.jsp" />
</portlet:renderURL>
<p><a href="<%= addStudentURL %>">Click to add a Student</a></p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment