Based on the Model-View-Controller (MVC) pattern, Spring MVC helps you build web-based applications that are flexible and decoupled from the underlying view technologies.

learn more… | top users | synonyms

0
votes
1answer
14 views

prevent scraping of web content in spring mvc

I'm working on a site containing real estate listings in Spring MVC. I would like to prevent scripts to steal the content by scraping the site. Does anyone have experience with techniques that can ...
0
votes
1answer
25 views

Spring MVC - Return static page

I'm struggling with trying to return a static web page from a spring MVC controller. I followed this tutorial: http://www.tutorialspoint.com/spring/spring_static_pages_example.htm and yet it still ...
0
votes
0answers
23 views

Spring MVC datasource issue

A beginner Spring 3 mvc project with mysql 5, tcServer an error ERROR: org.springframework.web.servlet.DispatcherServlet - Context initialization failed ...
0
votes
1answer
10 views

websphere 7 shows full error to customer on web app deployment/starting error

i have deployed my web application in WebSphere 7. this application is build using spring and jsp servlets. some times when it get deployed due to errors it shows the following attached image like ...
0
votes
1answer
24 views

Export beans through HttpInvoker based on beans of certain interface

We have beans implementing a interface, lets say MyServicesInterface which we can autowire in java as a list using @Autowired List{MyServicesInterface} myServices; I would like to do this in a ...
1
vote
1answer
20 views

Get maximum value for column in mongoDB

How to get maximum value for column in mongoDB using mongoTemplate object in spring
0
votes
1answer
10 views

Spring config XML file with context/jdbc/tx schemalocation

I want to use spring autowired with conjunction of jdbc for initial derby data, and jpa. Currently I try such a config file: <beans xmlns="http://www.springframework.org/schema/beans" ...
0
votes
1answer
14 views

Handle HTML and non-HTML representations in controller with HttpMessageConverters

I have a Spring MVC controller for a RESTful resource (ServiceDirectoryController), which I want to serve both HTML (web page) and non HTML (web service) representations. I want to use view names and ...
0
votes
0answers
12 views

Web caching and Spring WebMVC

Is this a duplicate of 11427666? Not quite. Our JSP pages take quite a long time to render (> 200ms) because of many many translated fragments and the resulting calls to the message source. I can ...
0
votes
1answer
12 views

how does internalresourceviewresolver work?

how does internalresourceviewresolver work, when my controller class does not return a modelandview object? how does it map to views? here is the code snippet from the controller class: ...
0
votes
1answer
17 views

How can I put in my Database in a Google Line chart?

I have this database with this table that I want to put in on my .jsp page that I coded in basic HTML. The project is in Spring mvc. CREATE TABLE `status` ( `idStatus` int(11) NOT NULL ...
0
votes
1answer
9 views

Spring and JSP: post all options in multiselect, not only selected ones

I've build a JSP page that contains a form with two multiple select objects and several buttons to send the elements from one to other. When the user has finished choosing the elements, clicks on a ...
-1
votes
1answer
10 views

How to configure spring mvc project which contains controller both annotated and configured

Can any one tell me How to configure spring mvc project which contains controller both annotated and configured?? I wanna configure static pages using ParametrizedViewController and rest of all using ...
0
votes
2answers
34 views

sessionFactory is null when accessing DAO

I am trying to integrate Spring+Hibernate4, but when I access my DAOs I get a nullPointerException on the sessionFactory object. This is my AbstractDao: @Repository public class ...
0
votes
2answers
34 views

How to explicitely close Spring context in a Spring web application?

I have a Spring webapp running in Tomcat. This app also needs to expose a service for remote access via RMI. I am using Spring's RmiServiceExporter to do this : <bean ...
0
votes
0answers
25 views

Spring webapp form field value always returns null

I'm pulling out what little hair I have left over this simple problem: I've built a Maven/Java7/Spring3/MySQL/Tomcat webapp that compiles and deploys. My credit card brand and credit card ...
0
votes
1answer
14 views

Error in inserting data in bean

I am trying to insert data in a table Order having following fields: id PK, cid FK, pid FK, I am trying to insert data in this order bean. Here is my JSP code: <form:form> ...
-4
votes
0answers
16 views

Spring 3.1 login example (for eclipse)

Provide me sample of code for Log in example using Spring 3.1 annotations for Eclipse tool.
1
vote
1answer
43 views

How to read multiple properties in Spring Controller?

I have two properties file in my application- app.properties level.user=username easyDeploy_general.properties user.update=Update I have defined them in spring-servlet.xml in below way <bean ...
0
votes
1answer
24 views

Spring Transactions not rolling back on Exception (Oracle JNDI datasource)

I am using annotation based transactions in a Spring MVC 3.1 project, and my transactions are not being rolled back when an exception is thrown. Here is my Service code @Service public class ...
0
votes
3answers
51 views

Spring MVC doesn't run when deployed on tomcat

I have a webapp that runs fine with maven: mvn tomcat:run But, when i deploy a jar with: mvn package and publish it on my tomcat-6.0.20 server, it doesn't run ... Trace: 13/06/2013 18:40:19 ...
0
votes
1answer
24 views

How would I make this bean in JavaConfig, I dont want to use XML with Spring anymore

I am working on a project and I need to set the following bean and property but I dont want to do it in XML.. I want to do it in JavaCofig style.. Can someone please show me how I would do this in ...
-1
votes
2answers
49 views

Spring 3.0 newbie start project not display value

I made simple helloworld in Netbeans 7.3. But I have problem with load jsp with value from controller. I partially inspire instructions from http://www.tutorialspoint.com/spring/spring_tutorial.pdf ...
0
votes
2answers
41 views

@Validate unique username in spring

Let assume that I have form where i might submit username(@NaturalId) and password for new user. I would like to add user with unique username. How @Valid this via addnotations, and if username is ...
0
votes
2answers
35 views

Why is my email getting cut off with Spring MVC and REST?

Can someone please tell me why my email address is getting cut.. for testing we use email address like [email protected] I have the following code: @RequestMapping(value = "/profilenumber/{email}", ...
0
votes
1answer
20 views

Spring MultiAction Controller using XML alone

Is anyone having idea on how I can achieve multiaction controller in using XML config alone.Using annotations, it works perfectly.Just wanted to know, is it possible using xml config alone Thanks
0
votes
1answer
24 views

what would be the regex pattern for this uri segment?

I have a URI segment /incoming/article1271748.ece5/ALTERNATES/article_main/torm-500.jpg And I need to exclude it using like this <intercept-url pattern="/**/**jpg" access="permitAll"/> ...
1
vote
0answers
36 views

Why do SessionAttributes get cleared on GET redirect?

For simplicity's sake, these code snippets will be shortened. The purpose of this is to take a GET parameter, set it on the session, and redirect back to the GET with the url parameter removed. ...
0
votes
0answers
16 views

replace one class in bean property list in spring

I am working in broadleaf which is based on spring-mvc. there are 3-4 blCustomPersistenceHandlers bean definition in different xml file based on project module. <bean ...
1
vote
1answer
27 views

Can I render Thymeleaf templates manually from a String?

I have an upcoming project which has the following requirements: Very simple to use (end-users will be expected to use it) Java based, the project will be written in Spring3 String based loading ...
1
vote
3answers
30 views

Ajax request, should it be POST or PUT

I have create a Spring mvc web app. The app makes a few calls to the controller, these calls are close/open/end game. I make these calls using ajax.. so i can handle a responce on the top of the ...
1
vote
1answer
29 views

Unable to persist language specific characters into the database column of xml datatype

I need to save language specific characters in a column of xml datatype, because XML is the format that I want it to be when I retrieve it. Just before persisting, I see the Russian characters in the ...
0
votes
0answers
19 views

Override Generic Controller

I have the following function in my abstract controller public abstract class GenericController<T extends PersistentObject> { ... ... ... @RequestMapping(value = ...
0
votes
0answers
18 views

How do I disable caching of JSP files when using Spring Tiles?

I'm using Spring Tiles. I have following as my config: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" ...
0
votes
0answers
19 views

How to block Multiple Click in spring service class method?

The below is my requirement : There is a table search result screen in which an user select object through checkbox and clicks on Done. On click of Done it is calling one method from service class ...
1
vote
0answers
23 views

How to make an AJAX call within Spring MVC/WebFlow project

I would like to make an AJAX call to a Spring MVC Controller from a view within a SWF flow. I need to do this within the portlet container rather than a servlet sitting outside the portlet session. I ...
0
votes
1answer
22 views

log4j 1.2 configuration issue with Spring mvc

I am stuck. I have a configuration issue in setting up log4j with Spring MVC. Getting the below error. log4j:WARN No appenders could be found for logger ...
0
votes
1answer
14 views

Adjusting resteasy.servlet.mapping.prefix inside SpringMVC context

When I used Standalone RESTeasy through org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher I adjusted <context-param> ...
1
vote
2answers
36 views

Groovy mixin on Spring-MVC controller

I'm trying to use Groovy mixin transformation on a spring-mvc controller class but Spring does not pickup the request mapping from the mixed in class. class Reporter { @RequestMapping("report") ...
0
votes
1answer
20 views

Override error messages in BindingResult

I am using Spring MVC 2.5 . I have fields where numbers should only be the allowed in put. And I get the exact error message on my UI I was looking for . Something like Failed to convert property ...
1
vote
1answer
37 views

NullPointer on Multipartfile with Spring MVC

It seems my case is simple, so I'm guessing the problem is stupid. Nonetheless...I don't see it. I'm trying to accept the upload of a collection of files and have been looking at this article as a ...
0
votes
1answer
21 views

Spring MVC and hibernate combining models

I'm developing a web application using the Spring framework along with Hibernate as the ORM and DAO. I have two Models Class1 and Class2. Which hibernate maps to Database tables Table1 and Table2 ...
0
votes
0answers
30 views

BindingResult doesn't work - Spring Test

I have my controller: @RequestMapping(value = "/addtimesheet", method = RequestMethod.POST) public String addTimeSheet(@ModelAttribute("timesheet")TimeSheet timeSheet, ...
1
vote
1answer
24 views

How to bind Maps of Maps, or some other way to structure the data

I am not even sure how to go about asking this, but I will try to give it a shot. I have an existing application that I support that consists of a dynamically generated form of a bunch of values. ...
0
votes
3answers
31 views

Why am I getting org.codehaus.jackson.map.JsonMappingException: No suitable constructor found for type

Can someone please tell me Why am I getting org.codehaus.jackson.map.JsonMappingException: No suitable constructor found for type error? Here is my call: try { String jsonreturn ...
0
votes
1answer
30 views

Spring MVC 3 ModelAndView: controller method to return several views

my requirement is to return view according to the selected value (select form) view.jsp: <form method="post" action="/aaa"> <select id="attr1" name="attr1"> ...
0
votes
1answer
26 views

Twitter Bootstrap Template with Spring MVC

I'm trying to setup twitter bootstrap with spring mvc. I moved all the bootstrap (bootstrap.css and bootstrap-responsive.css) into the resource folder and linked it to the jspx page. I copied/pasted ...
0
votes
1answer
24 views

Multiple spring project on server can exchange data between them

I have two spring project deployed on same server, is there any way to access the object of one application to other application
1
vote
1answer
22 views

Java Webapp Cannot Find Local Server Directory

I have a Spring MVC 3.1 webapp running on Tomcat 5.5 on a CentOS server. I have a controller that checks for the existence of a file located on a network share, which is mounted on the server ...
1
vote
1answer
38 views

Return JSON Data with Springs MVC which way is better and why

Return JSON Data with Springs MVC which way is better and why? Should I sent back ResponseEntity or just the Object? @RequestMapping(value = "/", method = RequestMethod.GET) @ResponseBody public User ...

1 2 3 4 5 218
15 30 50 per page