Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to avoid using <jsp:forward> standard action without using MVC framework? What good MVC framework outthere?

20 views
Skip to first unread message

Tung Chau

unread,
Sep 14, 2004, 7:04:42 PM9/14/04
to
Hi,
I have been using <jsp:forward> alot in my application for
authentication to forward back to login page if the user didn't log in
or to forward to a new or parent page after hitting Submit button on a
current page.

I read somewhere that we should not use <jsp:forward> standard action
in JSP since it makes page behavior hard to comprehend. Forwarding
violates the principle that a JSP is a view.

Does a MVC framework will help me avoid using <jsp:forward> ? And how?
I have never used any MVC framework. What is a good one out there? I
had a brief look at Struts before and it seemed so complicated. I
hesitated to use it because it mite double the development time and I
am not sure if Struts will last long. Which framework should I use
then?

Is there anyway to avoid using <jsp:forward> without using any
existing MVC framework. My application is not using any framework,
only JSP, JavaBean models using Hibernate, no controlling Servlet at
all. I am still struggling for a better design to make the application
more scalable, reusable.
Any help is appreciated.
Tung Chau

Tabrez Iqbal

unread,
Sep 16, 2004, 9:12:41 AM9/16/04
to
tungc...@yahoo.com (Tung Chau) wrote in message news:<2580601f.04091...@posting.google.com>...

you can create MVC based web application even with out using a
specific framework(like struts). Just create a servlet which handles
all the requests and forwards the request to some JSP after doing the
authentication etc. You don't need to forward in JSPs. When the
complexity of your web application increases, the code you have to
write to support MVC architecture may become large and at that time
you may consider using something like Jakarta Struts.

tabrez

0 new messages