I have a useful jar component. Now I want to extend to server and allow the remote j2me app to access it.
Say, I have
public Date getDate(String n){ return new Date(); }
I want the remote cell user to access it. So I add a servlet wrapper before this function.
public MyServlet extends HttpServlet { doGet(..){ // here I call my component Date d = getDate(); response.add(d); //how could I do this ? } }
But the problem is , how could I append this Date object to response ? The client side is a j2me application. What the j2me app is caring is the Date object , not html.