On 25.Apr.2002 -- 02:20 AM, Niket Anand wrote: > Hello all, > I want to use request parameter value in xsp as > <field> > <xsp-request:get-parameter name="txtValue"><xsp:attribute name=" > default">333</xsp:attribute></xsp-request:get-parameter> > </field> > It doesnot work, doesnot show default value. > But if I use as > <field> > <xsp-request:get-parameter name="txtValue" default="333/ > </field> > It works. > How can I set default value as shown in first way?
You can't. Explanation: xsp-attribute adds an attribute to an XML tag that is delivered down the pipeline. Logicsheets are used to assemble the program that emits these tags. Use java to implement your logic. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>