Sagewire Logo

How to avoid using [code][/code] standard action without using MVC framework? What good MVC framework outthere?

2 Message(s) by 2 Author(s) originally posted in java developer


From: tungchau81 Date:   Tuesday, September 14, 2004
Hi,
I've been using <jsp:forward > alot in my application for
authentication to forward back to login page if the user did not log in
or to forward to a new or parent page after hitting Submit button on a
current page.

I read somewhere that we shouldn't 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've 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


From: tabrez19_i Date:   Thursday, September 16, 2004
wrote in message
Hi,
I've been using <jsp:forward> alot in my application for
authentication to forward back to login page if the user did not log in
or to forward to a new or parent page after hitting Submit button on a
current page.
I read somewhere that we shouldn't 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've 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



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 do not need to forward in JSPs. When the
complexity of your web application increases, the code you've to
write to support MVC architecture may become large and at that time
you may consider using something like Jakarta Struts.

tabrez



Next Message: User authentication



Programming | Sports | Autos

copyright 2006
Valid XHTML 1.0 Transitional