mvc

Are there any view engines for ASP MVC that are 'designable'?

Here's my problem: I am disturbed by the "impedance mismatch" between what graphic/web designers actually produce, and what is needed by the standard ASP MVC view engine. Basically there is no way to visually design a view i.e. the output of an action. No WYSIWIG designer. The only way to go from a static HTML design to an MVC app is b...

IIS 7.5 MVC requires authentication to get static files

I've just installed windows 7 and i'm trying to get my mvc app that was working in IIS 7 working in IIS 7.5. The problem I have is that when it tries to load any static files (css, gif, jpg...) it requires authentication. So if i try to go to http://mydomain.com/Content/site.css It redirects to http://mydomain.com/Account/LogIn?Re...

JQGrid not reaching MVC controller

Using FireBug I know the url is http://localhost:21962/Home/DynamicGridData/?nd=1250169669898&%5Fsearch=false&rows=10&page=1&sidx=Id&sord=desc It is not making it to my HomeController. Here are the actions I have tried to make receive the JQGrid call public ActionResult DynamicGridData(long nd, bool search, int row...

IPhone - After dismissing Modal View Controller - gap is left at top of page

When starting the app, if the user doesn't have login information stored, I want to display a modal view controller to force the entry of this information. I found through trial and error, that this had to occur in viewDidAppear of my root view controller. I tried to put it in viewDidLoad and viewWillAppear, but those didn't work unles...

UpdateModel in asp.net MVC to bind arrays?

I have the following code: var obj = new { site = new int[]{} }; UpdateModel(obj, new string[] {"site"}, form.ToValueProvider()); Now when debugging, the form.ToValueProvider() object has a site key in there with some sites that get populated on postback (from a checkbox form with each checkbox...

How do you handle/log errors in a Java MVC web application?

I'm currently using a very simple MVC framework, Bear Bibeault's Front Man, which, for those not familiar, is pretty similar to Spring MVC (in concept at least). One of the issues I'm having is how to handle exceptions properly. I am currently doing something like this, try { //do something }catch (Exception ex) { logger.error(...

What Are the Benefits of Struts

I recently added Struts 1.3 to my application on Tomcat. Here are my observations, MVC. Servlet/JSP does this fine for me, where JSP is the view and servlet is the controller. I don't see any benefit to get the mapping from an XML file since our mapping is very static. Action Form. I can see some benefits of action form but not huge. T...

Translating JSON into custom dijit objects

I am looking for an example where JSON constructed from the server side is used to represent objects that are then translated into customized widgets in dojo. The JSON would have to be very specific in its structure, so it would not be a very general solution. Could someone point me to an example of this. It would essentially be the ...

PHP MVC - how to pass data between different layers - objects or arrays

I always come to the same problem when implementing new data object that some web site will use. It seem to me naturaly to fill the object ... object: news news subobjects: mediaItems, user, category I usualy implement lazy loading of associated objects (lists of objects) and also have a static method to fill the news object data, med...

Problem with EDM in ASP.NET MVC

Hello, I have a question that is pretty similar to this question: http://stackoverflow.com/questions/899734/strongly-typed-asp-net-mvc-with-entity-framework but the solutions for that question don't work for me. Let me start by saying that I don't know a great deal about the subject I am asking about. I have the following code [Acce...

Hiding a view servlet in a Java MVC web application?

I'm using a very simple MVC framework, Bear Bibeault's Front Man, which, for those not familiar, is pretty similar to Spring MVC (in concept at least). For most cases, I am using a JSP as my view. To prevent direct access to the view, I place the JSP files inside the WEB-INF directory. However, in some cases I need to use a servlet to ...

ASP.NET MVC / Castle Windsor / IIS6 / Modified MapRoute {controller}.aspx

Hi, I've written a web application with ASP.NET MVC. The default ControllerFactory has been replaced with Castle Windsor's Controller ControllerBuilder.Current.SetControllerFactory(new WindsorControllerFactory()); The problem is that I'm using shared hosting which runs II6 so in order to get the MVC working I've had to replace the de...

What does an MVC Delphi with WebBroser and HTML application look like?

I was confused when I first read Christer Fahlgren's comment on an answer on this question, where he states you would benifit from using 'MVC style design' when starting an application that uses both Delphi and a WebBrowser component on a form, and HTML with CSS and JavaScript to create a fancy mix of flexible UI and dynamically updating...

Url.RouteUrl returns null

I'm buiding a UrlHelper for a route as in best practices the problem is that the returned value is always null when debugging in found that Url.RouteUrl("x") return null Url.RouteCollection["X"] return Route i'm trying to do : public static string Category(this UrlHelper helper, int Id, string category) { return helper.Route...

Introducing Spring MVC

I'd like to introduce Spring MVC to an application that has up till now used simple direct access to JSP files i.e www.example.com/login.jsp which contains the business logic and presentation details. I'd like to strip out the business logic and keep only the presentation in the JSP. To do this, I've moved the jsp file from webapp/login...

Html Helpers Available in ASP.NET MVC controller?

I want to use the Html Helper class to build, for example, an Html.ActionLink from within a controller action. I don't see it available from within controller actions. What am I missing? ...

Using RewritePath from an MVC controller action method

I am working in a hybrid MVC/Classical ASP.NET web application and I have to rewrite a URL at the controller level (because at a later stage I will be using a PageView, but for now it would be using the classical ASP.NET one), similar to this: public void Index(int Id) { HttpContext.Current.RewritePath("~/classic-aspnet-page.aspx?id="...

MVC in c# win. form application

Hi all, I 'am building a small windows form application. I have a View - a simple form that has some functionality in it. a Controller - a class that will react to loading, saving, getting data from the model and prepare it form the view etc. a Model - a class that will get and save data to DB or file. The controller is creating a fo...

LINQ, ASP.net mvc and joins

Hi, I am making an application usign MVC and LINQ. I have a controller called home which does this: Dim notes = From x In dal.tbl_notes _ Join y In dal.tbl_note_users On y.user_id Equals x.note_id _ Select x.note, x.datestamp, y.is_owner, y.note_user_id ViewData("notes") = notes Return View(...

Is there any dependency between view and a model ?

Normally in the MVC Pattern, when a user clicks on a page the request would be sent ,then controller would handle the request ,then process it using the model and route it to the appropriate view. I have read the post about the passive model and active model,but is there a possibility where the view directly interacts with the model, wo...