Tagged Questions
-1
votes
0answers
10 views
Get data from two entities in Hibernate
By now i used a list to get a data from one entities. I put this data in json object and return object which have tree model. In tree model one sub-tree have data from one table. Then now i must get ...
-1
votes
2answers
22 views
how to use two different controllers in the same page jsp
I m using spring mvc 3 and jsp for interfaces , the problem that i have one page jsp which contains 3 diffrenets controllers like this :
the first:
@Controller
@RequestMapping ("/contrats")
public ...
2
votes
0answers
19 views
Spring MVC accessing static resources not working for one level of hierarchy
I am using the below line of code in spring-servlet.xml for accessing the static content in my spring mvc project:
<mvc:resources mapping="/res/**" location="/res/">
It works fine for level ...
0
votes
3answers
48 views
What is the prefered way of saving an uploaded file in Java EE application? [closed]
As the title says, what is the prefered way of saving an uploaded file in a Java EE web application? I read some answers on other questions that saving the file to the filesystem of the servlet ...
-5
votes
0answers
26 views
Looking fir suggestions on how design dynamic web site of reference content [closed]
trying to build a java website with a database backend to fill content. Site would be similar in idea to http://tomcat.apache.org/ or http://www.w3schools.com/html/default.asp.
Left side would be ...
-3
votes
0answers
23 views
Best Approach to develop a 3-tier Java EE Application?
I am a new bee in developing 3-tier Java EE applications.
I want to develop a small 3 tier appliation using spring, hibernate and jboss7.
To be clear my application should be an 3-tier Java EE ...
0
votes
0answers
42 views
Spring MVC: When to use AsyncContext and when DeferredResult?
In my understanding, Spring's AsyncContext provides a facility to send partial responses to a client, which cannot be achieved with DeferredResult (you are free to contend this with proof).
However, ...
0
votes
1answer
35 views
How to upload image and post JSON to RESTful web service in Spring 3
I am trying to post a JSON entity and an image to my web service. However I don't manage to get it working. Last error is that the request is not a multipart request.
@RequestMapping(method = ...
2
votes
3answers
32 views
How to cancel previous actions in java spring mvc application
I am developing a spring MVC application. I ran into some interesting case.
To make it easier to explain i am taking the stackover flow buttons on the top as example( i mean those questions, tags, ...
0
votes
1answer
19 views
Keep object in the view after refreshing when using RedirectAttributes.addFlashAttribute
Thank for Spring 3.1, I can make Post/Redirect/Get happen using RedirectAttributes.addFlashAttribute, But it seem like has small issue
here is the method that persists form object, then redirect to ...
0
votes
1answer
36 views
What is a good way of introducing Resource bundle (to support different languages) on an existing system?
We have a legacy application system which has been built 15 years ago and we still use it. Our system only supports English. However, right now we are working on a new project which should use some ...
1
vote
2answers
41 views
Simple Request mapping not working, Beginners in Spring
I am beginner in spring mvc i have 2 jsp :-
1. Webcontent/index.jsp : This works fine . The index file has a hyperlinked text like :-
<a href="hello.html" rel="nofollow">Say ...
0
votes
0answers
23 views
Spring mvc, post method to load csv file to database
I have a question about import csv file. My friends write to me in ajax window to help me import csv file. He checks .csv and send to me by post metod file.When i click import file the browser show me ...
1
vote
1answer
39 views
How to deal with aggregation and composition in RESTful web service
I have created the following entities, Book, Chapter and Feedback. The Book have many Chapter entities, and it also have many Feedback entities. Since no Chapter entities could live by them self they ...
0
votes
2answers
18 views
What should be the file upload path for CommonsMultipartFile if I want to save the files in the project path?
I want to upload a file into my project relative path.
webapp/fileUpload/ is the path that I want the file to upload.
so when I give the path as
CommonsMultipartFile commonsFile = ...
3
votes
2answers
39 views
Should repository layer always be encapsulated by a service layer?
In the repository layer I define normal data operations such as inserting, finding and so on. I am using Spring and I have the @Repository annotation above the class. Is it bad to use this class ...
0
votes
0answers
13 views
Custom AbstractRememberMeServices does not redirect to the default url when auto login is called in spring mvc
I am using Spring MVC Remember-me functionality in my project. I implemented custom AbstractRemembermeServices class to manipulate cookies and check user details. my default-target-url is ...
1
vote
1answer
34 views
Understanding why does sometime “NULL” and sometime “Empty” value is stored to same field?
Currently I am working on spring(MVC) web app, I have observed something strange while validating entity class fields in my controller. Whenever i try to do validation after each form submittion i get ...
-2
votes
0answers
11 views
hibernate-search-4.1.1.final.jar requires [closed]
hibernate-search-4.1.1.final.jar jar file but it not avaliable.
I wont binary file not maven.
plase give me location to access it.
plase help me.
2
votes
1answer
71 views
Best approach for an enterprise Java web application [closed]
I am working on building a membership management web application using Java (Servlet / JSP - MVC model), but I am a bit confused on best frameworks to use in order to ensure 1) Stability 2) speed and ...
0
votes
1answer
34 views
How to spring bind for multiple level classes like student.userAccount.role?
I want to know how to perform spring binding for multiple level class mapping.
I will take an example and explain my problem.
Suppose I have a class hierarchy which says that a Student(POJO) has a ...
0
votes
2answers
56 views
Using ResponseEntity Spring MVC
I want to use the ResponseEntity without returning a body, only set status code and headers. The ResponseEntity is a generic class, do I need to specify the type in this case, and if, what should it ...
0
votes
0answers
44 views
Session is lost and User logs out when JSON format error occurs in UI
We have a web-application deployed on Cluster environment (Weblogic 10.3.6 server) and we are replicating the session on all the nodes.
We have a search Textbox where we could search for items. ...
0
votes
1answer
74 views
exception is org.hibernate.HibernateException: No Hibernate Session bound to thread
I have a problem with input data to my database? spring mvc project
Could you give me some solution ?
This is an error:
SEVERE: Servlet.service() for servlet [appServlet] in context with path ...
6
votes
2answers
109 views
Web Data Streaming in Java EE
we have a design like this :
our installed service upon tomcat has a method getDatabaseData(String request) (RMI Client) which receive data from database using (RMI Server implementation) existing ...
0
votes
1answer
27 views
DropDown selected value to be transfered in spring
From jsp i need to transfer the value selected in drop down when a user click on search button which is submitting the form.
<form:form modelAttribute="firstVO" method="post">
...
1
vote
1answer
60 views
@RequestMapping does not work on methods when I have annotated the controller
I have annotated the controller with a requestmapping. I also annotated the method with another requestmapping, however it doesn't seemed to get mapped. I am using Spring 2.5.
...
0
votes
0answers
51 views
Spring MVC with EJB 3.1 and JPA 2
I have a project that only uses Java EE 6 for services and persistance. I´m now going to add a web project ontop of this that will show the gui and only communicate with EJB service layer. Are there ...
1
vote
1answer
71 views
@RequestMapping does not work on type and method in Spring 2.5
I have been reading on Spring 3.2 lately and I am now trying the following code using Spring 2.5. From what I have read this should mean that it should map profile/tags/me. However it doesn't. It just ...
0
votes
1answer
31 views
Error while getting data Using RMI from services into WEB application
I am getting following exception while I am trying to get list of tasks, from services that I have written which are supporting hibernate 4, into web application which supports hibernate 3
...