RE: Parameterised redirect?

"Schnitzer, Jeff" <[email protected]>
Newsgroups gmane.comp.web.maverick.general
Message-ID <[email protected]>
A document view will result in a forward, not a redirect... which might
or might not be what Kevin is looking for.

 

If the 7 is fixed, another way to specify the redirect in the config
file is like this:

 

<view name="xxx" type="redirect" path="view-project.m">

    <param name="project" value="7"/>

</view>

 

J2FF

 

-----Original Message-----
From: Calvin Ling [mailto:[email protected]] 
Sent: Tuesday, May 06, 2003 10:19 AM
To: [email protected]
Subject: RE: [Mav-user] Parameterised redirect?

 

<view name="xxx" type="document" path="view-project.m?p=7"/> if 7 is
fixed.

"Schnitzer, Jeff" <[email protected]> wrote: 

For view type "redirect", calling setParam("project", "7") on the
controller context will do it. If you're using a Throwaway-derived
controller:

this.getCtx().setParam("project", "7");

J2FF

> -----Original Message-----
> From: Kevin O'Neill [mailto:[email protected]]
> Sent: Monday, May 05, 2003 5:41 PM
> To: [email protected]
> Subject: [Mav-user] Parameterised redirect?
> 
> I have page that's accessed with a parameter,
"view-project.m?project=7"
> on the page I have another link to add a user to the project
> "adduser.m?project=7" that has a form that points to do-adduser with
the
> appropriate bits.
> 
> If successful I would like to redirect to "view-project.m?project=7"
but
> I'm not sure how to.
> 
> Any pointers?
> 
> -k.
> ! 
> --
> If you don't test then your code is only a collection of bugs which
> apparently behave like a working program.
> 
> Website: http://www.rocketred.com.au/blogs/kevin/
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> [INVALID FOOTER]



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
[INVALID FOOTER]

  _____  

Do you Yahoo!?
The New <http://us.rd.yahoo.com/search/mailsig/*http:/search.yahoo.com>
Yahoo! Search - Faster. Easier. Bingo.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.