HTTPRequestParser requestParser = new HTTPRequestParser(aRequest);
Map responseData = ServletHelper.makeGenerationData(aRequest, aResponse, new Locale[] {getLocale(aRequest), getFallbackLocale(aRequest)});
EntityAdapterModel model = MirGlobal.localizer().dataModel().adapterModel();
- Map comment;
+ Object comment;
URLBuilder urlBuilder = new URLBuilder();
urlBuilder.setValue("module", "Comment");
else {
List fields = DatabaseComment.getInstance().getFieldNames();
responseData.put("new", Boolean.TRUE);
- comment = new HashMap();
+ Map emptyComment = new HashMap();
Iterator i = fields.iterator();
while (i.hasNext()) {
- comment.put(i.next(), null);
+ emptyComment.put(i.next(), null);
}
+
+ comment = emptyComment;
}
responseData.put("comment", comment);