71,7 → 71,23 |
<ul> |
<logic:iterate id="unit" name="UserSession" property="user.subscribedUnitsCurrentYearViewS2" type="pt.estgp.estgweb.domain.CourseUnit"> |
<li> |
<html:link action="/user/startLoadCourseUnitFromHome?id=${unit.id}">${unit.name} (${unit.importYear})</html:link> |
<% |
String courseCode = ""; |
if(unit.getCourse() != null) |
{ |
String courseName = unit.getCourse().getName(); |
String[] words = courseName.split(" "); |
for(String word: words) |
{ |
if(word != null && word.length() > 3 && word.charAt(0) >= 'A' && word.charAt(0) <= 'Z' ) |
{ |
courseCode += word.charAt(0); |
} |
} |
} |
|
%> |
<html:link action="/user/startLoadCourseUnitFromHome?id=${unit.id}">${unit.name} (<%=courseCode%> ${unit.importYear})</html:link> |
</li> |
</logic:iterate> |
</ul> |