Handling the user visiting the V in MVC first

Jeffrey.Rodriguez_at_gmail.com
Date: 02/28/05


Date: 28 Feb 2005 10:48:21 -0800

While I am new to Java, I believe I understand how MVC works and how to
program for it. However, what I'm not sure of is what to do if a user
goes directly to the JSP page (the view).

Is there a standard way of handling this? My thought would be to test
if the model components are there, if not, forward to the controller to
setup the model, then forward BACK to the original view jsp page.

Is there an easy way to do this with a minimum amount of code, or am I
going about it completely wrong?



Relevant Pages

  • Re: Handling the user visiting the V in MVC first
    ... > While I am new to Java, I believe I understand how MVC works and how to ... > if the model components are there, if not, forward to the controller to ... then forward BACK to the original view jsp page. ... This option doesn't work with Java Server Faces though. ...
    (comp.lang.java.programmer)
  • Re: Java for web development.
    ... I am a PHP programmer by trade and I am looking to learn Java for web ... using MVC in Eclipse...now I have some knowladge of Java having done it ... Here's a good book for JSP and Servlets ...
    (comp.lang.java.help)
  • Java / J2EE Interview questions
    ... Core Java and OOP's Interview questions ... Servlets / JSP Interview questions ... What’s an interface and how will you go about implementing an ... Servlets and JSP ...
    (comp.lang.java.gui)
  • Re: Discussion: PHP versus JSP
    ... We used MySQL, Tomcat, and JSP. ... > re-doing the app using PHP. ... JSP is an attempt from the Java camp to achieve an ASP/PHP like programming ...
    (comp.lang.java)
  • Re: jsp client for axis2 webservice
    ... Read the Java EE tutorial on the Sun web site. ... to call logic from a JSP. ... all the JSP does is POST an HTTP request to the application ... calling one of the stub methods that you have. ...
    (comp.lang.java.programmer)