Results 1 to 17 of 17

Thread: Jsp with Ajax

  1. #1
    sundarjothi is offline Member
    Join Date
    Apr 2008
    Location
    villupuram
    Posts
    22
    Rep Power
    0

    Default Jsp with Ajax

    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
    Join Date
    Apr 2008
    Posts
    64
    Rep Power
    0

    Default

    May i know why exactly you want the Jsp page for the DB processing..

    Do you want any data from that jsp page along with your db data to your jsp view page????

  3. #3
    sundarjothi is offline Member
    Join Date
    Apr 2008
    Location
    villupuram
    Posts
    22
    Rep Power
    0

    Default Help

    hi
    I am going to use only jsp pages in my project.
    thats why , i need help.

    regards,
    sundar

  4. #4
    Join Date
    Jun 2008
    Posts
    15
    Rep Power
    0

    Default

    soory ,i do not know ajax.byeeeeeee

  5. #5
    Join Date
    Jun 2008
    Posts
    15
    Rep Power
    0

    Default

    if you know this please send to me:
    ADDITION OF TWO NUMBERS USING BITWISE OPERATORS IN JAVA .I AM WAITING FOR YOUR REPLAY.

  6. #6
    Join Date
    Jun 2008
    Posts
    15
    Rep Power
    0

    Default

    NOT IN JAVA IN ANY PROGRAMMING LANGUAGE sundarjothi OK.BYEEEEEEE.

  7. #7
    Join Date
    Jun 2008
    Posts
    15
    Rep Power
    0

    Default

    Which Books Are Good For Learning Java

  8. #8
    Join Date
    Jun 2008
    Posts
    15
    Rep Power
    0

    Default

    sundarjothi
    Member HI FRIEND IAM PRADEEP FROM MYSORE UNILOG CORPORATION .WHERE IS YOUR NATIVE PLACE.

  9. #9
    sundarjothi is offline Member
    Join Date
    Apr 2008
    Location
    villupuram
    Posts
    22
    Rep Power
    0

    Default hi pradeep

    hi

    actually what do you looking from me?

    regards,
    sundarjothi

  10. #10
    pao
    pao is offline Member
    Join Date
    Jun 2008
    Posts
    43
    Rep Power
    0

    Default

    Why dont you use a servlet instead?

  11. #11
    Join Date
    Apr 2008
    Posts
    64
    Rep Power
    0

    Default

    The same is wat my question is.... Why cant you use a servlet.......Why is it that you want to use a jsp where servlet can do the work........ If there is any specific reason for why you wanted to use jsp, kindly tell us what it is.....

    Regards
    freddie

  12. #12
    Join Date
    Jun 2008
    Location
    Delhi, India
    Posts
    6
    Rep Power
    0

    Default

    Hello Sundar,
    We can call jsp. It is very simple, when we can call servlet using ajax, then we can also call jsp using ajax. Why r u confused, go ahead.........

  13. #13
    Ramslingamr is offline Member
    Join Date
    Jul 2008
    Posts
    1
    Rep Power
    0

    Default Hi to All

    Hi to everybody..:)

  14. #14
    jack239 is offline Member
    Join Date
    Jul 2008
    Posts
    35
    Rep Power
    0

    Default

    The way you call a servlet and get data from it, use JSP also the same way. The code you would write inside servlet put them as scriplet in JSP. If you do not get it post it here. The java code should be placed as scriplet in JSP.
    New to Java/PHP/Javascript development?
    For free help go to- www.techcubetalk.com

  15. #15
    sdileepec is offline Member
    Join Date
    Sep 2008
    Posts
    1
    Rep Power
    0

    Smile can i get client ip address

    in server program if wrote request.getIpaddress();
    when client use to intract with server (Tomcat).
    May i get client ip address like this like. or is there any other ways

  16. #16
    nhy520 is offline Member
    Join Date
    Sep 2008
    Posts
    2
    Rep Power
    0

    Default

    i don't know your question? please elaborate on your question

  17. #17
    sagarbirari is offline Member
    Join Date
    Sep 2008
    Posts
    17
    Rep Power
    0

    Default

    I understand your problem
    you want to use jsp for processing.
    use following code add jsp page path
    xhr.open("GET","jsp_path_here", true);

    Then access variable in JSP page, add code for processing
    After that use "out" object of jsp of JSP page.
    like out.println("your data");

    Then As you know how to fetch variable in Ajax
    Rest of code like you are using servlet for ajax

Similar Threads

  1. alternative for ajax
    By site4u in forum New To Java
    Replies: 6
    Last Post: 04-28-2011, 02:15 PM
  2. Example for Ajax-JSP
    By smrithi in forum JavaServer Pages (JSP) and JSTL
    Replies: 8
    Last Post: 06-02-2008, 03:00 PM
  3. JAVA, Ajax, Flash
    By Digital Dispatching in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 02-06-2008, 08:49 AM
  4. Ajax question
    By Peter in forum New To Java
    Replies: 1
    Last Post: 07-09-2007, 01:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •