Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A moment to read this please

Status
Not open for further replies.

lingling7

Technical User
Jan 8, 2002
1
MY
Sorry , to disturb you but I really need some guides. My friend has a JAVA programming problem. I don't know how to help her but I was hoping to find help from this site. Please help a look. Thank you for your comment and time.

Please help me to write a Java method...

1. an object is passed from the main to the method
2. the method will read the object, one per one
3. when it reaches &quot;<p>&quot;, it starts extracting the content and put it into another string (eg output).
4. Stop the extraction when it reaches </p>
5. return the output.

Actually I am doing something regarding WAP, the application stop when it reaches the part that read html-based e-mail, the error is &quot;content type could not be encoded by the gateway&quot; or &quot;WAPMail aplication can only read plain text e-mail&quot;.

I'm using Java, javamail, servlet, and wml to write my code and running with Tomcat server + Nokia Internet Mobile toolkit.

The above solution is the only things that I can think of, maybe you guys can give me a better solution.

Further more, how to do I convert html documents into wml on the fly?

but now i know the MIME type liao...
the problem is just how to parse all the html tags into nothing..
sometimes the content tags can be different...... sometimes use <p>...</p>, and sometimes use <DIV>... and sometimes unknown..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top