Habe den folgenden Fehler:
Unable to compile class for JSP:
An error occurred at line: 17 in the jsp file: /WEB-INF/jsp/offline/sites/default/test/mailer.jsp
StringUtils cannot be resolved
14: <body>
15:
16: <%
17: if(StringUtils.isNotBlank(request.getParameter("submit")))
18: {
19: %>
20: <form method="POST">
Unable to compile class for JSP:
An error occurred at line: 17 in the jsp file: /WEB-INF/jsp/offline/sites/default/test/mailer.jsp
StringUtils cannot be resolved
14: <body>
15:
16: <%
17: if(StringUtils.isNotBlank(request.getParameter("submit")))
18: {
19: %>
20: <form method="POST">
Code:
<%@ page import="org.apache.commons.lang.*" %>
<%
String recipient = request.getParameter("mailRecipient");
String mailSender = request.getParameter("mailSender");
String subject = request.getParameter("mailSubject");
String body = request.getParameter("mailText");
%>
<html>
<head>
<link rel="stylesheet" type="text/css" href="mailer.css" />
</head>
<body>
<%
if(StringUtils.isNotBlank(request.getParameter("submit")))
{
%>
<form method="POST">
<label for="mailSender">Sender</label>
<input type="text" id="mailSender" name="mailSender" />
<label for="mailRecipient">Recipient</label>
<input type="text" id="mailRecipient" name="mailRecipient" />
<label for="mailSubject">Subject</label>
<input type="text" id="mailSubject" name="mailSubject" />
<label for="mailText">Mailtext</label>
<textarea name="mailText" id="mailText" class="sendForm">
</textarea>
<input type="submit" class="submitButton" value="Ok" />
</form>