I'm new to the web programming world, and I'm trying to learn about various Java MVC frameworks available. Through my research, I came across Spring MVC and Grails.
My question is: which one is better for developing enterprise web applications, or is there another option I haven't run across yet?
Important considerations:
Must be su...
I'm trying to write a simple RPG. So far, each time I try to start it instantly becomes a mess and I don't know how to organize anything. So I'm starting over, trying to prototype a new structure that is basically the MVC framework. My app starts execution in the Controller, where it will create the View and Model. Then it will enter the...
I'm sure this is a common operation, but I'm having a hard time getting my head around a solution. It's the problem of two <select> on a web page where one depends on the other for its list of possible values.
I have a dropdown list containing substatus codes on a web page whose list of possible values depends upon the selection in ano...
I would like to have a clarification in MVC Architecture . While going through some of the documents, I could see that the following relationships are established between Model-View and Controller. Please help me in understanding how this is possible.
View queries model’s state
Model passes the state information to View
...
i changed my global.asax to register routes like this:
Public Class MvcApplication
Inherits System.Web.HttpApplication
Shared Sub RegisterRoutes(ByVal routes As RouteCollection)
routes.IgnoreRoute("{resource}.axd/{*pathInfo}")
' MapRoute takes the following parameters, in order:
' (1) Route name
...
Hello! I'm currently diving into web development after ten years of desktop development and I'm trying to get a high level grasp on the many concepts I'm learning. The two most recent concepts I've been reading up on are MVC (specifically ASP.NET MVC) and AJAX. I understand MVC is a pattern used to separate logic and data and AJAX is ...
In Global.asax what does
routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); signify?
...
In my application, I would like a modal view to present itself when the app starts up and there is no wifi. I have code like this in the applicationDidFinishLaunching:
UIViewController *modalViewController = [[UIViewController alloc] initWithNibName:@"ModalDisconnect" bundle:nil];
[[self tabBarController] presentModalViewController:m...
I'm not positive I have the right architecture for this problem. Let's say I have a Person object that has 1 or more Attribute objects associated with it. For the interface, I have a list of Person objects, a Person view, and another control with tab pages that represent each Attribute object associated with that person. How would an ...
We are building a fairly large HR application in ASP.NET MVC, and so far our controllers are becoming quite large. For example, we have an Employee controller, and all employee views are included (Personal info, employee deductions, dependents, etc). Each of these views might have multiple actions or subviews (e.g. CRUD). Each action ...
In asp.net MVC dependancy injection with controllers is simple and straightforward. Now, I'd like to remove most of the logic from views by using helpers. The problem is that these helpers use some of the objects that are injected.
Let me write an example:
public interface ISessionData
{
List<string> IdList {get;}
}
public MyContro...
Hi... is it posible to have a true Model Layer in PHP like in Ruby on Rails? With Zend Framework you can create a Model but this is a class. As I know you have to write all the logic by myself.
Solutions?
...
Hi,
I'm using the OutputCache attribute to cache my action's html output at the server-side.
Fine, it works, but now I have a situation where the content changes rarely, but when it does, it's critical for the user to see the new data the very next request.
So, is there a way to abort the page cache duration programatically?
Thanks ...
I'm exploring my options for creating a web app that will play instructional videos (among other things). I want to use silverlight for the video player and for WPF. But I would also like to offer a non-silverlight version of the site for those who may not want to download silverlight their first time visiting. So I'm thinking I can u...
I'd like to know where the controller gets the user input from (to feed the model with). Because input media is strongly related to the user shouldn't the view be aware of the concrete way to get the user's data? But how can I separate the controller from the view then? Is it possible to make both completely independent of each other as ...
Is there a way to edit the Request.Form before the action method binds to the parameters? I already have a reflection call to enable editing of Request.Form. I just can't find a point of extensibilty where I can alter it before binding occurs.
UPDATE: So it looks like I was editing the Request.Form and didn't realize it. I was verif...
Hello,
I am relatively new to CakePHP, and I am writing a CakePHP application which currently has an Author model and a Book model. Author and Book both have a many-to-many relationship.
However, I would like to additionally, for every author-book relationship, have a corresponding link to that author's blog where they reflect upon thei...
I'm trying to implement route chaining for an admin panel on a Zend Framework site that I am working on. I'm using the following configuration file in hopes that the "admin" route routes with "/admin" and that the "adminLogin" route routes with "/admin/login".
<?xml version="1.0" encoding="UTF-8"?>
<routes>
<admin>
<route>admi...
We have a fairly complex application that was previously using WebForms. We are in the process of rewriting bits of it from scratch using MVC. Our application is comprised of a number of widgets, that together make up the functionality of the application.
In WebForms, we used UserControls. Each UserControl would register its CSS and Jav...
I have a form which is part of a partial view and I need to submit it to a different location based on the context of the view containing the form. I can't use Html.BeginForm because the form has a multipart/form-data enctype so having the action filled in automatically is out the door.
Is there a simple variable I can call to fill in t...