Skip to main content

Jsp with Ajax

2 replies [Last post]
sundarjothi
Offline
Joined: 2008-03-16

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

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mprabhat123
Offline
Joined: 2007-10-03

Hi Sundar,
Yes you can; for AJAX there is absolutely no difference about what is the target/action. It just sends an http request. So it should be fine.

-MP

jwenting
Offline
Joined: 2003-12-02

except of course that any proper JSP would not return XML fragments but HTML pages.