Fwd: how to use Request and other 'special objects'?

Peter Smith <[email protected]>
Newsgroups gmane.comp.java.webmacro.user
Message-ID <[email protected]>
Seems I've gotten a bit closer.  I added the following
entry to my WebMacro.defaults:

 ContextTools.Request=org.webmacro.servlet.RequestTool

This I decided to do after finding an email in the
archives referring to:

 ContextTools.Manipulate:
com.acme.wm.ContextManipulator

But this produces the following error:

  context ERROR  Unable to initialize ContextTool:
Request
  org.webmacro.PropertyException: This only works with
WebContext
  java.lang.ClassCastException...

What am I missing?


--- Peter Smith <[email protected]> wrote:
> From: Peter Smith <[email protected]>
> To: [email protected]
> Subject: [WebMacro-user] how to use Request and
> other 'special objects'?
> Date: Tue, 17 May 2005 08:26:29 -0700 (PDT)
> 
> Looking for some doc on using Request and other
> 'context tools' - couldn't find on site.  
> 
> First question - can I pass anything other than
> Strings as arguments to my globally-defined template
> functions?  I'm getting the following error when
> trying to pass '$Request' as an argument:
> 
> ============
> java.lang.UnsupportedOperationException:  Cannot
> invoke toString() on an undefined variable.
> ============
> 
> Thanks.
> 
> 



		
__________________________________ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.