Plands.com Logo  Business Internet Services 
Main Menu
Home
Planetary CRM
  Benefits
  Features
  Demo
E-Mail Services
  E-mail Hosting
  Newsletters
  Discussion Lists
Web Hosting
Server Co-location
and Administration
Web Applications
Technical Support
Contact Us
DXP Samples
 
DxpHome  ||   Samples  ||   Details  ||   Docs  ||   Trees  ||   xml-xsl  ||   Links
// Redirect.java package com.plands.dxp; import java.io.; import org.xml.sax.Attributes;

The Redirect tag specifies a URL to redirect the client to. This is usually done in response to some runtime condition encountered by a parent of this tag and the redirection process will depend on the parent.

If the Redirect is a child of a AuthUser tag the AuthUser can get the URL from the Redirect.content value and send the proper response to the client. This is done before the page is run and before a DxpRequest has been created.

If the Redirect tag is somewhere else on the page (probably inside some condtional tag like com.plands.dxp.If or com.plands.dxp.Else) the Redirect.exec() method can be called by passing the request to the tag. This will throw a DxpRedirectException with the intention that it will eventually be caught by the DxpServlet which will send the redirect message. Whether this gets done depends on whether parents allow this Exception to be passed on. Some parent tags may need to catch this Exception and clean up request resources (like return dbConnections) before passing it on.

Here is an exmple of the format:

<dxp:Redirect>http://mydomain/login.html</dxp:Redirect>



Return to Index

Note: We have tried to test all of the code examples but they may contain errors. Any questions, comments, suggestions, or problems should be sent to info@plands.com.