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 "<p>", 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 "content type could not be encoded by the gateway" or "WAPMail aplication can only read plain text e-mail".
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..
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 "<p>", 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 "content type could not be encoded by the gateway" or "WAPMail aplication can only read plain text e-mail".
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..