Background
I am developing an application (with Spring MVC) with its base path as:
http://localhost:8080/myapplication/
I have a stylesheet /css/style.css that I am trying to refer with absolute path in a JSP as:
<link rel="stylesheet" href="/css/style.css" type="text/css" media="screen, projection">
Problem
The stylesheet never ...
Hello All,
I want to have a controller that can handle multiple requests. Like a UserController handling all the addUser, deleteUser, updateUser and viewUser functionality. I know that MultiActionController can be used to bundle multiple similar request into one controller. But the functionalities like addUser and updateUser involves us...
I'm using Spring's form tag library in a Spring MVC application that I am developing. The company I am working for has implemented some company-wide policies based on the definition of custom attributes for certain tags. For instance, by default (though the inclusion of a standard javascript file) all tags have their values automaticall...
I wonder if there are any good practices for addressing Spring controllers in JSP.
Suppose I have controller:
@Controller
class FooController {
// Don't bother about semantic of this query right now
@RequestMapping("/search/{applicationId}")
public String handleSearch(@PathVariable String applicationId) {
[...]
}
}
Of co...
I'm learning Spring MVC at the moment and comparing it to ASP .NET MVC. Is there a way to use partial views in java (like .ascx partials in ASP .NET MVC), so i can associate it with action method of some controller and pass model data to it.
...
hi,
I'm currently migrating a project that is using Spring MVC without annotations to Spring MVC with annotations. This is causing less problems than expected but I did come across one issue.
In my project I have set up an access mechanisme. Whether or not a User has access to a certain view depends on more than just the role of the Us...
Hello All,
I'm new to Spring MVC and trying out a simple project.It will contain a simple adding, viewing, updating and deleting user work flows. It will have login page and once authenticated the user will be taken to a welcome screen which will have links to add, view, update and delete users. Clicking on any of the links will take to...
I have a problem with the order of rendering tiles. The menu gets rendered first and then the body of our webpage gets rendered. Each tile has it`s own controller that handles everything that tile needs to do. There are two forms. One in the menu and one in the body. Each one changes something in the menu and in the body. The problem is ...
We have an application which communicates via REST requests made by clients.
The REST requests contain "region name" and a "ID" as parameters
So, a request would look something like this (for a DELETE)
http://host:port/regionnameID
These REST requests between regions in a federation are properly URL encoded
I find that th...
When you have a controller that does logic with services and DAO's that may throw an unrecoverable exception, what is the best practice in dealing with those method calls?
Currently an app I'm working on has very lengthy try catch methods that simply err.out exception messages, this doesn't seem very robust and I think that this code sm...
I am using the Spring MVC for a project, and I am using the Spring DispatcherServlet to map the request's coming into the application to the controllers written elsewhere. I am looking for a way to have a default handler ( a catch all handler) if the request doesn't map to any of the exisiting controller-view maps. This currently shows ...
I'm trying to figure out how to "preserve" the BindingResult so it can be used in a subsequent GET via the Spring <form:errors> tag. The reason I want to do this is because of Google App Engine's SSL limitations. I have a form which is displayed via HTTP and the post is to an HTTPS URL. If I only forward rather than redirect then the use...
Please tell me whether it is possible to use both SimpleUrlHandlerMapping and AnnotationMapping in spring mvc.
Thank you.
...
I use Spring MVC 3.0 and JSP. I have an object:
public class ObjectWrapper {
private List<SomeTO> someTOs;
}
Class SomeTO contains fields like name and id. How can I create a form on which an user can dynamically add to list of SomeTO? I googled it and found something about spring:bind, but it's unclear for me.
...
HI,
I want to keep watermark into my video. How can i implement it using Directshow.
Is it possible to create a filter for this. i want to fix watermark at the time of saving video to my machine.
PLease give some suggestion and help
...
Hi
Having two forms, each in it's own jQuery UI tab, how can I post the form in the deselected tab when clicking a new tab?
This I need to do to maintain state at the server side when the user navigates between tabs.
I have looked into something like
$('#tab-container-id').bind('tabsselect', function(event, ui) {
...
});
but ha...
Hi everyone, I got a problem making GXT and my Spring SimpleFormServlet work together.
From the client point, I use a Dialogue like the one in gxt showcase. There are two fields, one for file name (called name) and the other one for the upload (called upload). I checked using a firefox plugin called httpfox and everything is sent correc...
I have looked at Spring MVC a few times briefly, and got the basic ideas. However whenever I look closely it seems to require you already know a whole load of 'core Spring'. The book I have for instance has a few hundred pages before it gets onto Spring MVC... which seems a lot to wade through. I'm used to being able to jump in, but ther...
I have a Spring MVC application trying to use a rich domain model, with the following mapping in the Controller class:
@RequestMapping(value = "/entity", method = RequestMethod.POST)
public String create(@Valid Entity entity, BindingResult result, ModelMap modelMap) {
if (entity== null) throw new IllegalArgumentExceptio...
Hi,
I have the following problem. I need to export a PDF in a controller
The code below, where I return a View, works as expected.
@RequestMapping(method = RequestMethod.GET)
public View exportReport(
@RequestParam(value = "userName", required = true) String userName,
@RequestParam(value = "startDate", req...