Re: ASObject and ASTranslator

"[p e r c e p t i c o n]" <[email protected]> Tue, 23 Jan 2007 10:30:17 -0800
Newsgroups gmane.comp.java.openamf.user
Message-ID <[email protected]>
ok...i get what you're saying now...what i did was extend the DefaultGateway
class and use it's RequestContext...works out quite nicely

thanks so much for your help

p

On 1/22/07, Todd Hivnor <[email protected]> wrote:
>
> You can use org.openamf.RequestContext to get a reference to the
> original ServletRequest. But you have to be careful how you use this.
> For example I assume the following code would be a problem:
>
> RequestContext.getHttpServletResponse().getWriter().print("Some
> Output"); // Bad! Will mess with OpenAMF servlet.
>
> You may want to use a mix here ... OpenAMF  and Remoting for somethings,
> raw servlet calls for other things. I believe you can share session
> information between the two.
>
>
>
>
> [p e r c e p t i c o n] wrote:
> > Hello Experts,
> >
> > I'm trying to upload and export some bitmap data from flash to a
> > simple Java class (and/or servlet if need be).  when i was
> > implementing openamf incorrectly using a class that extended the
> > HttpServlet interface i inadvertently called the service
> > function...which wasn't quite what i wanted but one of the parameters
> > is a ServletRequest object and the other is a ServletResponse Object.
> >
> >  In order to do the file upload i'm using the commons.io
> > <http://commons.io> library which works fine, but needs a
> > ServletRequest reference which i don't have now that i'm using the
> > simplified class.  Does anyone know of a way to get the request object
> > since now the service function isn't being called.
> >
> > In order to do the export i'm going to use the ASObject and
> > ASTranslator classes...can anyone point me to some examples of it
> > being used in this context??
> >
> > thanks
> >
> > p
> > ------------------------------------------------------------------------
> >
> >
> -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Openamf-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/openamf-user
> >
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Openamf-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openamf-user
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Openamf-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openamf-user