Re: Sending a request to a url but not returning the page to the user

Dave Elsner <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
Hi,

I do this same thing with this code, there is probably a better way  
but it works for my needs.


		java.net.URLConnection urlConn;
  		java.net.URL url = new java.net.URL("http://URL TO DIRECT ACTION");
		urlConn = url.openConnection();
		urlConn.setDoInput (true);
		urlConn.setDoOutput (true);
		try
		{
			urlConn.getContent();
		}
		catch(java.net.ConnectException ce)
		{

		etc.
		


Regards
David Elsner



On 09/10/2006, at 3:33 AM, Dev WO wrote:

> Hi,
> Still trying to figure a couple things:)
>
> Actually I need to call a direct action of application B from  
> application A, but I don't want the user of application A to "see"  
> this request. In fact the action he triggers return something for  
> him, but I need a "second" action to take place.
>
> More precisely I need to call a direct action on my front office  
> application when an administrative user save something in the back  
> office application to invalidate the front office shared editing  
> context.
>
> I think I already saw something like this on the mailing list but I  
> just can't find it:(
>
> Thanks
>
> Xavier
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/delsner% 
> 40uow.edu.au
>
> This email sent to [email protected]

_______________________________________________
WebObjects-dev mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/webobjects-dev
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.