Ali Haider

Greenhorn
+ Follow
since Feb 21, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Ali Haider

Hi,
I just want to know that the site which are made in jsp, those which accept credit cards, how do they retrieve the form variables when they received the values from a secure connection. I'm trying to access but its not working. Reply soon.
Thanks and regards
Ali
22 years ago
JSP
Hi,
I had a jsp page, which accessed variables from a previous page. Now I am passing data under secure socket connection. How can I access the variables which I used to access before the secure connection. Now its giving me exception when I'm accessing the variables. Server i'm using is tomcat 3.2.4. Waiting for reply
Thanks and regards
Ali
22 years ago
JSP
Thank you shawn. I'll try to include the file in the web-inf/lib directory. I just need to ask one more question that do I have to copy the file in the tomcat/lib directory or do I have to copy the file in mysite/web-inf/lib directory. One more thing, will it work without even adding the jar file in the classpath variable? i don't have access to classpath variable. Version of tomcat I'm using is 3.2.4
Thanks again shawn
bye
Ali
22 years ago
JSP
Hi all,
I was using JAVA Mail component using Jrun. It was working fine. Now I deployed the project on tomcat and using JAVA Mail there. Its not working. Its giving a datasource activation error. Jrun was running on windows platfrom whereas, tomcat is running on a unix machine. reply soon.
Thanks
Ali
22 years ago
JSP
Hi All,
using jsp, the pages which I'm using. don't get refreshed even until I refresh it by pressing the refresh button of browser. Tried everything but it doesn't work. I used the following code too. but still
response.setHeader("pragma", "no-cache");
response.setHeader("Cache_Control", "no-cache");
response.setHeader("Cache_Control", "no-store");
response.setDateHeader("Expires", -1);
Don't know how to fix it.
Ali
22 years ago
JSP
Hi all,
I'm trying to send mail using Java mail but its giving me the following error:
javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: Could not connect to SMTP host: smtp.mail.yahoo.com, port: 25;

Reply soon
Thanx
bye
Ali
23 years ago
JSP
Hi yaser,
Check out this page: http://www.jspinsider.com/tutorials/jsp/javamail/jspjavamail_faq.view
hope it'll help
bye

Originally posted by yaser:
I am using java mail package to send a email & I am receving this
error message :you must be a pop authenticated befor you login to this smtp server
What should i do?


23 years ago
JSP
Thank U all for the suggestions. I'm now using the first method, which is, opening the connection at every request.
Regards
@li
23 years ago
Hi Sanjay,
Wouldn't it be too much resource taking to open the db connection on every page.

Originally posted by sanjay yermalkar:
I suggest keeping Jsp free from any database connection. That keeps it more maintanaible and can be easily given to a page designer who doesn't understand Java!
I'll rather keep database connection task bound. Let it be in a method (in a bean), which is actually doing the task of dealing with database. I'll not keep the connection open for all the time user is logged in. What if the user is just reading Help pages? :-)

[This message has been edited by sanjay yermalkar (edited September 20, 2001).]


23 years ago
Hi Manoj,
Thanks manog. I got wat U meant but thing is that the website doesn't have any login session. its not like when somebody logs in and then uses the website. I can open the connection on the first page of the website. but wat if the user didn't get in from the first page. if he'll directly jump to the second page then there'll not exist any db connection which will show an error. One solution is that I'll check on every page that theres exist db connection , if there isn't then I'll create one else use the existing one. But for that I'll have to write this code on every page. I don't want to do that cuz there r so many pages. doesn't there exist a global.asa type thing, as in asp. In Jrun, I can use global.jsa but then I'll have to deploy the project on a jrun webserver on web. I don't want to do that. Any other sugguestions r most welcome.
Thanks
Ali

Originally posted by manoj bagul:
Hello Ali.
One way is that u can open a connection when u login to the system and put that database connection object inside the session and retrive whenever u want.
Also when u logout close the database connection.


23 years ago
hi all,
I'm using jrun for jsp. Which method should I use to open database connection. Should I open the db connection once in a global.jsa file or should I open it @ every page. that'll be too heavy. I want to develop the project independent from jrun. which method should I use, which'll allow me to deploy the project later easily on any jsp server. I used the jdbc bean but I have to open the connection on every page. any suggestions to which method should I use would be highly appreciated.
Thanx
bye
Ali
23 years ago
hi all,
i'm using visual cafe pro 4.0. there is a problem with visual cafe. when I compile the code it adds its own library files in the code. I can't deploy the applet. is there any solution to prevent visual cafe for using his own library files. reply soon
thanx in advance
bye
@li
23 years ago
Hi all,
I need to know that how can I blink the window title in the taskbar if the window is minimized.
Thanx in advance
bye
@li
23 years ago
Hi all,
I would like to ask that is it possible to communicate other machines available on the network other than server using "applets". Since in applets, Java doesn't allow communication other than server. Is it possible using anykind of security permission. If not then are all the chatting applets made in Java, doesn't use peer to peer communication?
Thanx in advance
bye
@li
23 years ago
Thankx for the link Marc.........