Libby -

I think this is possible but haven't tried it myself.
Here's some information which should set you down the right path.  Good
luck!

I've seen examples for the Flex 1.0 session servlet [Replaced in Flex
1.5 with new session access but not relevant to this discussion.]

http://www.macromedia.com/devnet/flex/articles/flex_portals/flex_portals
_whitepaper.pdf
'Accessing the portlet session' - Again, you would be accessing your
servlet instead of the 'session' servlet.

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=97b1769b
Troubleshooting for the session servlet which would be relevant in your
case as well.

<mx:RemoteObject source="servlet" id="remoteobject1" protocol="http"/>
// cmurphy - the source should always be servlet

<mx:Button label="Get All"
click="remoteobject1.yourServletName('yourServletArg1',
'yourServletArg2')" />

Instead of specifying the class name of you're servlet directly, map
yourServletName to the class name of the servlet in web.xml.

- Cathy

> http://flexapps.macromedia.com/flex15/explorer/explorer.mxml


> > > > > --- Libby <[EMAIL PROTECTED]> wrote:
> > > > > > 
> > > > > > Hello,
> > > > > > I am evaluating Flex. We have flash Remoting
> > > > calling
> > > > > > some servlets
> > > > > > running on Websphere 5.1, and for my eval I
> > am
> > > > > > trying to build a
> > > > > > similiar interface to them. So far I cannot
> > find
> > > > an
> > > > > > example of how to
> > > > > > do this (call a servlet with arguments) so I
> > was
> > > > > > hoping someone here
> > > > > > could show me a tiny example, or offer
> > > > corrections
> > > > > > to my code?
> > > > > > 
> > > > > > Using flash, we call a controller servlet
> > using
> > > > one
> > > > > > or more arguments.
> > > > > > ItemDefServlet("getAllRecords"); <-- like
> > this
> > > > in
> > > > > > Flash
> > > > > > 
> > > > > > In Flex, this is what I have:
> > > > > > <mx:RemoteObject type="servlet"
> > > > > > source="maintenance.ItemDefServlet"
> > > > > > protocol="http"
> > > > > > id="remoteobject1"></mx:RemoteObject>
> > > > > > 
> > > > > > 
> > > > > > <mx:DataGrid id="ItemDef_grd"
> > > > > >
> > > >
> > dataProvider="{remoteobject2.getMessage.result}">
> > > > > > .
> > > > > > .
> > > > > > </mx:DataGrid>
> > > > > >   <mx:ControlBar>
> > > > > >       <mx:Button label="Get All"
> > > > > > click="remoteobject1.send()" />
> > > > > >     </mx:ControlBar>
> > > > > > thanks,
> > > > > > Libby
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > 
> > > > > 
> > > > >               
> > > > > __________________________________ 
> > > > > Do you Yahoo!? 
> > > > > Yahoo! Small Business - Try our new resources
> > > > site!
> > > > > http://smallbusiness.yahoo.com/resources/
> > > > 
> > > > 
> > > > 
> > > > 
> > > 
> > > 
> > >           
> > > __________________________________ 
> > > Do you Yahoo!? 
> > > Yahoo! Small Business - Try our new resources
> > site!
> > > http://smallbusiness.yahoo.com/resources/
> > 
> > 
> > 
> > 
> 
> 
> 
>               
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/ 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to