Mark Jones

Greenhorn
+ Follow
since Aug 28, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mark Jones

Hi,

I am using the Apache HttpClient class to read translated content from Babelfish. However, Japanese translated characters (translated from English) are coming through as a series of zero bytes. Seems to have problems with multibyte characters.

Works with Spanish, French, German etc. Any ideas?

Thanks
Mark

P.S. I can supply a code snippet if necessary
Eh, that's great! I will look into those.

Thanks for the reply.

Mark
16 years ago
Hi,

I've created a servlet for serving up Ajax request. This servlet will be a toolbox for users to easily extract XML for use in Ajax calls.

It will have a quite few methods for returning XML e.g. getContacts, getLatestNews etc. However, to call the correct method I have to do this:

if (userReq.equalsIgnoreCase("getLatestNews"));
getLatestNews(request, response);
if (userReq.equalsIgnoreCase("getContacts"));
getContacts(request, response);

I want a general purpose servlet rather than loads of them for each type of request.

I want to do something like:

callmethod(String);

Is there a way of doing this? I am using Java 1.5.

Thanks
Mark
16 years ago
Whoops, forgot about those characters rendering! Thank you.

Yes, I am familiar with them however I thought I might be able to grab one "off-the-shelf" to do what I want".

If I don't receive a response looks like I will have no choice!

Thanks for your help.

Mark
17 years ago
Hi,

I have some fielded content which stores all special characters e.g. ' as &rsquo etc. I want to convert these back to the display character i.e. '. Is there any easy way of achieving this.

Thanks
Mark
[ August 31, 2006: Message edited by: Ernest Friedman-Hill ]
17 years ago
Hi,

I want to call a simple applet from a JSP within Tomcat 5.5. However, when I try and run the JSP, I get the following error:

"java.lang.ClassNotFoundException: orgChart.class"

My code is very simple:-

<applet code="orgChart.class" width=610 height=400>
<param name="nodes" value="10">
<param name="1" value="1|Mary|0|2|0|0">
<param name="2" value="2|John|1|0|3|1">
<param name="3" value="3|Michael|1|6|4|1">
<param name="4" value="4|Paul|1|8|5|1">
<param name="5" value="5|Suzy|1|0|0|1">
<param name="6" value="6|Diane|3|0|7|2">
<param name="7" value="7|Samuel|3|0|9|2">
<param name="8" value="8|Alex|4|0|0|2">
<param name="9" value="9|Jennifer|3|0|10|2">
<param name="10" value="10|Andrew|3|0|0|2">
</applet>

Tried serving the class off a /static folder in the webapp too but to no avail. Any ideas please?

Thanks
Mark
17 years ago
Well, I don't think this will return a usable string I can use though. I will look in more detail.
18 years ago
Hi,

I would like to develop a JSP that compares 2 strings together and shows a strikethrough/highlight string displaying the differences. Are there any classes out there that could assist me with this?

Thanks
Mark
18 years ago
Hi,

Well, mine was shipped today (September 17th) from amazon.co.uk. If yours hasn't shipped yet it's not far away!

Regards
Mark
Hi,

I'm a little confused because the date has been moved again on amazon.co.uk to 30th September 2004. Is this accurate?

Regards
Mark
Hi,

Got the following piece of code that worked with Tomcat 4.1.18 and now doesn't do what I want in 4.1.29. I am trying to clear the charset (I am working on an IP Phone) and I keep getting the charset set to ISO-8859-1 when I in fact want it blank. Can I clear a charset? The code below used to work but now doesn't :-

<%response.reset();
response.setContentType("text/xml");
response.setHeader("charset","");
response.resetBuffer();%>;

Any ideas?

Thanks
Mark
19 years ago
JSP
Hi,
I am hearing a lot of positives about the "Head First" books and I am keen to know when the above book is released. The dates on Amazon.com and Amazon.co.uk give different dates (March 2004 and January 2004 respectively). Can anybody shed some light?
Many thanks
Mark
Hi,
I have taken and passed the SCJP and SCJD examinations and am now in a job that requires me to understand web architectures and develop JSPs, custom tags and beans.
I think the SCWCD is possibly a great certification to do to cover these. Can anybody recommend a good book that teaches what is required for the exam and is not necessarily a study guide?
Thanks
Mark