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
// Rp.java

Rp is used to get a String value returned by a runtime parameter. It can be used in both standalone mode and by parent tags to get paramter values. If the store attribute has a value that is used to store the param value under a new name. A defaultVal value can be specified to be returned if the name parameter returns a null runtime value.

To write a req value obtained from a parameter:

<dxp:Rp name="paramName"/>

To store a value back into the request under a new name (don't now why but this was requested)

<dxp:Rp name="paramName" store="newName"/>

To return a default value if the runtime value is null

<dxp:Rp name="paramName" default="someValue"/>

To return an error if the param is null

<dxp:Rp name="emailaddrs" require="true"/>

A parent can use a localname of the Rp tag to get the value tied to a different name in the reqeust. Here is an example of using Rp with the SendMail tag. The value of each Rp tag is used set a property in the mail message. The application may not use the same name to refer to these values so the localname is used to pass them to the SendMail tag.

<dxp:SendMail mailserver="mail.plands.com" storeMsg="true">
   <dxp:Rp localname="to" name="recipient" require="true"/>
   <dxp:Rp localname="from" name="sender" default="sales@merchant.com"/>
   <dxp:Rp localname="replyto" name="feedback" default"sales@merchant.com"/>
   <dxp:Rp localname="content" name="invoice" require="true"/>
</dxp:SendMail>


@author Mark Ashworth
@version 0.3, 2001-07-21

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.