how save sending messages to access later

Hello, I have a page which makes it possible to send a message to the selected customers. Thus I have a text to write the message, a multi-choice to choose to which I send and a button of validation of sending.

And it goes very well.

My question is: how I can make to save the last sending message to find it later?

<td>

<h:inputTextarea cols="12" rows="5" id="textToSend" value="#{ClassMessage.textToSend}" required="true">

<f:validateLength minimum="1" maximum="512"/>

</h:inputTextarea>

</td>

<td class="formAddError">

<h:message styleClass="error" for="textToSend"/>

</td>

Here the code of ClasseMessage.java

private String textToSend =new String();

public StringgetTextToSend(){

return textToSend;

}

publicvoidsetTextToSend(String s){

this.textToSend = s;

}

..................

.............

public StringsendMessage(){

HashMap message =new HashMap();

//user id

message.put("UE_SENDER", getPersonBean().getName() );

message.put("UE_MESSAGE", getTextToSend());

try{//sending message

dn.sendUserEvent(message);

}catch (RequestFailedException e){

e.printStackTrace();

}

}

[2280 byte] By [bassbakia] at [2007-11-27 7:31:23]
# 1
Just store it in DB or maybe in session, sessionMap or even applicationMap?
BalusCa at 2007-7-12 19:11:36 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...