Changeset 1649

Show
Ignore:
Timestamp:
09/07/11 09:39:51 (8 months ago)
Author:
kohlhaas
Message:

Added content type to response

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/org/rapla/plugin/autoexport/CalendarListPageGenerator.java

    r1504 r1649  
    3838import org.rapla.servletpages.RaplaPageGenerator; 
    3939 
    40 /******* USAGE: ************ 
    41  * ReadOnly calendarview view. 
    42  * You will need the autoexport plugin to create a calendarview-view. 
    43  * 
    44  * Call: 
    45  * rapla?page=calendar&user=<username>&file=<export_name> 
    46  * 
    47  * Optional Parameters: 
    48  * 
    49  * &hide_nav: will hide the navigation bar. 
    50  * &day=<day>:  int-value of the day of month that should be displayed 
    51  * &month=<month>:  int-value of the month 
    52  * &year=<year>:  int-value of the year 
    53  * &today:  will set the view to the current day. Ignores day, month and year 
    54  * @throws IOException 
    55  * @throws ServletException 
    56  * @throws Exception 
    57  * @throws RaplaException 
    58  */ 
     40 
    5941public class CalendarListPageGenerator extends RaplaComponent implements RaplaPageGenerator 
    6042{ 
     
    7153        { 
    7254            String username = request.getParameter( "user" ); 
     55            response.setContentType("text/html; charset=" + getRaplaLocale().getCharsetNonUtf() ); 
    7356            java.io.PrintWriter out = response.getWriter(); 
    74      
    7557            User[] users = getQuery().getUsers(); 
    7658            Set<User> sortedUsers =new TreeSet( Arrays.asList( users));