Win a copy of Java by Comparison (eBook) this week in the Java in General forum!

Tien-Chih Wang

Greenhorn
+ Follow
since Feb 23, 2003
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 Tien-Chih Wang

Book ISBN Search TOOL

www.4isbn.com
[ January 31, 2006: Message edited by: Tien-Chih Wang ]
12 years ago
Hi,
Is there any RSS API available to manage the RSS feed?
I check ROME and Informa, which one is most common used or any other option?

Sincerely,
Tien-Chih Wang

Originally posted by Tien-Chih Wang:
Hi,
Thanks for the help!! Indeed it's a global variable issue.


Sincerely,

Tien-Chih Wang

Hi,
Thanks for the help!! Indeed it's a global variable issue.
Take a look at this site to see the result.

http://www.onsofts.com/deepJobSearch.jsp

Sincerely,

Tien-Chih Wang
Hi,
You can also try Oreilly's package.(com.oreilly.servlet) cos.jar

Sincerely,

Tien-Chih Wang
12 years ago
JSP
Hi,

here is the xmlhttp javascript source code. The 'count' element keeps counting without any problem, but the 'record' element never show up.
---------------------------------------------------------------------------

<script language="javascript">
<!--

function count()
{
req = new ActiveXObject("Microsoft.XMLHTTP");
req.open("get", "counter.cgi", true);
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
req.onreadystatechange=
function()
{
if (req.readyState==4)
{
if (req.status==200)
{
window.document.getElementById('count').innerHTML=req.responseText;
}
}
};

req.send();
setTimeout("count()",500);
}


function call()
{
req = new ActiveXObject("Microsoft.XMLHTTP");
req.open("get", "jobHandling.cgi", true);
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
req.onreadystatechange=
function()
{
if (req.readyState==4)
{
window.document.getElementById('record').innerHTML=req.responseText;
}
};

req.send();
count();
}

---------------------------
Html code

<table>
<tr><td><div id='count'></div></td></tr> // Display ok
<tr><td><div id='record'></div></td></tr> // Show Nothing..:-(

Regards,

Tien-Chih Wang
Hi,
I trigger two xmlhttp connection simultaneously.
What I need is to keep one xmlhttp.responseText as static InnerHtml and still updating the other(Using setTimeout()). The page only displays the setTimeout() one but never shows the first static one. Is there anyway to do this? Sample codes provided will be appreciated.

Regards,

Tien-Chih Wang
Hi,
Give this meta job search site a try.

www.jobRssFeed.com
[ January 05, 2006: Message edited by: Tien-Chih Wang ]
12 years ago
Hi,
Thanks for all the answers. I found I missed to close() streamReader object during the Thread execution. That might be the cause. I modified the code and no more heapdump or javascore so far.

Thanks the help,

Tien-Chih Wang
Hi,
A piece of code running on the server.

for(int i = 0; i < 100; i++)
{
Thread t = new Thread();
t.start();
}

I got several heapdump and javacore files on the server(may caused by out of memory exception). Could this happen and how can I solve this if it's Thread issue?

Best Regards,

Tien-Chih Wang
[ October 24, 2005: Message edited by: Tien-Chih Wang ]
Hi,
You can also store the img URL in DB, and mapping to another file server.

Tien-Chih Wang
malformetedurl exception sometimes came from wrong charest parameters.
can you give more detail about the Exception message and code?

Tien-Chih Wang
12 years ago
JSP
Hi,
When initializing the comment value, the value should be retrieved from DB rather than request.getParameter().
comment = request.getParameter() only used when doing the FORM udpate.
Hope that helps,

Tien-Chih Wang
12 years ago
JSP
If you want to do it on server side, you can create a template file. Feed in data and transform to RTF format.
The way it works is just like we manually did in local computer.

Few steps:

1. create a template file
2. Feed in data when user submit the form
3. Save the template file to another html file
4. Transform the html file to RTF document by some add-in tool(you can find some on above link I provide)
5. Redirect the browser to the new RTF document to let user download.

All steps can be done in One Click.

Tien-Chih Wang
12 years ago