* adding comments to articles &
* open-postings to the newswire
*
- * @author RK
+ * @author $Author: mh $
+ * @version $Revision: 1.36 $ $Date: 2002/06/29 15:45:20 $
+ *
+ * $Log: ServletModuleOpenIndy.java,v $
+ * Revision 1.36 2002/06/29 15:45:20 mh
+ * cvs macros
+ *
+ *
*/
public class ServletModuleOpenIndy extends ServletModule
String mediaTitle=(String)withValues.get("media_title"+i);
i++;
- if (mediaTitle==null)
- mediaTitle = (String)withValues.get("title");
+ if ((mediaTitle == null) || (mediaTitle.length() == 0))
+ throw new ServletModuleUserException("Missing field");
+ //mediaTitle = (String)withValues.get("title");
mediaValues.put("title", mediaTitle);
mediaValues.put("date", StringUtil.date2webdbDate(new GregorianCalendar()));