Andrew Timberlake wrote:
> try{
>     String timeOfDay = (new
> SimpleDateFormat("MM/dd/yyyy")).format(parameters.getParameter
> ("date");
> }catch(Exception e){}
> </xsp:logic>
> 
> You will need to wrap the code in a try/catch block or 
> alternatively use
> the syntax: parameters.getParameter("date", "default value of 
> choice");
> 

Thorsten, do you need a sitemap-parameter or a request-parameter? From your previous 
posts I assume that you want a request Parameter. In that case you should use 

request.getParamter("date") 

instead of 

parameters.getParameter("date")


The variables "request" and "parameters" are predefined variables in every XSP. Have a 
look at http://wiki.cocoondev.org/Wiki.jsp?page=XSPEnvironment

Hope this helps

-Jan Harms

---------------------------------------------------------------------
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:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to