0
votes
0answers
11 views

Spring form:select not defaulting to saved object

I have a form that is representing a Role object. This role object can have one System object, which is selected via a drop-down list (form:select). It works perfectly except for one little snag: ...
1
vote
1answer
15 views

AJAX Request Truncated by Spring MVC

I am attempting to send a large AJAX request of type POST through Spring MVC. The request contains data representing IDs of rows that are selected in a grid. The request looks something like this, ...
0
votes
0answers
9 views

Spring Security: How to authorize user for a given URL when using multiple `http` elements?

I have a spring MVC web application built in a modular fashion. Each module that is added to the website may define its own security elements (using http namespace in xml) for user authorization, this ...
0
votes
2answers
30 views

JQuery Ajax use success() callback for a null response

In my webapp users can add other users to their projects. A user can type in an email address and it will ask the server, via post, whether the user exists or not. If the user exists, it will send ...
0
votes
0answers
26 views

JSP to hashmap?

I have a dynamic HTML form built from a list : <form action="<c:url value="/categorize" />" method="POST"> <table> <c:forEach items="${listes}" var="liste"> ...
0
votes
0answers
22 views

is it possible to use DateFormatter & @DateTimeFormat together in spring mvc

I want to configure my web app to use the @DateTimeFormat on some fields and at the same time to fall back to a default DateFormatter ( configured in the conversionService) for the other date fields ...
0
votes
0answers
26 views

how to get the JSON data in Spring controller?

I know it is a simple one . But couldn't find a solution. My jQuery-ajax will be , var json = {"message":"Message123","time":"time123","name":"test123"} data : JSON.stringify(json), My Spring ...
0
votes
3answers
34 views

Timestamp comes with .0 at the end

I'm trying to put in some time stamps in a AnnotatedTimeLine (Google Chart), and its req. to be in the Datetime format. When I reformat (to Timestamp format) the string that I receive from the class, ...
0
votes
0answers
20 views

Using Decorators with Spring and Struts MVC

is it technically feasible to use decorators with Spring and Struts MVC togeather ? Description : I am creating a web application that is using Struts 1.2 and Spring MVC 3.X togeather. For some ...
0
votes
2answers
24 views

Turn off org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping detectHandlers

How to turn off org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping detectHandlers , I put spring 3 startup in debug mode, and I see all classes call 'detectHandlers' ...
0
votes
1answer
40 views

Spring MVC: bind an exception handler to particular method

Good day! I have a @Controller. Some of its methods throw the same exception, but I want to handle this exceptions in different way. Is there a way how to bind an @ExceptionHandler to a particular ...
0
votes
2answers
31 views

Spring MVC form validation: missing model attribute object

I'm having a strange problem handling form submission using Spring MVC. I'm using Spring 3.1.1 and I'm implementing a simple form to insert/edit an entity into my DB. My code is the following: JSP ...
0
votes
1answer
26 views

Spring custom editor

I've added custom property editor to spring handler. And it works with one of the property on jspx page, but not the others, for it, it just outputs toString of Money class. public void ...
0
votes
3answers
87 views

Getting error “java.io.IOException: Server returned HTTP response code: 406”, when calling servlet method

I am working on client-server application. I am getting error: "java.io.IOException: Server returned HTTP response code: 406" when requesting method from servlet, to get object with selected name. On ...
0
votes
2answers
41 views

Opening html page in spring MVC

I am using spring MVC project. For each request it returns jsp page. But for specific URL's it should return html page? What should I do for that?? Thanks in advance
0
votes
1answer
20 views

What does mappedInterceptors do in SimpleUrlHandlerMapping

I have an application running on SpringFramework version 3.0, it uses SimpleUrlHandlerMapping bean to map the requests to controllers. It has the following properties set [ order, mappings, ...
0
votes
2answers
41 views

Spring MVC Java multithreading: perform an SQL statement in the background

I'm fairly new to Java multithreading. So I was hoping someone with experience with this subject matter could give me an example that they've used successfully before. My Scenario : I have a Spring ...
0
votes
1answer
42 views

spring mvc form inputs

I m having a hard time working with array inputs for example how can I: Write the following html input using spring form tag: <input name="phone []"/> <input name="phone[]"/> I ...
1
vote
1answer
65 views

Spring MVC: Required Date parameter 'date' is not present

I'm writing a web application using Spring MVC. In my jsp is a form which content is send with Ajax to my controller. The simplified code for the mapped method looks: @RequestMapping(value = ...
0
votes
2answers
30 views

Configuring Spring MVC to map GET requests to one method in a controller and OPTIONS requests to another method

This would be pretty easy using annotations: @Controller public class MyController { @RequestMapping(value="/hitmycontroller", method= RequestMethod.OPTIONS) public static void ...
2
votes
1answer
38 views

Do Asynchronous Servlets allow greater concurrency?

What exactly is the advantage of asynchronous Servlets? I had assumed that it meant that a web-app container listener thread would be 'freed up' to handle another client request whilst a potentially ...
0
votes
2answers
30 views

MVC : Can a service depend on other service?

I am pretty new working with the MVC pattern (Spring MVC). I have a very simple question. Can a service have a dependency on another service? something like: @Service public class MyFirstService{ ...
0
votes
0answers
26 views

Spring form submit can not bind to subclass

I'm developing web application with spring. I have two bean classes. This is the super class. public class SuperClass{ protected String name; public SuperClass(){ } public ...
0
votes
2answers
40 views

Initialise the application in spring?

Now come directly to my point, In JSP I will do the initialization process of my application like, <%! public void jsp_init(){ //Initialise the domain server to create protocol ...
0
votes
1answer
22 views

Autopopulate multiselect with Hibernate Validator

I am using Hibernate Validator with Spring MVC and I have one problem with multiselect (in ManyToMany relation). My base class is Project. Project has, among others, fields: name (String), ...
0
votes
2answers
43 views

MongoDB find has the same speed with and without index

I use MongoTemplate from Spring to access a MongoDB. final Query query = new Query(Criteria.where("_id").exists(true)); query.with(new Sort(Direction.ASC, "FIRSTNAME", "LASTNAME", "EMAIL")); if ...
1
vote
1answer
18 views

How do you handle (or block) the sending of emails during integration testing within a Sping application?

Perhaps I'm not using the right search keywords but I cannot find anything on the subject of emails within integration tests. The word "mail" doesn't even appear once in the docs on Testing. I would ...
1
vote
1answer
25 views

Does curl remove new line charachters?

I'm posting a text file that contains a list on multiple lines to my service via curl. When I read the body of the request in my Spring MVC controller there are no new line characters and all text is ...
0
votes
0answers
20 views

Browser back button getting in to GET method of Spring MVC Controller instead of checking the cache

I am using Spring MVC 2.5. I have get and post methods for all the pages I have. @RequestMapping(value = "/offer", method = RequestMethod.GET) public ModelAndView getOffer(ModelMap model, ...
0
votes
2answers
44 views

Can't access jsp anymore after setting up Spring security

I recently added filters using spring security to spring mvc application wich worked before. The filters work great but spring can't find the .jsp files anymore. For instance, I have a jsp in ...
0
votes
3answers
48 views

Spring: How to Monitoring Quartz Job from controller

I have created two jobs in Spring project which run at two different time independent to each other. public class JobA extends QuartzJobBean { @Override protected void ...
0
votes
1answer
27 views

Spring Requestmapping with condition based on server-side parameter

I have a controller (Spring Controller) that will serve json to a mobile app. Various servers run our software. Not all will be configured to serve mobile requests. I've added a bean of class ...
0
votes
1answer
43 views

Spring MVC: static ResourceBundle vs MessageSource

This is continue of my previous question. I implemented the MessageSource as was suggested with @Autowired, but the point is that I want to get a messages (from code behind) with auto-detected locale ...
0
votes
2answers
44 views

SPRING MVC controller annotations vs xml

For new project, I was searching for which framework is to be used. I looked for the updates for existing frameworks. I found it very intresting about Spring MVS controller, that in the controller ...
1
vote
2answers
57 views

Push vs Pull Model in MVC

What is the difference between the push & pull models of MVC And which is the better of the two Is Struts2, Spring MVC Pull based
0
votes
0answers
48 views

server push technology in java? [closed]

I am doing a project in java with spring 3.x .I am having the server response which I have to push it in the client side. After some search I have found the list of server push technologies which is ...
0
votes
0answers
22 views

Spring Interceptor not working on Remote Server?

I have a dispatcher servlet configured as below :- <bean id="authServiceInterceptor" class="org.tcs.com.security.auth.UserAuthService"/> <mvc:interceptors> ...
0
votes
3answers
35 views

HTML Dropdown v/s autocomplete textbox

In my project(working on Spring and hibernate) i need to keep around 22 HTML dropdown for a form, each dropdown have around 30,000+ entries every dropdown fetching data from database because of this ...
0
votes
2answers
26 views

Modifying the path for serving static resources

How can I force static resources (HTML, CSS, JS) to be served under a different path than what is specified in the /webapp/ directory? Say I have a resource at the following path in my webapp: ...
-1
votes
1answer
54 views

How to pass List from JSP to Struts1.2 action class?

I am sending List as request parameter from Action class to JSP(form) and displaying this list using logic iterator. This list contains ActionForm objects which has boolean type(displaying as ...
1
vote
1answer
40 views

Tomcat Exception : HTTP Status 500

I am just trying to get started with Spring.Downloaded STS for Eclipse.Created a Spring MVC Template project.But when I run the helloworld web app,I get the following error message in my browser: ...
1
vote
0answers
39 views

Spring MVC launch multiple onsubmit thread every 5 minutes

First of all, I apologize for my english, I will try to do my best. Generaly, I find solutions to all my problems on this site, but this time, it seems that I'm the only one who encountered this ...
0
votes
3answers
75 views

Best way to achieve thread functionality in Spring

I am doing the chat project in Java with Spring 3.2. Normally in Java I can create a thread like this: public class Listener extends Thread{ public void run(){ while(true){ } ...
0
votes
0answers
47 views

Generating PDF Jasper report in a new window without a controller

In our application we use JasperReportsViewResolver to generate pdf reports. <bean id="jasperReportsViewResolver" ...
6
votes
2answers
85 views

Spring is picking an interface implementation out of many, on its own?

Friends below is my code, I am trying to run dependency Injection with Spring I have an interface, two class implementations of that interface. One bean.xml and One main method class. Interface ...
0
votes
1answer
17 views

spring mvc; test if redirect is relative

I want to test if my controller returns correct redirect (relative / context relative / absolute). How can I test it using spring's mockMVC? can I avoid integration tests with starting server 2 times ...
0
votes
0answers
27 views

How to call WebService method In JAVA(mvc spring) by AJAX -(i don't have url web method!)

i want to create a application by JAVA MVC Spring one of the problem is that how to call a web service method by ajax. i dont have address of the method. i just have a WSDL file. can anyone help me ...
0
votes
2answers
37 views

WARNING: No mapping found for HTTP request with URI [/leaveapp/] in DispatcherServlet with name 'spring'

Hey I am very new to Spring as well as Java Web Development. I have been banging my head on this since yesterday. I have written a Controller to handle my requests to my server. but whenever i try to ...
0
votes
1answer
25 views

Why is my advice/pointcut not running at all?

Both 'aop:aspectj-autoproxy' and 'mvc:annotation-driven' are present in the XML config. Both of these classes are defined as a bean inside of the same XML. Using Spring 3.2.3.RELEASE and Google App ...
0
votes
1answer
81 views

best way to synchronise method

I am working on a task management type application. So when someone completes the task the task creator emails a message with the task URL. I am using spring MVC to create this application. So now the ...

1 2 3 4 5 103
15 30 50 per page