velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Haberman <mi...@ncsa.uiuc.edu>
Subject Re: struts/velociy best practices question
Date Thu, 12 Aug 2004 17:02:02 GMT

great thanks!

mike

On Thu, Aug 05, 2004 at 09:17:58AM +0100, Simon Christian wrote:
> Hi Mike,
> 
> I happened to want to manipulate the redirect URLs from Struts myself 
> for the first time just yesterday, and came across this which you might 
> find useful:
> 
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg14277.html
> 
> It contains a submitted class ParameterizedActionForward which gives 
> that capability.
> 
> - simon
> 
> 
> Mike Haberman wrote:
> 
> >Here's the situation:
> >
> >   during an action, a business object is created
> >   I want to expose this object to the template
> >
> >   the easiest seems to be request.setAttribute("obj", newObject)
> >   but if the <action>.. <forward .. redirect="true" />, this won't work.
> >
> >   If I don't want (or can't) use a session, what are the choices?
> >
> >   Would/could you add query parameters to the redirected url 
> >   (e.g.  blah.com/createObjectSuccess.do?objId=4) and then pull
> >   the object into the template?  How does one manipule the url
> >   on a redirect?
> >
> >   thanks again,
> >
> >   mike
> >   
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org

-- 
-------------------------------------------------
Mike Haberman
Senior Research Engineer
NCSA
-------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message