• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Deleting instance with REST & JavaMonitor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deleting instance with REST & JavaMonitor


  • Subject: Re: Deleting instance with REST & JavaMonitor
  • From: Klaus Berkling <email@hidden>
  • Date: Thu, 26 May 2011 12:17:00 -0700


On May 26, 2011, at 12:06 PM, Pascal Robert wrote:

I'm toying with the REST stuff in JavaMonitor and ran into a problem deleting an instance.

This is the URL I send:

GET http://[host]:[port]/cgi-bin/WebObjects/JavaMonitor.woa/ra/mApplications/[AppName]/deleteInstance?pw=[password]&id=[id]

Hum, look like something is wrong. The method have:

MApplication application = (MApplication) routeObjectForKey("name");
deleteInstance(application, (Integer) routeObjectForKey("id"));

But "id" is not registered in the route:

       restHandler.insertRoute(new ERXRoute("MApplication","/mApplications/{name:MApplication}/deleteInstance", ERXRoute.Method.Get, MApplicationController.class, "deleteInstance"));

The ID should be fetched by request().numericFormValueForKey() instead of routeObjectForKey().

I see. I'll try to fix this in my JavaMonitor.

Thanks.


kib

"The trouble with normal is it always gets worse."
Bruce Cockburn

Klaus Berkling
Web Application Dev. & Systems Analyst
DynEd International, Inc.
www.dyned.com | blog | @kiberkli




Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Deleting instance with REST & JavaMonitor (From: Klaus Berkling <email@hidden>)
 >Re: Deleting instance with REST & JavaMonitor (From: Pascal Robert <email@hidden>)

  • Prev by Date: Re: Deleting instance with REST & JavaMonitor
  • Next by Date: Re: John Huss, are you teasing me?
  • Previous by thread: Re: Deleting instance with REST & JavaMonitor
  • Next by thread: How to get a session in ERRest?
  • Index(es):
    • Date
    • Thread