A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
J2me app access Servlet response
Joined: Dec 23, 2003
May 16, 2005 21:07:00
I have a useful jar component. Now I want to extend to server and allow the remote
to access it.
Say, I have
public Date getDate(
return new Date();
I want the remote cell user to access it. So I add a
wrapper before this function.
public MyServlet extends
// 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
. What the j2me app is caring is the Date object , not html.
Joined: Feb 05, 2001
May 17, 2005 12:17:00
Yuo do not have to return HTML, it can be just a String. HTML is really only a String, a String that includes HTML tags.
Just convert the Date object to a date string, and return that.
Perfect World Programming, LLC
Two Laptop Bag
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: J2me app access Servlet response
Garbage Collection (URGENT)!
Diff b/w J2ME and Jini
formatting challenge using JSpinner
Compiling errata for K&B, SCJP 6
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014