-
1. Re: How to write an ajax call to a JSP page
kasq Dec 13, 2012 7:14 AM (in response to Veena_07)HI Vena,
If you try to search on google, probably you will find some working examples. Try to check if example from another forum is working fine. It seems that it shouldn't be a problem:
http://www.coderanch.com/t/519633/HTML-CSS-JavaScript/calling-jsp-page-Jquery
Regards,
kasq
-
2. Re: How to write an ajax call to a JSP page
Veena_07 Dec 13, 2012 11:39 AM (in response to kasq)HI
I have tried. For me the prob is the URL. I am not able to identify what shud be the url i must pass. If my jsp file is in the same level also it is not picking up
-
3. Re: How to write an ajax call to a JSP page
kasq Dec 13, 2012 11:16 PM (in response to Veena_07)HI Vena,
Another question - ajax must call jsp or for example instead of it can call a servlet?
Regards,
kasq
-
4. Re: How to write an ajax call to a JSP page
Veena_07 Dec 15, 2012 5:45 AM (in response to kasq)Hi Kasq....
I will explain my exact requirement
Publish side:- i have a button. On click of button i need to capture the screen shot of the page. The capturing method is inside a java class. So i hve to call this method on click of button from jsp page.. Can u explain how i can do this. PLease it is a very urgnt requirement
Thanks
Veena
-
5. Re: How to write an ajax call to a JSP page
Jörg Hoh Dec 15, 2012 2:04 PM (in response to Veena_07)How do you make the server to create a screenshot of how the page is displayed in your browser?
Ignoring that "issue"t:
* Either create a sling servlet, which calls the functionality
* Or create a template which contains a component, which calls this functionality.
-
6. Re: How to write an ajax call to a JSP page
Marcel Boucher Dec 15, 2012 2:15 PM (in response to Veena_07)I have a write up of using jQuery+AJAX callback to a CQ JSP on my blog: http://blogs.adobe.com/mtg/2011/11/building-components-in-adobe-cq5-part-2-a-tutorial-on-j query-ajax-and-sling.html
-
7. Re: How to write an ajax call to a JSP page
Veena_07 Dec 16, 2012 11:00 PM (in response to Jörg Hoh)Hi Jorg
It is possible through simple java method....
Thanks
Veena
-
8. Re: How to write an ajax call to a JSP page
Veena_07 Dec 16, 2012 11:04 PM (in response to Marcel Boucher)Hi Marcel
For me the requirement is bit different. I dont want to call it from dialog. I have a normal jsp button in my publish page. On click of it i have to call this java class
Thanks
Veena


