Ajax Tomcat

0 views
Skip to first unread message

Raul

unread,
Jul 16, 2009, 8:07:59 AM7/16/09
to Java Web Application
Hello All

I have a question. If I want to develop a ajax based web application,
is it possible to do it without servlet?

What exactly I want to do is, I will have jsp pages and these pages
will have forms and I want to put function of plain java class files
as action to these forms. the client side JSP pages will interact with
these java class files which will reside on my server through Ajax
calls.

So my question is, will my plain java classes will do the job done for
handling all the server side logics?

Actually this is be the first time I will play with AJAX.

So your suggestions will do a lot for me..


Thanx

Raul

Kamal Chandana Mettananda

unread,
Jul 30, 2009, 10:55:07 PM7/30/09
to javaw...@googlegroups.com
I don't think you will be able to call methods in simple Java classes on a server; you will need to have Servlets to receive your calls, no matter whether they are Ajax based requests or not.


---------------------------------------
Kamal Mettananda
http://lkamal.blogspot.com

Seasoned

unread,
Sep 1, 2009, 9:43:01 AM9/1/09
to Java Web Application
On Jul 16, 7:07 pm, Raul <raahoo...@gmail.com> wrote:
> Hello All
>
> I have a question. If I want to develop a ajax based web application,
> is it possible to do it without servlet?
>
> What exactly I want to do is, I will have jsp pages and these pages
> will have forms and I want to put function of plain java class files
> as action to these forms. the client side JSP pages will interact with
> these java class files which will reside on my server through Ajax
> calls.
>

What do you actually mean by "client side JSP pages"? JSP pages must
also run on a container. So, essentially your JSP page and the java
classes will run in the same JVM. So, you can use them in any way you
like.

> So my question is, will my plain java classes will do the job done for
> handling all the server side logics?
>

Well... JSP pages are kind of a servlet actually. But you can say that
you can achieve what you want without writing any "pure" servlets.

Regards.
Reply all
Reply to author
Forward
0 new messages