|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectHttpServlet
com.bea.p13n.mail.servlets.MailPreviewServlet
public class MailPreviewServlet
Servlet to provide a preview of a JSP-generated mail message. This servlet expects at least one parameter, called "uri", that contains the URI for it to call. Any other parameters will be passed on to that URI.
This servlet requires the MailService to be at java:comp/env/ejb/MailService.
Constructor Summary | |
---|---|
MailPreviewServlet()
|
Method Summary | |
---|---|
protected MailService |
getMailService()
Get the mail service to use. |
void |
init()
|
void |
service(HttpServletRequest req,
HttpServletResponse res)
|
protected void |
showError(String error,
Throwable ex,
HttpServletResponse resp)
Print an error message to the output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MailPreviewServlet()
Method Detail |
---|
public void init() throws ServletException
ServletException
public void service(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException
IOException
ServletException
protected MailService getMailService() throws CreateException, RemoteException
CreateException
RemoteException
protected void showError(String error, Throwable ex, HttpServletResponse resp) throws ServletException, IOException
This assumes that nothing has been put on the response yet.
error
- the error message.ex
- a possible exception.resp
- the response to output to.
ServletException
IOException
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |