Ganesh Ravi Kumar

Greenhorn
+ Follow
since Dec 06, 2010
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 Ganesh Ravi Kumar

Using Timezone.getTimeZone("Antarctica/Casey"), certain time zones are returning the valid output. For eg.,



Which suppose to return "MM/dd/yyyy hh:mm aa CAST", but it returning "MM/dd/yyyy hh:mm aa WST".

Like this here are the few other things having issues,

1. Australia/Adelaide - ACST / ACDT
2. Australia/Eucla - ACWST / ACWDT
3. Australia/Sydney - AEST / AEDT
4. Antarctica/Mawson - AHMT
5. Australia/Perth - AWST / AWDT
6. Pacific/Apia - SST.
9 years ago
Here is the code, that will do..........


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery-1.4.2.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("#click").click(function(){
name=$("input#name").val();
age=$("input#age").val();
$.ajax({
type:"POST",
url:"jsp/pageTwo.jsp",
data:"name="+name+"&age="+age,
success:function(data){
$("#response").html(data);
}
});
});
});
</script>
</head>
<body>
Name: <input type="text" id="name" name="name"><br/><br/>
Age  : <input type="text" id="age" name="age"><br/><br/>
<button id="click">Click Me</button>
<div id="response"></div>
</body>
</html>
Hi thanks for you reply.........But i have already fixed it...........

Will you help me in this................

Whether it is possible to host both web application and web service in the same server.......like for eg in Apache Tomcat Server.

When im doing like this im getting an exception:

Internal Connector Error (1002) - The calling thread timed out while waiting for a response to unblock it.

But when work with web application part in GAE(Google App Engine) and web service part in Apache means its working fine.....

But my requirement is to host both of them in Apache Tomcat Server.

And once again thanks for your reply.....
13 years ago
java.lang.ClassNotFoundException: org.restlet.util.Helper.

I know that the particular Helper class is not in the restlet jar(im using org.restlet.jar-2.0.0.jar) but if i go for the jar that it consist of Helper class, i caunt able to use restlet annotation post,get,etc........because it is in the jar version(org.restlet.jar-1.1.10).

But Helper class is not necessary for my application, i need only post and get annotation contained jar.

Why im going for get and post annotation is, im passing object from my web application to web service.

Its is not possible to pass object from web application to web service without annotation, may be it is possible but it is not a efficient way.......and annotation reduces more code when compare to normal way.

Any solutions.........will be appreciated............
13 years ago
im not trying to do three different things.......i just want to display the pdf file in the browser......thats it.......the code that i posted have some logic, im asking why it is not working in mozhilla and ie.......whether i have made any modifications in that code...........
13 years ago
JSP
somebody fix this issue............how to display pdf file using jsp in different browser............
13 years ago
JSP
ya i have cleared that one.......now the problem is......i have to display how many digits of 8 in the given input..........For eg: 8008,5808,4008,6,9,25,18...........think that these are the inputs........i have to find how many time the digit 8 replicated in the given input.........
i understood what that link is for.........but my query is how to get the values from the user for unknown number of times........when the user hits cancel,upto that our prompt has to come again and again.........and has to hold the values that are received from the user.we dont know how many times the user will give input..........its totally based on his wish.........i just gave a clue to understand the logic by using "prompt".
this is ok........but the loop should iterate as far as the user inputs...........that is for n number of times...........but we are not sure, what is the value of n here, it is based on the user interest........
no......but it may be like this.......when using "prompt" to get input from the user.........if he/she clicks "cancel" button in prompt.........the retrieval of input from the user should terminate from that time. this may give some idea to you.........
exactly........you are right......(Something else?)no more............what i have to do for that..........u have understood clearly about my problem........solution for that???
13 years ago
JSP
that i know.....im asking how to solve this issue........
var A=new Array();
do{
A[i]=prompt("Enter the value","");
i++;
}while(i<10);
for(j=0;j<i;j++){
if(A[j]==8){
noOfOccurance+=1;
}
}
document.write("Number of times eight occured from the given input is : "+noOfOccurance);


i have done upto this.....but this only works upto 10 inputs,that i mentioned in do while loop. but the program has to get as many as input from the user based on his wish.
Write a program to find and print how many times the number 8 occurs in an array A. The
array A should take as input as many values as the user wishes to enter.

I tried this program......but still i didnt fix the problem. i wants to know the program logic.
In Internet Explorer im getting the fully qualified path. Eg: D:\Ganesh\Assign1.pdf. But it only displays the iframe as blank.......it is not displaying the pdf file. But when working with FireFox im getting only the resource name. Eg: Assign1.pdf. thats it. And i have concatenated the resources name with the fully qualified path (Eg: D:\Ganesh\Assign1.pdf) when using firefox and it is returning a alert message like........... "Firefox doesn't know how to open this address, because the protocol (d) isn't associated with any program". And one more thing as you said, input type file only used for browsing.....yes that i know......im passing the path to the iframe with the use of input type submit.
13 years ago
JSP