Scripting & Web Development Support

Java
or
JSP


 

CGI/Perl
ASP and VB
Java (JSP)
PHP

JSP Classes and Jars

[From: Resin's Classloading and Compilation FAQs]

 

Where do I put my Classes and Jars?

Application classes are stored in WEB-INF/classes. Application jars are stored in WEB-INF/lib.

Servlets are not enabled by default. Contact Web Secure Support if you wish them to be enabled.

 

Web.xml

Web.xml provides servlet support and belongs in the WEB-INF. If you would like this to be enabled, please contact Web Secure Support.

SMTP Information

When using JavaMail, set the SMTP host to:

localhost;

Message mailMsg;

Properties props = new java.util.Properties();
props.put("mail.smtp.host", smtpHost);
Session session = Session.getDefaultInstance(props, null);
session.setDebug(false);

this.mailMsg = new MimeMessage(session);

InternetAddress fromAddress = new InternetAddress(mfrom);

InternetAddress[] toAddress = new InternetAddress[mto.length];

for (int i = 0; i < mto.length; i++)
{
toAddress[i] = new InternetAddress(mto[i]);
}

this.mailMsg.setFrom(fromAddress);
this.mailMsg.setRecipients(Message.RecipientType.TO, toAddress);
this.mailMsg.setSubject(subject);

this.mailMsg.setSentDate(new java.util.Date());

StringBuffer sb = new StringBuffer();

// set the body
this.mailMsg.setText(sb.toString());

// send the email
Transport.send(this.mailMsg);