29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2. Select JSP- > Insert Custom... from the main menu of the workbench to<br />

open the Insert Custom Tag dialog.<br />

3. Select the mailer tag library from the left pane and then select the mail tag<br />

from the right pane.<br />

Figure 9-14 Inserting a tag<br />

4. Click Insert. The mail tag is added to the mailer.jsp.<br />

5. Click Close.<br />

6. Set the server attribute of the mail tag to<br />

. This will set the server attribute<br />

value to the server parameter when it is received from the input form.<br />

7. Inside the mail tag, insert the following tags in this order:<br />

– setrecipient with the type attribute set to to<br />

– from<br />

– setrecipient with the type attribute set to cc<br />

– subject<br />

– message<br />

– send<br />

– error with the id attribute set to err; the error tag must be located inside<br />

the send tag<br />

306 <strong>IBM</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> - Express V5.0.2 Developer Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!