have you tried
public void removeBeanDefinition(String beanName) instead of destroyBean.
Type: Posts; User: ozGuy; Keyword(s):
have you tried
public void removeBeanDefinition(String beanName) instead of destroyBean.
set diskPersistent=true on the NdgsList cache.
I want to map a Annotated Controller using full path (including servlet context), this are the core configs that I have to achieve this:
This is the dispatcher servlet mapping in web.xml
...
Your Form or Command Object needs to define the properties which spring will bind when request is received by the controller.
Example:
<code>
public class MyFormObject{
private MultipartFile...
Yes, with injections there 2 different ways of doing, setters, constructors and for both the accessor methods needs to be public..
public void setName(String name); from the stacktrace the spel...
Your setter method for the name is not public or your setter method is not following Java bean convention.
If neither of the above then please post the stacktrace and sourcecode for the classes
Any reason why you don't want to use the argument in the method?
@Before("@annotation(validation)")
public void interceptValidation(Validation validation){
...
Look at the API for HttpServletRequest. It has a method to getUserPrincipal() which will be non null value if users are authenticated.
There might be other ways also depending on the security...
If you are using JQuery you can serialize the form and send this form data with AJAX request.
With jQuery you can easily attach click events to buttons and run ajax calls., there are plenty of...
Hi All,
I am about to start a new project and I am undecided on how to link my presentation layer with Domain objects.
Traditionally I have used DTO which means for each Domain Object, there...
Hi
Need bit of help with JdbcTemplate.
I have have a sql query something like Selct * from bla where id in ( ? )
? needs to be replaced with list of Integers with i store in an ArrayList.
...
can you post your web.xml file.
Hi
I just tried and any bean that implements the ServletContextAware interface will get called by Spring for A Web application.
Do you have ...
Hi
I am using JdbcTempleate.batchUpdate method which needs a BatchPreparedStatementSetter object.
I have a Map instance which holds the data that i need to insert/update. Below is a snippet of...
Hi
Cant you use ContextLoadListener class ( or some extension of COntextLoadListener ) or even ServletContextAware.
ServletContextAware will be called after the application context has been...
Hi
I am facing the similar problem with Jboss and books portlet.
When i deploy the portlets on Jobss and go to the Jboss portal page, i don't see the mode or book portlet ?
However, helloworld...
Hi
Has anyone been able to make the PetPortal (which is included in the Spring 2 distribution)example work on Jboss.
I only managed to get the "mode" portlet work.
All other portlets that have...
Hi
I am just not very clear on what sort of validations to put in the Spring Validators classes.
I have a domain objects which contains domain logic validation. I believe knowledge about domain...
Hi
Just bit confused at this stage. Can someone please point me in the right direction.
I need to write some portal pages and since i been using Spring MVC, i am thinking of using Spring...
Umm... Just not very clear as to how the concurrent request will be handled by the singleton controller class.
hi
All the repositories and controllers etc are stateless. HttpSession object is used to store state information and Command objects.
Hi
I am just wondering in terms of performance for concurrent request whether to use Singleton or prototype beans ?
Example:
I have repository classes, controller classes at the moment they are...
yes, i am using java 5 ( which is in a way jdk 1.5 i think ) and tomcat 5.5 and it works ok now.
I also deployed the app on Tomcat 6 with Java 5 and its works well. I think there is some bug in...
hi there
i had the same problem and the error was that one of the Collection factory class was trying to create a concurrent hashMap instance which is available in jdk 5 onwords.
I was running...
I am running Tomcat 5.5 on jre 1.4 and it works fine in netbeans.
However when i deploy the project on Tomcat on another machine (Fedora )
Exception is thrown.
Looking...