cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Timberlake <and...@timberlake.co.za>
Subject Re: AW: xsp-element equivalent to xsl:param?
Date Fri, 31 Jan 2003 14:15:09 GMT
On Fri, 2003-01-31 at 16:09, Scherler, Thorsten wrote:
> Hello Jan,
> 
> I couldn't find the error.
> 
> But I attached it.
> 

The following code looks VERY wrong as you seem to have java code that
resides outside of a method.

/*snip*/
try{ 
    String timeOfDay = (new 
SimpleDateFormat("MM/dd/yyyy")).format(request.getParameter("date")); 
}catch(Exception e){} 


      /** 
       * Generate XML data. 
       */ 
      public void generate() throws SAXException, IOException,
ProcessingException {     
/*snip*/

Make sure that the request.getParameter ... code is placed after the
first xml element in the xsp page.

-- 
Andrew Timberlake <andrew@timberlake.co.za>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message