Kim Baddeley

Greenhorn
+ Follow
since Nov 06, 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 Kim Baddeley

Hi Mark,

What is your opinion on WADL. Should a RESTful service provide one or is the standard dead in the water?

Thanks,
Kim
12 years ago
Thanks for the solution.

I do actually need the result as a String in my real class but by defining the character encoding, fixes the problem

s = os.toString("ISO-8859-1");

ByteArrayInputStream is = new ByteArrayInputStream(s.getBytes("ISO-8859-1"));
19 years ago
I am unable to work out why I can't serialize and then immediately de-serialize an object with the following code without getting the error

java.io.InvalidClassException: java.util.Date; local class incompatible: stream classdesc serialVersionUID = 7523895402267505689, local class serialVersionUID = 7523967970034938905




If the serialized class were being passed between different versions of Java then I understand that the serialVersionUID may be an issue but in this case I do not understand why the values should differ.

Thanks,

Kim
19 years ago
I am trying to determine if it is possible to re-use a tag library inside one I am developing.

In the normal scenario I could add
my.text=Hello World
to resource.properties and then inside my JSP add the tag
<bean:message key="my.text"/>

I now want to develop my own tag library and as part of that library output use the existing bean tag to output the same text but how ?

The following in my custom tag handler class is not going to work

JspWriter out = pageContext.getOut();
out.print("<bean:message key="my.text"/>");

Thanks,
Kim
19 years ago
JSP
The technique I use (not sure if it is the best way) is from the inner class call a method in class x.
So your example could be extended as....
class x
{
this.addMouseListener(new MouseAdapter()
{
public void mouseClicked(MouseEvent e)
{
mouseClicked_actionPerformed(e);
}
});
private void mouseClicked_actionPerformed(ActionEvent e)
{
get....();
}
Cheers,
Kim
[ April 29, 2004: Message edited by: Kim Baddeley ]
19 years ago
I am in a similar situation of having to build my first Swing app which is reasonably complex.
If there are not currently any blueprints for the "right way" can anyone point me at any resources that I can use tactically to help me meet my requirements that is past the "this is a JFrame, this is a blah blah.... " type examples.
Cheers,
Kim.
19 years ago