Re: ASObject and ASTranslator
"[p e r c e p t i c o n]" <[email protected]> Mon, 22 Jan 2007 20:27:32 -0800
| Newsgroups | gmane.comp.java.openamf.user |
|---|---|
| Message-ID | <[email protected]> |
thank you again...i see now that the AdvancedGateway and DefaultGateway extend httpservlet and so now i'm wondering what that relation is to my class...how is my class actually mapped to the AdvancedGateway class?? thanks in advance 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