Rajkumar balakrishnan

Ranch Hand
+ Follow
since May 29, 2008
Rajkumar likes ...
Android Eclipse IDE Windows
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 Rajkumar balakrishnan

Hi guys,

I have re-captcha integrated with my Application and the issue is, when i open that jsp directly in address bar, the re-captcha is working properly, but if i call the same using a thickbox it's not working. Can anyone have any idea why this is happening?

the code i am using in JSP is :



12 years ago
JSP
What kind of application and what are you exactly going to develop? Without these info its not possible to suggest. There are lot of PHP Frameworks are there for various purpose.
13 years ago
PHP
I use XAMP, Pretty fast and simple to use. BTW i am not a professional PHP Developer and feel XAMP comfortable for developing some basic DB Driven Sites.
13 years ago
PHP
if you're using linux, chmod 777 dirname or if windows, set the permissions using admin panel. Thats it
13 years ago
PHP
Paginate Data and learn caching in AJAX. Try to get data's in JSON format and add them to table whenever needed. Like initially display x results out of xx results and on demand you fetch the rest of the data's.
@OP
Remove the .do and try use the jsp/html page. I dont know what a .do is doing there.
If you want to redirect it to your servlet, then write a page redirect in index.html and use that as welcome file. Simple!
13 years ago
Hi friends,

I am using FancyBox implementation (FancyBox) in my project to prompt user to upload the needed files and upon submitting the form in fancybox, it's properly getting submitted. Now after submitting the form the fancybox will get closed and the parent window will be get updated.

My issue is, the form gets submitted inside the fancybox itself and fancybox content get updated instead of parent window. I use iframe to open FancyBox.

Please see the code

The fancybox page name is fancyfiles.jsp

Inside this JSP i have a function like this to submit the form :


The Parent JSP name is submitfiles.jsp


Please help me to resolve this. The form inside the fancybox will get submitted, fancybox will get closed and the update will happen only on parent page. Now i am able to submit the form and close the fancybox, but cant able to get the parent windoe get updated. Even tried the page reload but still of no use.
Hi friends,

We are using JNDI with Struts for DS and Connection Pooling. The issue is we very often getting this 'OutOfMemoryError'. And after a server restart only we can able to use the application. Currently we dont have much data's say around 5000, but after implementation, it'll go upto 1lakh. My question is , is there any way to find if there is an memory leak in the application? Because, for another application we are using Spring + DBCP and it never give us any problem yet.

Or else,do we need to close each and every connection manually in Controller itself? Which one do you suggest and please help me get rid of this.

Thanks in advance.
Hi friends,

We are using XML's to read and write data's instead of hitting into DB. Now the thing is whenever a data is posted to form we are able to create the new XML, but what we need is instead of creating new XML that data has to be appended to the existing file. Say i have Main.xml which has around 50 entries in it. If a user post the values, it has to be appended to that end of file, instead of read the file and copy all to new file and save it. How can it be done?

Please guys i need your help
Thanks in advance.
Hi guys,

I am using this simple method as a Web Service for other portals to use my portals data. Like if you want to know the particular users information, you have to send userid, randomid,sessionid and service id to the url http://xxx.xxx.xx.xxx/PROJECT/validation.do.

I get the data's from URL and do the validations using the randomid and serviceid. After that i'll hit my DB to look for that users data and print it back in a page, from where the sender will collect the information.

Now the problem is if i use the URL url as http://xxx.xxx.xx.xxx/PROJECT/validation.do i'm getting the response back. But if i use this http://domainname.com/validation.do, i am unable to get the response, but the whole process is happening at the server (I checked it using the logs and i am sure that its working), but the only thing i am unable to get response.

Can anyone know why its like this? Any help will be appreciated. Thanks in advance
13 years ago
Hi friends,

I have a HashMap in my jsp page and i put it in the hidden field and pass it back to Controller. But when i try to cast to back to HashMap its showing some error stating that "Cannot cast from String to HashMap".

The code snippet is :


Is there a way to do this. Because its easy for me to use HashMap and i'm passing this throughout the film ticket booking cycle. Please guys help me get out of this issue.

Thanks in advance.
13 years ago
Hi friends,

Our company bought a new dedicated Web Server and registered some domain names. Say, we developed the app and hosted it in our server which has IP like this http://158.168.1.158:8080/webapp. Now i used the domain forwarding option of the domain name and made the website.com to load the http://158.168.1.158:8080/webapp. But when i click a link, it goes to http://158.168.1.158:8080/webapp/link.do. Why this happening? I enabled the URL Masking but still got no solution. Please help me regard this issue.
13 years ago

R Srini wrote:Hi. Were you able to find a solution? This type of error can occur when our code is not properly accounting for http protocol details, and some other reasons. You could try these links:

- http://stackoverflow.com/questions/2794006/java-io-filenotfoundexception-for-valid-url
- http://www.codeguru.com/forum/archive/index.php/t-41552.html
- http://forums.sun.com/thread.jspa?threadID=337084

Please let us know if the above worked. In any case, as suggested in the stackoverflow post, I have always found it a good idea to use libraries like HttpClient instead of directly invoking URL.openConnection since HttpClient takes care of a lot of minor details, accounting for different http response codes, etc. Best of luck!



Still getting same error. I did tried all the solutions that were in the links but no use. Please let me know if there is any other workaround.
13 years ago
^^

No, its a freshly formatted system. I double checked for the jars in classpath. If thats the case, then how its running fine in Developers machine, which is same as this public IP machine?
13 years ago
Hi friends,
yes, you heard it right. I am developing a simple project using Spring 2.5,Hibernate 3.1. Its working perfectly in all of our Developer's machine. So we decided to put it in a system with public IP so that its easy to show a demo for our higher authorities. But the problem is whenever we move the project to that system and try to run it, we get a error like this. The system config and sofwares installed are same as Developers machine. I don't get where i went wrong.

The error is :


The same was tested in around 5 systems and its working perfectly there. Please do let me know what might be the problem?

Thanks in advance.
13 years ago