Tagged Questions
0
votes
1answer
35 views
Spring bean getting confused
I have a spring web app A and a library B. B has its one config file. When using the B library in App i am creating new beans instead of autowiring. but still seeing that the beans initialized in ...
0
votes
1answer
38 views
Java EE server for raspberry pi (Spring-MVC) [closed]
I'm searching a server for Raspberry Pi that supports Java EE Spring Framework.
Does anybody have an experience with some RPi servers?
0
votes
0answers
20 views
Hibernate, when saving new record reference, the previous record goes null
I am facing a very strange issue.
I have Contact object, which has a collection of Comment objects.
When I save Comment, its getting saved in the database, fine, but the previous record that has a ...
-1
votes
1answer
56 views
Spring-MVC :: How to pass request parameters (or) query string values to another subsequent request?
I have a scenario to pass values from one request to another subsequent rquest. (i.e) I will call 'Controller1' on the first request and take the request parameters or query string and should send ...
0
votes
2answers
56 views
JDBC connection fails, when trying to login the first time, after a while
I have a web application using Spring and Hibernate and mysql database.
The issue is that, when the application is up for a while and there is no activity for a long time and then if the user tries to ...
2
votes
1answer
31 views
Java EE (Spring) Multithreading to divide work
I have a simple scenario where in response to a user action:
JSP ===> Controller ===> Service ===> DAO
DAO essentially running a number of disparate queries. Is there a way for the service ...
0
votes
0answers
53 views
Request Dispatcher adding an extra slash in the URL
The below spring controller forwards the request to a static JSP path using RequestDispatcher.forward()
RequestDispatcher rs = getServletContext().getRequestDispatcher("/security/html/blah.jsp"); ...
0
votes
0answers
37 views
why doesnt the AccessDeniedHandler works with request dispatcher?
public void handle(HttpServletRequest request, HttpServletResponse response, AccessDeniedException accessDeniedException) throws IOException, ServletException {
//To change body of ...
0
votes
1answer
62 views
Spring security mapping
I want to limit access to my file uploading functionality. I wrote intercept url in security file, but Spring Security doesn't map this URL. I use 3.0.3 version of spring security.
These are my xml ...
0
votes
1answer
37 views
Ajax - Spring MVC Compilation Error
In my spring MVC I use @ResponseBody annotation to create the JSON object & I use AJAX & jquery for query & parsing the data.
Everything works great but we figured out that when our bean ...
1
vote
1answer
46 views
Spring MVC: Binding complex Objects to UI
I have my User Object which I am trying to bind to UI with spring MVC. User Object has another object Address in it.
public class User {
String firstName;
String lastName;
String ...
1
vote
3answers
61 views
Global exception page not selected by Spring MVC
Continuing the thread: Global exception page in Apache Tiles and Spring MVC
I have an error page defined in my web.xml:
<error-page>
<error-code>404</error-code>
...
0
votes
1answer
33 views
Login Logout use case in Spring security
I am trying to create login use case using spring security(I am referring this example ).
After entering the username and password if a click login button, it is requesting for
...
-3
votes
1answer
81 views
The JSP specification requires that an attribute name is preceded by whitespace [closed]
I am getting this exception when I run my application on tomcat 7. on Tomcat 6 application runs fine.
1
vote
1answer
31 views
Spring MVC and Tiles Definition Path
When i was going through tiles integration with spring, first i kept my tiles-definition in classpath to make the project more cleaner which resulted as the following exception:
SEVERE: ...
1
vote
1answer
62 views
java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'user' available as request attribute
I started learning Spring these days,Iam getting below exception: Iam just tring to navigate from login page (will do insert opeartion in db later using DAOs) to some index.jsp page
exception
...
0
votes
1answer
36 views
Error with view resolving/fetching json data after Spring version upgrading
I'm currently building webapp using Spring MVC, where view is rendered with Apache Tiles. I recently also added Spring Security.
I was working with spring version 3.0.7.RELEASE. And everything ...
0
votes
1answer
48 views
spring mvc hibernate creating and manipulating sessionfactorys of several databases
here I have a problem that I want to find a solution here, I work on a project using spring mvc and hibernate in my project I have several databases with same architecture (database by company) and a ...
1
vote
2answers
95 views
Spring MVC special login interceptor
I have this small web application, for which I am using Spring MVC 3.0
The way I have implemented the login functionality is via normal Handler Interceptor. i.e. when the request comes in the Session ...
0
votes
2answers
92 views
How to use beans in model attribute in Spring framework
Hello Might be it's a silly Question But I am new in Spring frame work. Please help
web.xml
<display-name>demo name</display-name>
<context-param>
...
0
votes
1answer
42 views
Reducing configuration required to add new view in Apache Tiles
I search for ideas on how to reduce some of the boilerplate added by Tiles. Here is how my project organized.
In my spring-mvc config I have Tiles configured this way:
...
<bean ...
0
votes
1answer
75 views
Role based menu in Java EE
I am using Spring MVC for my web application. My views are JSP based. What is the best practice to show role based menus?
Should I make a check on the JSP page for a role?
Should I build the menu in ...
1
vote
2answers
77 views
How to create paths in RESTful web service for “action oriented” methods?
I am creating a RESTful web service and I try to follow the conventions and recomendations for creating a good web service. Now I have come to a halt though. I have a User entity in my system that I ...
0
votes
1answer
84 views
java.util.zip.ZipException: error in opening zip filein JBOSS Server
When i deploy my *.war file in jboss 4.2 server it says
java.util.zip.ZipException: error in opening zip file
but it is working in the tomcat server
Error LOG
java.util.zip.ZipException: error in ...
0
votes
1answer
76 views
Spring Dependency Resolution
I am new to Spring and I am going to develop my first Helloworld Application in spring.
What I use
Spring 2.5.6
JDK 1.7
Eclipse 3.6
Maven
I downloaded Spring framework and added all the required ...
0
votes
1answer
79 views
Bean injection inside a JPA @Entity
Is it possible to inject beans to a JPA @Entity using Spring's dependency injection?
I attempted to @Autowire ServletContext but, while the server did start successfully, I received a ...
1
vote
1answer
77 views
How do i handle multipart file upload in spring 2.5 with java 1.4 (with out anotation)?
How do i handle multipart file upload in spring 2.5 with java 1.4 (with out anotation)?
I need to handle the request in
public ModelAndView handleRequest(HttpServletRequest request, ...
0
votes
1answer
284 views
spring nested exception is java.lang.NoClassDefFoundError: org/aopalliance/aop/Advice
i tried hard to get rid of this error, but it doesnt want to leave me.
here is the config xml
<?xml version="1.0" encoding="UTF-8"?>
<beans ...
0
votes
1answer
33 views
How can i populate some textfield on selection of an option from the form:select having items as object list?
I have a DTO with attributes id,name and text. I am generating a list of these DTO's and sending them into my JSP through model.addAttribute. In my jsp i am rendering a spring list like this.
...
0
votes
1answer
53 views
How to manage logged in session in spring mvc
I have a login controller which autheticates userId and password and set the userId in session , now by legacy I can allways check for the userId key in session ..if present user is logged in if not ...