Hi,
You can use $response.sendRedirect(url) in your page to make a redirect
Ludovic
Duke Tantiprasut a écrit :
Is there a way to use the xredirect for view actions?
What I'm trying to do is to load a page which performs some action
then redirects to another page. At the moment I'm using <head> /
<meta> tags to perform the redirect but this causes the initial page
to be displayed before it is redirected.
Any ideas?
Thanks
Duke
On 6/26/06, *Duke Tantiprasut* <duketantiprasut(a)gmail.com
<mailto:duketantiprasut@gmail.com>> wrote:
Great. I'll give that a go.
On 6/25/06, *Ludovic Dubost* <ludovic(a)xwiki.com
<mailto:ludovic@xwiki.com>> wrote:
Hi Duke,
I'm not sure you need any patch.. There is already the "xredirect"
parameter which allows to redirect to any URL post any action.
You just need to append to the edit URL: "xredirect=" + URL
You can generate the URL using $doc.getURL("edit")
Ludovic
Duke Tantiprasut a écrit :
Hi All
I've added patch for SaveAction to allow redirect to "edit"
rather
than "view" i.e. SaveEdit action. The
patch file is attached
to jira
for review / inclusion.
Duke
------------------------------------------------------------------------
--
You receive this message as a subscriber of the
xwiki-dev(a)objectweb.org
<mailto:xwiki-dev@objectweb.org>
mailing list.
To unsubscribe: mailto:
xwiki-dev-unsubscribe(a)objectweb.org
<mailto:xwiki-dev-unsubscribe@objectweb.org>
For general help: mailto:sympa@objectweb.org
<mailto:sympa@objectweb.org>?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws
--
Ludovic Dubost
XPertNet:
http://www.xpertnet.fr/
Blog:
http://www.ludovic.org/blog/ <http://www.ludovic.org/blog/>
XWiki:
http://www.xwiki.com
Skype: ldubost AIM: nvludo Yahoo: ludovic
--
You receive this message as a subscriber of the
xwiki-dev(a)objectweb.org <mailto:xwiki-dev@objectweb.org>
mailing list.
To unsubscribe: mailto:xwiki-dev-unsubscribe@objectweb.org
<mailto:xwiki-dev-unsubscribe@objectweb.org>
For general help: mailto: sympa(a)objectweb.org
<mailto:sympa@objectweb.org>?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws <http://www.objectweb.org/wws>
------------------------------------------------------------------------
--
You receive this message as a subscriber of the xwiki-dev(a)objectweb.org mailing list.
To unsubscribe: mailto:xwiki-dev-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws