|
Hi All,
Trying to integrate Quercus with Grails so I can send the model from controller to PHP view but as far as I can see this requires sending httpservlet request which is tied up in "org.apache.catalina.core.ApplicationHttpRequest"
Is there any way I can get this directly so I can dependency inject this or do i have to deconstruct and rebuild it all just to send it back to a view?
|
|
I'm not sure I understand the question, you want to dependency inject the servlet request?
-- Graeme Rocher On Wednesday, July 25, 2012 at 6:49 AM, Owen Rubel wrote:
|
|
well to instantiate the Env object, it requires a page, write, httpservletrequest, httpservletresponse)
What I am trying to do is to get the model to pass back to PHP upon render so that it can be read through either its request object or through the beuild in method: $request = quercus_servlet_request();
$book= $request->getAttribute("book"); var_dump($book); Either or, I cant seem to find the way to pass the model data back. Owen Rubel 415-971-0976 [hidden email] On Tue, Jul 24, 2012 at 11:38 PM, Graeme Rocher <[hidden email]> wrote:
|
|
In reply to this post by Graeme Rocher-2
Ah nvm. I think I answered my own question. I shouldn't be trying to do it the Grails way. i need to pass the variables i want to send to the class/service rather than trying to set them ion the model. This would NEVER work and is just ass-backward thinking.
Sorry. Owen Rubel 415-971-0976 [hidden email] On Tue, Jul 24, 2012 at 11:38 PM, Graeme Rocher <[hidden email]> wrote:
|
| Powered by Nabble | Edit this page |
