Yoda m Decode 9.Jan.12 11:35 AM a Web browser Domino Designer 7.0.3 Windows XP
I'm not able to import some package from: org.apache.commons.lang.
I need to use the java Class StringUtils for use the function substringBetween
(StringUtils.substringBetween)
=============================
import java.util.Date;
import org.apache.commons.lang.StringUtils; // error here!
public class NestedString {
public static void main(String[] args) {
String helloHtml = "<html>" +
"<head>" +
" <title>Hello World from Java</title>" +
"<body>" +
"Hello, today is: " + new Date() +
"</body>" +
"</html>";
String title = StringUtils.substringBetween(helloHtml, "<title>", "</title>");
String content = StringUtils.substringBetween(helloHtml, "<body>", "</body>");
// System.out.println("title = " + title);
// System.out.println("content = " + content);
}
}
================
I put the code in a java agent in a Domino application.
Can I use another import to use StringUtils.substringBetween ?
or any other clue...?
Thanks in advance


|