Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: How to use Ajax concepts in jsp page(for view) with servlet?

  1. #1
    Junior Member
    Join Date
    May 2008
    Posts
    10
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default How to use Ajax concepts in jsp page(for view) with servlet?

    Hi

    I am looking ajax concepts with jsp pages.
    Already i used ajax concepts jsp(for view) with servlet(for processing some task in back).

    Now i need jsp page (for view) with jsp ( for database data processing in back).
    Is it possible in ajax concepts.

    Becoz
    //xhr.open("GET","servlet name", true);
    instead
    can i use jsp page here
    //xhr.open("GET","jsp name", true);

    please help me.

    regards,
    sundar


  2. #2
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: Jsp with Ajax

    Yes, you just put the url you want to call using AJAX in that method I presume.

    xhr.open("GET","http://my.url.domain/path/to/my/servlet/or/jsp/here", true);


    // Json