It's POST vs. PUT. I'm using AJAX, so I can do PUTs. The two are identical, except:
POST instead of PUT The POST version includes: Pragma: no-cache Cache-Control: no-cache which the PUT does not. In other words, the headers are identical except for the above. In Jetty, no problem. In Tomcat, the params are ignored. They do not show up in S.params. At all. I can't imagine that this is a Lift issue, unless Tomcat makes params available differently for PUTs than for POSTs, but Jetty does not, and I'm the first guy to do PUTs to Lift on Tomcat. But I've emailed the Tomcat users list and we'll see if it's something simple. If not, I'll put something on GitHub. Chas. > Is it a POST or a GET? > > On Wed, Feb 3, 2010 at 11:44 PM, <c...@munat.com> wrote: > >> Thanks, David. >> >> That's a non-trivial exercise for me, so let me chase down another lead >> at >> the moment. If that proves fruitless, I'll bite the bullet and get >> something up on GitHub. >> >> Chas. >> >> > Please put together a reproduceable example on GitHub (works in Jetty, >> > doesn't work in Tomcat) and we'll look at it. >> > >> > On Wed, Feb 3, 2010 at 11:48 AM, <c...@munat.com> wrote: >> > >> >> I have a lift app that works perfectly when I use mvn jetty:run. Then >> I >> >> package it into a war and load it up in Tomcat 6 on the server, and >> when >> >> I >> >> do, suddenly it won't work. >> >> >> >> The issue is with the S.params. I have a form that submits via an >> Ajax >> >> PUT >> >> request. The params are sent in the header just fine. As I said, >> works >> >> like a charm on Jetty. But when it gets to Tomcat, the entity is >> saved >> >> with blank attributes... i.e., everything worked but the >> >> S.param("whatever") showed up blank. I tested this by doing >> >> S.param("whatever").openOr("Phooey") and, indeed, that attribute was >> set >> >> to "Phooey" on the new entity. >> >> >> >> Tomcat issue? Or am I missing something obvious? This form is running >> on >> >> a >> >> subdomain, so that's where I'm looking now (in server.xml). >> >> >> >> TIA, >> >> Chas. >> >> >> >> -- >> >> You received this message because you are subscribed to the Google >> >> Groups >> >> "Lift" group. >> >> To post to this group, send email to lift...@googlegroups.com. >> >> To unsubscribe from this group, send email to >> >> liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com> >> <liftweb%2bunsubscr...@googlegroups.com<liftweb%252bunsubscr...@googlegroups.com> >> > >> >> . >> >> For more options, visit this group at >> >> http://groups.google.com/group/liftweb?hl=en. >> >> >> >> >> > >> > >> > -- >> > Lift, the simply functional web framework http://liftweb.net >> > Beginning Scala http://www.apress.com/book/view/1430219890 >> > Follow me: http://twitter.com/dpp >> > Surf the harmonics >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups >> > "Lift" group. >> > To post to this group, send email to lift...@googlegroups.com. >> > To unsubscribe from this group, send email to >> > liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com> >> . >> > For more options, visit this group at >> > http://groups.google.com/group/liftweb?hl=en. >> > >> > >> >> >> -- >> You received this message because you are subscribed to the Google >> Groups >> "Lift" group. >> To post to this group, send email to lift...@googlegroups.com. >> To unsubscribe from this group, send email to >> liftweb+unsubscr...@googlegroups.com<liftweb%2bunsubscr...@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/liftweb?hl=en. >> >> > > -- > You received this message because you are subscribed to the Google Groups > "Lift" group. > To post to this group, send email to lift...@googlegroups.com. > To unsubscribe from this group, send email to > liftweb+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/liftweb?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to lift...@googlegroups.com. To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.