Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!

eric sato

Ranch Hand
+ Follow
since Oct 01, 2002
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 eric sato

Hi guys,
i'm new to Java, could you please any of you uses Spring framework before? Any pro and con? Got any simple tutorial for me to take off?


Cheers
Sato
http://mindyou.xffer.com/
14 years ago
hi all,
i'm new to struts and currently i was assigned to maintain one of
the website.
The question arise was due to this website need regular changes -
add/update/take out pages (which including transactions) to suit this
business nature. Thus i need to restart the tomcat everytime i touch
the changes on struts-config.xml. Any idea without restarting it, like
reload???

Cheers
sato.
15 years ago
hi all,
Is there possible to awake a thread that being sleep??

eg.
MyThreadName.sleep(1000000);
Based on some logic, sometimes i would like to awake the MyThreadName at specific time secs.


If the question been posted, pls provide the url. Thanks anyway.
Kind regards,
KH
hi Axel,
That url is just merge/combine document, anyway i just found that http://xml.apache.org/xalan-j/extensionslib.html#redirect using redirect from xalan will helps. Thanks all of u.
Best Regards,
Sato
hi all,
I read through the documention xslt from w3c.org but could not find what i wanted in my xslt programs.
Usually xsl need 1 input xml file, 1 xsl file and 1 outfile. But i need another out file which need to write out within xsl coding. How do i do that? pls help. Thanks all the help. If anyone of u came across the same question with answer, pls provide the links for me. Thanks ya!!!
Best Regards
Sato
hi all,
i'm newbie here, i tried to use
<xsl:for-each select="/Player/Stat/@Type">
<xsl:value-of select="/Player/Stat/@Type"/>
</xsl:for-each>

i wonder render for each of the stat type. but only gave in heigt, height..instead. i must did somewhere wrong. pls advise.

//snippet of xml data
<Player uID="p17552">
<Stat Type="height">unknown</Stat>
<Stat Type="weight">unknown</Stat>
<Stat Type="jersey">67</Stat>
<Stat Type="last_name">Metin</Stat>
<Stat Type="first_name">Tumer</Stat>
<Stat Type="known_name"/>
</Player>
hi all,
i'm new to xslt, usually is 1 xml + 1 xsl to produce only 1 output file, do you think 2 xml files + 1 xsl ==> 1 xml file possible??? do you have any url links that i can read on??? thanks in advance
Best Regards,
sato
hi all,
i tried to set the min and max in my ant build file to run my tomcat. but sad to say that it gives me error. what should i do now ???
best regards,
sato


Below is the error message from the console.
=============================================
[java] Invalid maximum heap size: -Xmx256m -Xloggc:/home/kh/cvslocal/LiveCricketInfo/gc.txt
[java] Could not create the Java virtual machine.



below is the snippet
=====================
<jvmarg value="-Xm256m -Xmx512m -Xloggc:/home/kh/cvslocal/LiveCricketInfo/gc.txt"/>
16 years ago
hi all,
i'm new to xslt thus i'm post this question here. currently i engaged with a project, but their existing system is read the xml from the feeder and parsed and stored in database, whenever requests come, system composed it to xml and send to clients. Assume here, only xml files is needed to send and get.
Question here, if i using xslt, whatever the xml coming from feeder, i parse it to another xml format, whenever the user requests, i just return the new xml format.
hi gurus, which method is more efficient?? the first(database) or second(xslt)?
Thanks in advance.
Best Regards
kh
hi all,
this could be very urgent and important to me. if anyone of u know this, pls help! how to i parse and read the tag "<wickets>" (at line 12) because at line 8 already has the tag "<wickets>". i tried to parse it but it always return me the "<wickets>" at line 8.
<result>
<team>
<bowler order="0">
<bowlerno>5</bowlerno>
<overs>4</overs>
<maidens>0</maidens>
<runsoff>18</runsoff>
<wickets>0</wickets>
<wides>0</wides>
<noballs>0</noballs>
</bowler>
<wickets> <!-- this line 12 -->
<fow order="0">
<whoout>1</whoout>
<runs>6</runs>
<overs>2.4</overs>
</fow>
</wickets>
</team>
</result>
hi all,
how to i list all the process id, but without own process it using 'grep'
[something$]ps -ef |grep cvs
kh 18426 18420 91 19:02 pts/0 00:00:05 /usr/java/cvs
kh 18442 18263 0 19:02 pts/0 00:00:00 grep cvs

i want only the result return only the first line without my own 'grep' proces id. thanks in advance
sato
16 years ago
hi all,
i really need helps on this jk2. it really gave me alot problems and time to solve 1 by 1. if anyone of u have encountered and solved it pls share with me.
I able to install Apache2 and Tomcat 5.0.19 (multi instances) in Redhat9. But at the tomcat console i see these messages always displaying out. is it a normal??? after i running hrs mild stress test, tomcat complained OutOfMemory error. what should i do now ??? pls help.

org.apache.jk.common.HandlerRequest invoke
INFO: Unknown message 0
and
org.apache.jk.common.HandlerRequest decodeRequest
WARNING: Error registering request
16 years ago
hi all,
i guess i found the answer for it. This prob related with group. i just add another group [lb2:]. then my problem solved.
sato
16 years ago
hi all,
i'm using Apache as main web server, and tomcat (in multi instances) to serve respective jsp and servlet.
i found out that if only if 1 tomcat is running, everything is perfect and smooth. But if more than 1 tomcat instance runnnig (whether is servlets-examples or test context), the user screen sometimes will get blank (only when they call servlet/jsp).
Pls help. below is my workers2.properties file. i'm confident i'm having inefficient worker's config file.
Thanks in advance.

############ Below there is my workers2.properties file#########################
[logger.file:]
level=EMERG
file=/var/log/httpd/mod_jk2.log
[lb:lb]
[shm:]
info=Shared memory for multiprocessing
file=/var/log/httpd/mod_jk2.shm
size=1048576
[channel.socket:localhost:8009]
info=Ajp13 channel forwarding over a tcp socket
host=localhost
port=8009
tomcatId=tomcat1
#worker tomcat1
[ajp13:localhost:8009]
channel=channel.socket=localhost:8009
host=localhost
group=lb
[uri:/jsp-examples/*]
worker=ajp13:localhost:8009
group=lb
info=display examples
[uri:/servlets-examples/*]
info=display servelts

[channel.socket:localhost:8109]
info=Ajp13 channel fowarding over a tecp socket
host=localhost
port=8109
tomcatId=tomcat2
#worker tomcat2
[ajp13:localhost:8109]
channel=channel.socket=localhost:8109
group=lb
[uri:/test/*]
info=test page
[status:]
info=Status worker
#[uri:/jkstatus/*]
#info=Display jk2 status page
#group=status
16 years ago