Hello,
Beeing a newbie i could use some help with the following:
I am busy with a simple struts application that displays an email message.
Now within the jsp this is the code to display the message;
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/taglibs-string" prefix="str"%>
<%
String strRowStyle = "detailRowEven";
%>
>From :<bean:write name="item" property="from" />
Subject:<bean:write name="item" property="subject" />
In reply to :
<logic:equal name="item" property="hasParent" value="true">
<a href="getMessage.do?id=<bean:write name="parent" property="messageId"/>">
<bean:write name="parent" property="from" /></a>
</logic:equal>
Message
<str:replace replace="NL" with="<br/>NL" newlineToken="NL">
<bean:write name="item" property="mailcontent" />
</str:replace>
<%
if (strRowStyle == "detailRowEven") {
strRowStyle = "detailRowOdd";
} else {
strRowStyle = "detailRowEven";
}
%>
<logic:iterate name="childs" id="child">
<bean:write name="child" property="from"/> - <a
href="getMessage.do?id=<bean:write name="child" property="messageId"
/>"><bean:write name="child" property="subject"/></</logic:iterate>
-----------------------------------------
Now, i want to manipulate the mailcontent so that not only linebreaks
will be shown as above but i want to check if a line starts with let's
say a quote sign like '>' so that i can apply some formatting to that
line.
I assume you know what i mean :)
Where should i, or what is the best way to do this?
If you want to push me to the right direction i would be very grateful!
Regards,
Rutger
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]