vikas prasad

Ranch Hand
+ Follow
since Nov 06, 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 vikas prasad

but the problem is after the action runs, and it maps to :
<action name="admission" class="frontPageAction" method="aboutUs">
<result name="success" type="freemarker">
<param name="location">/template/home/content/Admission.ftl</param>
</result>
</action>

parameter as defined in my result. it reloads the page. i think do i need to use simple servlet dopost methods or doget methods where i dont return any thing. then it will work.
because when we return Success in my execute method it maps to the param that i have defined. i my Xwork.
so is there any other way i can do this
i want to use AJAX in my web application. at present i am using free marker, webwork,spring and hibernate together. i found various example of using AJAX with other technologies. what i wan to know is that what changes should i make in my xwork.xml so that i can handle ajax request. i also want to know how should i send response from my Action to AJAX request.
i know how to use AJAX with simple servlet doget, dopost methods. but if any body can help me or show me simple example to use it with web work than it will be great.
thanks in advance.
Vikas

the user searches on your site.
You then make HTTP requests to all of the other sites, gather up the prices for the product in question, and then return a page with all of that data to the user.


where can i find details about this and can you explain how to do this
please
thanks for your help in advance.
16 years ago
so according to you people this only be done if i have some control on the other site. ok i can understand but can you tell me how does price comparison sites works.
say kelkoo if you search for a product they will give you details about almost all the sites where you can find that product. that mean they also have some control over those websites. and if not how do they do that.?
[ June 22, 2007: Message edited by: Ben Souther ]
16 years ago
pallavi you were saying something about cookies. lets say if a user click on any link in my web site i store a cookie on his computer and then he goes to other website by that link now when he makes a search on that web site that website will store a cookie on his computer.
so is there a way that the cookie which is from my website sees that there is a cookie from other web site. and when user refreshes the page in my web site i should be able to get the information about the cookie set by other web site.
I mean is there any way cookies can comunicate with other cookie. or say my cookie will have a variable which will only increas when it sees that a cookie from another page is also there on the user computer.
any idea?
16 years ago
please check this web site
http://www.britishrewards.co.uk/index.pl
and then register yourself you will see there is an option for paid click
and when you are on that site you will find soe click are paid instantly ok.
but only when you do some search or cick on their web site. if you just click on the first website you get nothing. try this and then you will understand what i want.
16 years ago
thanks Rahul for understanding. at present i can monitor the link directly. but my point is once the new website is open how can i make the browser call a method in my website.
i will tell a senario: lets say A user in my website click a link. which takes him to other website. now say i also passed a parameter with that link. now the user is on another website. (up till now the variable in my website has not been incremented). now the user makes a search or click any link on that website. now what i want is that the browser should do the search(which is what it is suppose to do in that web site) as well call a method on my website with the id what i passed with the link.
then i will be able to increment my variable.

any idea
16 years ago
so can you tell me how does these sites work
web page
think about any pice comparison site.
how do they work.
you search for any thing and they give a list of different companies offering that service.
i am sure definately they can search another web sites.
any idea how this work
16 years ago
actually i have no access to other website. say for example i have a link in my page for www.kelkoo.co.uk . now when a user in my web site clicks this link . I takes him to kelkoo website. now when the user make a search on this website then i should be able to update the variable in my web site.
so you see i dont have access to kelkoo web site.
16 years ago
I have a link in my HTML page. which a user can click and go to another web site. I have a counter variable which i want to increase only when a user does a search or click on any link on that website.
want to develope a click tracking system. at present I can track the details about a user when he clicks on any link on my website. but now my requirement is that once a user click on the link and move on to some other web site.(link opens the website for which the link is for) I should be able to track whether he clicked on any link or made a search on that new web site.
i found some click traking tools in PHP but can any one tell me how should i do it in JAVA
thanks in advance please help.
i have one week to do this
16 years ago
Dear Sagar,
Excellent Job.
in two weeks time it's not easy to get 100%.
you are great, hats off.
very well done.

cheers
Dear sagar,
check where you have put your AdviceAppClient.jar file you need to add the directory path to your CLASS path.
ok.
and still things doesnt work.
just try to start all over again.
may be uninstall and reinstall every things this might work.
and follow the previous instruction and i am sure it shoud work. i had similar problem and i did the same thing. and if you still have problem. then mail me all your code and path variable details may be then i can see and try to help.
my email is vikashprasad78@rediffmail.com
hi there,
try this may be it might help. cause it works for me with windows XP

CLASSPATH C:\j2sdkee1.3.1\lib\j2ee.jar;D:\Certification\projects\advice

D:\Certification\projects\advice This is the folder where you will have your AdviceAppClient.jar file. see do not put the jar file name ok just the path to the directory. ok

J2EE_HOME C:\j2sdkee1.3.1

JAVA_HOME C:\jdk1.3.1_16

PATH C:\j2sdkee1.3.1\bin;C:\jdk1.3.1_16\bin;

ok now compile
javac -classpath %CLASSPATH%; AdviceAppClient.jar AdviceClient.java

and run the program
java -cp %CLASSPATH%; AdviceAppClient.jar AdviceClient

bingo....
it will run.
cheers
hi sagar,
read it carefully i have told the same thing to many other people and all windows user have been benifited by this and i am sure this will surely solve your problem..
set your environment variables as follows....

CLASSPATH C:\j2sdkee1.3.1\lib\j2ee.jar;D:\Certification\projects\advice

D:\Certification\projects\advice This is the folder where you will have your AdviceAppClient.jar file. see do not put the jar file name ok just the path to the directory. ok

J2EE_HOME C:\j2sdkee1.3.1

JAVA_HOME C:\jdk1.3.1_16

PATH C:\j2sdkee1.3.1\bin;C:\jdk1.3.1_16\bin;

ok now compile
javac -classpath %CLASSPATH%; AdviceAppClient.jar AdviceClient.java

and run the program
java -cp %CLASSPATH%; AdviceAppClient.jar AdviceClient

bingo....
it will run.
cheers