| 1 |
<%@ taglib uri='struts-bean' prefix='bean' %> |
|---|
| 2 |
<%@ taglib uri='struts-logic' prefix='logic' %> |
|---|
| 3 |
<%@ taglib uri='struts-html' prefix='html' %> |
|---|
| 4 |
|
|---|
| 5 |
<% |
|---|
| 6 |
try { |
|---|
| 7 |
%> |
|---|
| 8 |
<%-- Generates standard calendar values for use in the client for forms, etc --%> |
|---|
| 9 |
|
|---|
| 10 |
<bean:define id="forLabels" name="calForm" property="forLabels" /> |
|---|
| 11 |
<bean:define id="calInfo" name="calForm" property="today.calInfo" /> |
|---|
| 12 |
|
|---|
| 13 |
<daylabels> |
|---|
| 14 |
<logic:iterate id="dayLabel" name="calInfo" property="dayLabels"> |
|---|
| 15 |
<val><bean:write name="dayLabel"/></val> |
|---|
| 16 |
</logic:iterate> |
|---|
| 17 |
</daylabels> |
|---|
| 18 |
<dayvalues> |
|---|
| 19 |
<logic:iterate id="dayVal" name="calInfo" property="dayVals"> |
|---|
| 20 |
<val><bean:write name="dayVal"/></val> |
|---|
| 21 |
</logic:iterate> |
|---|
| 22 |
<start><bean:write name="calForm" property="viewStartDate.day"/></start> |
|---|
| 23 |
</dayvalues> |
|---|
| 24 |
<daynames> |
|---|
| 25 |
<logic:iterate id="dayName" name="calInfo" property="dayNamesAdjusted"> |
|---|
| 26 |
<val><bean:write name="dayName"/></val> |
|---|
| 27 |
</logic:iterate> |
|---|
| 28 |
</daynames> |
|---|
| 29 |
<shortdaynames> |
|---|
| 30 |
<logic:iterate id="shortDayName" name="calInfo" property="shortDayNamesAdjusted"> |
|---|
| 31 |
<val><bean:write name="shortDayName"/></val> |
|---|
| 32 |
</logic:iterate> |
|---|
| 33 |
</shortdaynames> |
|---|
| 34 |
<monthlabels> |
|---|
| 35 |
<logic:iterate id="monthLabel" name="calInfo" property="monthLabels"> |
|---|
| 36 |
<val><bean:write name="monthLabel"/></val> |
|---|
| 37 |
</logic:iterate> |
|---|
| 38 |
</monthlabels> |
|---|
| 39 |
<monthvalues> |
|---|
| 40 |
<logic:iterate id="monthVal" name="calInfo" property="monthVals"> |
|---|
| 41 |
<val><bean:write name="monthVal"/></val> |
|---|
| 42 |
</logic:iterate> |
|---|
| 43 |
<start><bean:write name="calForm" property="viewStartDate.month"/></start> |
|---|
| 44 |
</monthvalues> |
|---|
| 45 |
<yearvalues> |
|---|
| 46 |
<logic:iterate id="yearVals" name="calForm" property="yearVals"> |
|---|
| 47 |
<val><bean:write name="yearVals"/></val> |
|---|
| 48 |
</logic:iterate> |
|---|
| 49 |
<start><bean:write name="calForm" property="viewStartDate.year"/></start> |
|---|
| 50 |
</yearvalues> |
|---|
| 51 |
<hourlabels> |
|---|
| 52 |
<logic:iterate id="hourLabel" name="calForm" property="forLabels.hourLabels"> |
|---|
| 53 |
<val><bean:write name="hourLabel"/></val> |
|---|
| 54 |
</logic:iterate> |
|---|
| 55 |
</hourlabels> |
|---|
| 56 |
<hourvalues> |
|---|
| 57 |
<logic:iterate id="hourVal" name="calForm" property="forLabels.hourVals"> |
|---|
| 58 |
<val><bean:write name="hourVal"/></val> |
|---|
| 59 |
</logic:iterate> |
|---|
| 60 |
<start><bean:write name="calForm" property="viewStartDate.hour"/></start> |
|---|
| 61 |
</hourvalues> |
|---|
| 62 |
<minvalues> |
|---|
| 63 |
<logic:iterate id="minuteVals" name="calForm" property="forLabels.minuteLabels"> |
|---|
| 64 |
<val><bean:write name="minuteVals"/></val> |
|---|
| 65 |
</logic:iterate> |
|---|
| 66 |
<start><bean:write name="calForm" property="viewStartDate.minute"/></start> |
|---|
| 67 |
<%-- <logic:iterate id="minuteVals" name="calForm" property="forLabels.minuteLabels"> |
|---|
| 68 |
--%> |
|---|
| 69 |
</minvalues> |
|---|
| 70 |
<ampmvalues> |
|---|
| 71 |
<logic:iterate id="ampmVals" name="calForm" property="forLabels.ampmLabels"> |
|---|
| 72 |
<val><bean:write name="ampmVals"/></val> |
|---|
| 73 |
</logic:iterate> |
|---|
| 74 |
<start><bean:write name="calForm" property="viewStartDate.ampm"/></start> |
|---|
| 75 |
</ampmvalues> |
|---|
| 76 |
</ucalendar> |
|---|
| 77 |
<% |
|---|
| 78 |
} catch (Throwable t) { |
|---|
| 79 |
t.printStackTrace(); |
|---|
| 80 |
} |
|---|
| 81 |
%> |
|---|
| 82 |
|
|---|
| 83 |
<%-- Required to force write in jetspeed2 portal-struts bridge |
|---|
| 84 |
< % pageContext.getOut().flush(); % > |
|---|
| 85 |
--%> |
|---|
| 86 |
|
|---|