All Questions
Tagged with web-development java
59 questions
9
votes
2
answers
2k
views
Does OOP overemphasize the importance of noun and thus put action/verb in the less importance position ? [closed]
Steve yegge wrote an article called "Execution in the Kingdom of Nouns" back in 2006, 14 years later I still find the points he made valid. For example, "Action is what gives life its ...
25
votes
4
answers
42k
views
Service layer returns DTO to controller but need it to return model for other services
Following this post https://stackoverflow.com/questions/21554977/should-services-always-return-dtos-or-can-they-also-return-domain-models and best practices in Software Arch suggestions by Martin ...
4
votes
3
answers
5k
views
Does each microservice need its own server running (Tomcat, docker container)
In development I have a Java backend API which I'm running with Tomcat. I'm wanting to wrap the backend in a docker container and deploy to an AWS EC2 instance, and be able to scale up/down.
Does ...
0
votes
1
answer
124
views
Turning complex XML (or content tree) into HTML - How to do it (in Java)?
I have a deep object content tree that I transform into a XML using JAXB and a small self written API on top.
But now I want to create a static HTML site that has basically the same content (and ...
-3
votes
1
answer
108
views
Need of advice on server code design [closed]
I want to build a web application in Java on Tomcat server (I am open to change the type of server if needed)
The requirement for me is for the user to be able to login and download sensitive data (...
3
votes
1
answer
559
views
Java web development
I started to develop web applications not so long ago, and therefore there are a lot of unknown things in this field for me. My question concerns web development using the Java language. Assume that ...
0
votes
0
answers
483
views
Testing REST API with nested object creation and endpoint transactionality
I'm building a location based REST API using Spring Boot, and I have run into a bit of a testing philosophy question. I have an object called Location that, among other things, requires a Google ...
-3
votes
3
answers
204
views
Is it possible to build a application with html + css + javascript only [closed]
I want to completely sperate the front-end and back-end, the backend using Java EE stack expose restful web service, the front-end web application interact with back-end using json.
In such a front-...
0
votes
1
answer
384
views
Is using Java reflection to map frontend actions to the actual db methods by name bad practice?
I have used java reflection with a static map to map actions(removeElements, getLatest ...) from the front end to the corresponding database methods by name in multiple web applications now.
I was ...
-2
votes
1
answer
58
views
What method/ approach is used to query a user's page on a website using backslash + username? [closed]
I am working on a Servlet/JSP project, the website have users and I need to display a user's profile using the notation myDomain.com/Joe instead of myDomain.com/users.jsp?user=Joe.
An instance of my ...
0
votes
1
answer
91
views
Is RSS generation from MySQL server an ideal method for Facebook-like user feed in a website?
Researching this topic took me a long time, mainly because of my lack of knowledge of how RSS actually works, I understand that generating RSS is basically generating an XML file with multiple items ...
6
votes
2
answers
6k
views
Is it bad practice to call another API from a Filter?
I am using Java, Spring and Jersey.
I have a REST API A which receives a query parameter called q and sends this to another API B to get a response.
I need to implement a change where I first need ...
1
vote
0
answers
84
views
How to better manage beans?
In my application - I have to expose services using JAX-RS(for mobile platform) and consume the same set of services in a JSF based web app.
Now, I have @Entity beans for persistence layer, @...
28
votes
1
answer
48k
views
Splitting a big project to create a multi-module Maven project
I am working on a Spring-MVC application in which we are using Maven for dependency management. As the project is big, we are thinking of splitting the project into several parts. I had some doubts, ...
3
votes
2
answers
2k
views
Architecture review - case study (Spring MVC)
I'm developing an Java Web Application with Spring, and I have some questions about my architecture. Before showing it, here is the context:
I am developing a web application with more than 80 ...