type = (String)cms.getRequestContext().getRequest().getParameter("type");
keywords = (String)session.getValue(C_PARA_KEYWORDS);
description = (String)session.getValue(C_PARA_DESCRIPTION);
cms.createFile(foldername, filename, new byte[0], type);
cms.lockResource(foldername + filename);
<BUG>cms.writeProperty(foldername + filename, C_PROPERTY_TITLE, title);
cms.writeProperty(foldername + filename, C_PROPERTY_KEYWORDS, keywords);
cms.writeProperty(foldername + filename, C_PROPERTY_DESCRIPTION, description);
session.removeValue(C_PARA_FILE);</BUG>
session.removeValue(C_PARA_TITLE);

type = (String)cms.getRequestContext().getRequest().getParameter("type");
keywords = (String)session.getValue(C_PARA_KEYWORDS);
description = (String)session.getValue(C_PARA_DESCRIPTION);
cms.createFile(foldername, filename, new byte[0], type);
cms.lockResource(foldername + filename);
cms.writeProperty(foldername + filename, C_PROPERTY_TITLE, title);
if( keywords != null && !keywords.equals("") ) {
cms.writeProperty(foldername + filename, C_PROPERTY_KEYWORDS, keywords);
}
if( description != null && !description.equals("") ) {
cms.writeProperty(foldername + filename, C_PROPERTY_DESCRIPTION, description);
}
session.removeValue(C_PARA_FILE);
session.removeValue(C_PARA_TITLE);
