Thank you for your suggestion, however I'm using Spring Portlet MVC so the standard Jetspeed setup isn't exactly applicable. I've narrowed my problem down to $renderRequest/$renderResponse are not exposed at all in my velocity templates. Does anybody have experience getting Velocity working with Spring Portlet MVC in Jetspeed?
David Just l Software Engineer l Vision Solutions l +1 (507) 529-5939 l david.j...@visionsolutions.com The contents of this e-mail (and any attachments) are privileged and confidential. Unauthorized use is strictly prohibited. -----Original Message----- From: Woonsan Ko [mailto:woon_...@yahoo.com] Sent: Friday, August 07, 2009 10:51 AM To: Jetspeed Users List Subject: Re: Velocity portlet, renderResponse.createActionURL() not working? Hi David, I'm not sure, but I guess the following page can help you: http://portals.apache.org/bridges/multiproject/portals-bridges-velocity/index.html I guess you can retrieve $renderRequest or $renderResponse if you configure BridgesVelocityViewServlet instead of the default velocity servlet. Also, createActionURL() method is available on $renderResponse, not on $renderRequest. Regards, Woonsan --- On Fri, 8/7/09, David Just <david.j...@visionsolutions.com> wrote: > From: David Just <david.j...@visionsolutions.com> > Subject: Velocity portlet, renderResponse.createActionURL() not working? > To: "Jetspeed Users List" <jetspeed-user@portals.apache.org> > Date: Friday, August 7, 2009, 5:29 PM > I'm converting a springmvc velocity > application into a portlet. I'm > trying to get a URL link in the portlet to set a request to > the > controller to change the view state of the portlet. I'm > trying to follow > this: http://forum.springsource.org/showthread.php?t=29249 > > > > But the variable is not being set. > > > > In my vm template I have: > > > > #set( $addlink = $renderRequest.createActionURL() ) > > $addlink.setParameter("action", "add") > > <a href="$addlink" > add </a> > > > > When the portlet is rendered, the whole line > "$addlink.setParameter("action", "add")" is output to the > screen so it > appears the addlink variable is not being set. > > > > Any suggestions? > > > > David Just l Software Engineer l Vision Solutions l +1 > (507) 529-5939 l david.j...@visionsolutions.com > The contents of this e-mail (and any attachments) are > privileged and confidential. Unauthorized use is strictly > prohibited. > --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org For additional commands, e-mail: jetspeed-user-h...@portals.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org For additional commands, e-mail: jetspeed-user-h...@portals.apache.org