This week's book giveaway is in the Java in General forum.
We're giving away four copies of Java by Comparison (eBook) and have Simon Harrer, Jörg Lenhard, Linus Dietz on-line!
See this thread for details.
Win a copy of Java by Comparison (eBook) this week in the Java in General forum!

Ilja Smoli

Ranch Hand
+ Follow
since Dec 02, 2001
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 Ilja Smoli

Hi
solved. Problem was in default charsets of jvm. So charset should passed to getBytes(charset); method...
11 years ago
Hi I have following method to digest passwords:


But for some reason on different PCs (both windows machines with Java 5) I get different results.

Is this normal behavior?
Thanks
11 years ago
Hi
1. If "pulling a undetermined number of values out of a jsp page" means that you want to iterate in jsp over collection in some scope, then you can take a look at <logic:iterate> tags.
Or if this means you want to submit from jsp page "undetermined number of values" then might worth having for example java.util.List property in corresponding ActionForm and use <nested:> tags...

2. and here again <nested:> or jstl tags could help you I guess.
11 years ago
Hi
Could you please explain why i get "JspException: Wrong format string: '###,###.00' " when I use <bean:write formatKey="global.format"> when other then "EN" locale is in user's session?

At the same time if use "format" tag <bean:write format="###,###.00"> then no matter what locale is in session it is working fine AND do format according to locale
Thanks in advance
11 years ago
Hi
After moving from JSTL 1.0.6 to 1.1.2 I found the following problem:
This was a working block in jsp


Now after execution I get this HTML source


I'm using Tomcat 5.0

Thx in advance
11 years ago
JSP
Hi
Thanks for reply.
Well I think you are right. I was thinking on this too, but for some reason avoided that way, maybe because creating ActionMessages objects requires more code in Action. Now I think I will stick to it Thanks!
11 years ago
Hi!
I want to create kind of centralized jsp page for displayng messages/errors from resource file. Jsp has a folowing line of code:

Now the action class which is executing puts in a request the key for this message like this:
.
Resource file has a message under the key msg01-01. That is working fine.
Now the question is how to pass an arguments from action to this page? I mean those arguments which in other way would be handled by arg0, arg1 etc parameters in bean:message tag?
Any ideas? Or maybe example of better implementation of such page?
Thx in advance...
11 years ago
Thx for reply
For some reason I forgot about web.xml
Hi
Can you please suggest where to start a daemon thread in web application?
I have a class which extends Thread. So id like to have this started ONCE when my webapplication starts.
I know it is possible to put in init() method of some servlet, so when user first time requests this servlet thread is started...
But my webapp uses Struts...
Thx in advance
Hi
Im not really good in streams, so here is my question...
Im serializing an object and puting it to Oracle column of type "Clob":

This works fine

Then I want to get this object from a table and Deserialize it:


Exception is : java.io.StreamCorruptedException: invalid stream header

I tried to printout InputStream and it consist of bytes
So if I understand correctly I need a stream of chars to give to ObjectInputStream so it could deserialize correctly...

If I printout this InputStream with BufferedReader, then it looks like serialized object..
So question is how to get valid Stream for ObjectInputStream?

thx in advance...
Ok, im sorry
Here is actually what im doing:


Object im writing to stream is a MAP, inside this map i have beans which consits other objects, none of these objects have BigDecimal members.. (Or at least I didnt find any)
During encoding i'm getting this log in tomcat console repeating many times...
Thats all I can say...
13 years ago
Hi..
Im getting this exception with XMLEncoder ..

Any ideas?
thx in advance..
13 years ago
Hi
Thx for reply
Actually I was thinking about "object cache" and I was suspecting some recomendations on it

And what about JDBC top layer cache, can you tell a little bit more on this please?

Thx
13 years ago
Hi
I have run your action class on my Tomcat 4.0, 4.1 and 5.0 (struts 1.2.4), everything ok, it executes ONCE.
Second thing that look strange for me is your action mappings:
your get link will look smth like :
prepareEditComment.do?prepareEditComment=prepareEditComment

I'd prefer like this:

And 3rd thing (as I found): "path" attribut of forward must start with "/" (slash)
Thats all I can say..
13 years ago
Maybe if you provide a code of your action class...
13 years ago