spring-mvc

GWT multi modules for seperate HTML pages?

Greetings all, I am quite new to GWT and going to develop the UI for user-management application using GWT. I am planing to use existing module which created using Spring/Hibernate.I figure out how to integrate GWT with Spring but I am not sure how to design the layout. I want two pages : 1) User registration page (want to embedd GWT wi...

Cachesecond in Spring module

I am currently new to web programming and is trying out to learn spring framework. I have basic understanding on Servlets and JSP. Currently, I am confused on the property cacheSecond on the Spring Controller. Can anybody point me to resource where I could understand below concepts? I made some reading on browser caching but I am not...

Difference in regex email validation between jQuery plugin and org.springmodules.validation

Greetings! I have a Spring app and a form getting validated on the back and front ends. On the back end I'm using annotation based validation for the EMAIL field with help from org.springmodules.validation. So far so good. On the front end I decided to use the jQuery Form Validation plugin and discovered that front and back validation a...

Spring login need custom msg on screen

Hi, I want to display custom message which will be fetched from database when user try to login on login page. This message can be changed by administrator. So always need to be fetched from database. We are using acegi spring. Do anybody know how to do this? Jaydeep. ...

Tomcat not showing Spring Context initialization errors when running from Eclipse WTP

Hi all, Im working with Eclipse Galileo (WTP), Spring 2.5.6-SEC01 and Apache Tomcat 5.5.28. When I run my application from Eclipse, I'm able to see Tomcat standard output and error from the console view. When there is a Spring initialization error (ex: malformed spring XML) I'm not able to see the error message or the stacktrace at th...

Passing parameters from trinidad controls to the flow

Hi, I am new to JSF, Facelets, SWF and Trinidad technologies, and I having a problem submitting parameters from the <tr:commandButton> on a xhtml page to the flow (using the <f:param>). The interesting thing is when I use <h:commanButton> instead of the <tr:commandButton>, everything works fine. The reason I need to use trinidad button ...

Speed issues with Google App Engine + Spring MVC + Annotations

Hello, I am developing an application on GAE with spring MVC and using annotations. The application take a long time to load the first time and then it behaves well as long as I access the application. But then when I leave the application for a minute and then I access it again it is taking long time. I have read ppl having similar is...

Spring MVC form:options tag not wiring into my objects Id?

I am trying to display my command objects collection field inside a list box. Inside said collection is a field, id and name. I want use the id as the html option value and the name as the option text. See the code below; <form:select id="customCollection" path="customCollection" size="10"> <form:options items="${command.customColle...

how to map "a-b" query to a command object in Spring MVC

Hello, I used to use "@RequestParam("a-b") String foo" to receive the "a-b" parameter from http query. now I want to switch to Command Object, but I don't how to receive this param, I tried following 4 forms "ab", "aB", "a_b", "a_B", but neither works, for example, the following code will result as URL: http://localhost:8080/test1?a-b...

Replacing EL in JSP with SpEL from Spring 3.0

Tired of old EL in JSP not being able to invoke methods on beans etc. Can I use SpEL from Spring 3.0 in my JSP:s? ...

How to protect outside access?

Hi, How protect resouces from outside access in the Web application using jsp - spring ? e.g. http://localhost:8080/appsname/images/ here showing list of files here i dont want to users to direct access to my image folder.if any one trying to do then redirect to error page or home page. Thanks ...

problem in Spring session scope bean with AOP

Hello, I want to inject currentUser instance in HomeController class. so for every request, HomeController will have currentUser object. My configuration: <bean id="homeController" class="com.xxxxx.actions.HomeController"> <property name="serviceExecutor" ref="serviceExecutorApi"/> <property name="currentUser" ref="currentUser"...

Will Spring hold contents in memory or stores in the disk ?

When a file say 100 MB size is uploaded from browser will Spring hold whole data in memory or stores in the disk temporarily. After going through Spring doc I know how to set a temp dir but I want to know what will happen if I don't mention that. Am having following declaration : <bean id="multipartResolver" class="org.springframework....

Is is possible to use Spring MVC with Groovy or Scala?

I wanted to know if it was possible to use Spring MVC with a dynamic language like Groovy or Scala. Or can Groovy only be run on Grails? Also if it is possible, is this something which people try often, or do they just stick to the framework traditionally used? ...

Componentization of web project

I have been working on spring-mvc for last 3 months and its been lot productive compared to my earlier work. I kept adding lot of featuers in the web application and now am stuck with the simple problem. All the features I have added wont be used in all deployments and I need to figure out a way to exclude some features at the time of d...

Spring MVC New getting started tutorial

In the new Spring reference documentation that is located at http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/new-in-3.html#new-in-3-new-tutorial there is a link to the documentation page where we are supposed to find new getting started tutorial for Spring MVC. But no such tutorial can be found at that pa...

Spring tutorial on Session Management

Hi All, I want to learn how session management is being done in Spring web MVC. Do you know any free tutorial on how is it being done? I am thinking of similar sample applicatin such as BookStore or Shopping cart applications that I have done using basic servlets and JSP. Kindly advise me how is it done and make it done the proper way...

Modify HttpServletRequest before any HandlerMapping?

The problem I am trying to solve is that I want to check all incoming GET urls against a database. If the the url exist in the database it shall be passed to a certein controller. I'm using Spring 3.0. First I tried to make an interceptor and add that to DefaultAnnotationsHandlerMapping. Turns out i couldn't modify the url in preHandle(...

dispatcher servlet not finding url rewritten in filter

I have Spring 3.0 setup with annotated controllers and it is finding my controller and executing it as it should when I send an url to it from a browser . But when rewriting the url with a filter to the exact same that works in the browser I get No mapping found for HTTP request with URI [/test/lookup]. The filter is loaded by a org.spri...

how to config many DispatcherServlet in spring 3 mvc?

i'm using spring 3 recently. i want to use REST. the problem is ,i want to use many different path.like notice/* ,user/* etc. i know how to config one . <servlet> <servlet-name>notice</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet>...