bat ken

Greenhorn
+ Follow
since Dec 28, 2005
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 bat ken

Actually What I wanna do is do synchro when sharing same database, If user from same set of program access to different database, I do multithreads.
Thanks alot!

But what do means by saying that it is "costly"? since I only change the code
17 years ago
Thanks Alot!!!

But how about if 1 programs that can redirect different user to different database? it will synchro right? if so, how can I specific in that program if it is sharing same databse then we do synchro, else (different databse) then we do concurrently?

OR It is not possible?since what ever program call thread also will synchro...

HI,

I am a beginner in java thread...some synchronization problems confusing me...

Is it necessary for us to create a thread for each program? or single thread can be call by many programs?

when thread call method to access to database, can we use a single thread with a method to access to many different databases? if yes, how can it snychronize it?

please help...

thank you...
regards,
bk
HI,

I am learning to set up tomcat apache server, does anyone know why we have to enable the invoker servlet?

To enable the invoker servlet, uncomment the following servlet and servlet-mapping elements in install_dir/conf/web.xml. Do not confuse this Apache Tomcat-specific web.xml file with the standard one that goes in the WEB-INF directory of each Web application.
<servlet>
<servlet-name>invoker</servlet-name>
<servlet-class>
org.apache.catalina.servlets.InvokerServlet
</servlet-class>
...
</servlet>
...
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>

Please enlighten me
17 years ago
Hello friends,

I am learning to set up tomcat apache server, I found some website is require us to turn on servlet reloading by Edit "install_dir/conf/context.xml" and change

<Context>
to
<Context reloadable="true">

Can anyone tell me the purpose of doing this?

please help...

thank you
[ April 02, 2006: Message edited by: Bear Bibeault ]
17 years ago
HI,

Can somebody tell me what is Java persistent?or java persistency?

I found many info from internet, but what still quite blur with it...

I dont know the exact defination for java persistent...

pls help...
18 years ago
thank you chetan and joeee
18 years ago
JSP
hello

Can I assign HTML tag to variable and pass to my bean file? I have created a sendMail bean, and one of my company system will pass in the data to sendMail bean and send to recipient. All in text file. I would like to make it look beter which is in HTML format.possible for me to design the layout + passing in the data and then I assign this whole html tag+ data to 1 variable then only pass to my bean file?

thank you.

regards,
bk
18 years ago
JSP
Halo

I am having a problem here, hope someone can help me My loop keep on replace the value in my variable. I want to get few lines of sentence, but I only able to print out/get the last sentence. It keep on replacing...

my code;
--------
for (int i=0; i < Cnt; i++)
{
if (request.getParameter("status"+arrOfRec_to_update[i]).equals ("R") && i==0)
{
Body="This is to inform you that your Material Requisition was REJECTED on "
+dte+
" by "
+SenderREJ+
"\n\n"
+"Details"+
"\n"
+"No."+" | "+"Material Item Code"+" | "+"Material Description"+" | "+"Qty/UM"+" | "+"Reason"+"\n"
+cnt+"|"+mtr_cde+"|"+in_desc_combine+"|"+qty+umdesc+"|"+pur+"|"+rec_status+"|"+remark+"\n"
+"\n"
+"Regards"+
"\n"+"BCT";
rCnt = rCnt + 1;
}
else if(request.getParameter("status"+arrOfRec_to_update[i]).equals ("R") && i!=0)
{
Body=cnt+"|"+mtr_cde+"|"+in_desc_combine+"|"+qty+umdesc+"|"+pur+"|"+rec_status+"|"+remark;
rCnt = rCnt + 1;
}
}

Thank you
18 years ago
JSP
Dear Friends,

I would like to retrieve email address from database, but I am not be able to get the value and store into my Sender. When I hardcode my email, it can send out the mail successfully, but when I use SQL to retrieve, it cannot run. Pls help...


\\Define Variable
<%String Tabcont="", dte="",Subject="", ln_num ="",remark="",pur="",in_desc_combine
="",mtr_cde
="",selectExceed1="",seqDftran="",Body="";
String Rej="";
double qty=0;
String emailadd="", Sender="",Recipient="";%>

\\SQL query
String emailaddSender=" SELECT em_email_addr FROM emmast "+
" WHERE em_name = '"+ whoReject+"' ";
ResultSet emSender = null;
try {emSender = db.execSQL(emailaddSender);}
catch (SQLException e)
{System.err.println("Error-123");}
if(emSender.next()){
Sender=emSender.getString("em_email_addr");}

\\pass in parameter
checkstatus();
{
<%if (rec_status.equals("R"))%>
<%{%>
<%send.sending(SMTPServer,Sender,Recipient,CcRecipient,BccRecipient,Subject,Body,Attachments);%>
<%}%>
}

**I am not sure what is the mistake I did in my sql query, please help

Thank You
Hi,

the DRS in DB4o works like OR-mapping tools?I am not so clear about what the DRS can do...
hi friends,

can somebody tell me which spyware and firewall application(freeware) is the best?
thank you

regards,
batken
18 years ago
try QKsorf smtp server(trial version) and set smtp host to 127.0.0.1 in smtp server and ur mail application. it works, I tried before.
18 years ago
hi, you cannot use yahoo. you have to download a free smtp server and set ur host in that smtp server and also in your mail application. provide a valid recipient email. you will able to receive it.
18 years ago