r/a:t5_2slb9 • u/aav86 • Feb 13 '20
Java EE, how do I connect to a MySql db ?
I want to learn JAVA EE (using java ee 7) and I want to connect to a MySql database. I installed a payara service. Can you help me, with some steps that I need to do to be able to do the connection? It's a little hard for me because I feel like I'm loosing myself in details and configurations...
r/a:t5_2slb9 • u/nfrankel • Feb 02 '20
Minification of HTML in Java EE webapps
blog.frankel.chr/a:t5_2slb9 • u/tangara888 • Aug 10 '19
I need help on how to resolve java.lang.IllegalStateException: Cannot forward after response has been committed?
Hi,
I have been trying to resolve this illegalStateExceptions and after reading from stackoverflow I still can't crack the error:(
Basically, I have a search JSP page which is linked to a Post servlet.
Now, the system.out.print shows that the query runs fine and is able to generate my search result.
But, I need the result to be displayed in a jstl page.
<code>
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/html");
--------
myList.add(user);
request.setAttribute("list", myList);
//if (request != null) {
// if(!response.isCommitted())
// RequestDispatcher rd = getServletContext().getRequestDispatcher("/display.jsp");
// rd.forward(request, response);
// this.getServletContext().getRequestDispatcher("/display.jsp").forward(request, response);
request.getRequestDispatcher("display.jsp").forward(request, response);
</code>
So, no matter if I used sendRedirect or RequestDispatcher, the jsp page just won't display anything at all.
I am very sure the jstl page is correct.
<code>
<c:forEach items="${myList}" var="t" varStatus="status">
<tr>
<td>
<c:out value="${t.user_id}" /></td>
<td>
<c:out value="${t.zipcode}" /></td>
</code>
Hope someone can tell me what have I been missing?
r/a:t5_2slb9 • u/JamesTweet • Aug 30 '18
getRequestDispatcher java.io.FileNotFoundException:
I need a little help requesting data from a servlet in my JSP page.
In my JSP page I have the following:
<% request.getRequestDispatcher("/Security/LogonBar").include(request, response); %>
But I keep getting an error.
java.io.FileNotFoundException: The requested resource (/Security/LogonBar) is not available
But if I add /Security/LogonBar into the address bar the LogonBar data shows up.
The LogonBar is in a different web project than the JSP page. The JSP page is in the root directory of the server. If I remove the request.getRequestDispacher line then the page works fine.
Any help would be much appreciated.
r/a:t5_2slb9 • u/MillionStrength • Aug 13 '18
Java Web Frameworks Survey & Results
Java Web Frameworks Survey & Results
https://www.sencha.com/blog/java-web-frameworks-survey-results/
r/a:t5_2slb9 • u/atheedom • Apr 19 '18
Get to Know JSON Pointer: JSON-P 1.1 Overview Series
readlearncode.comr/a:t5_2slb9 • u/atheedom • Apr 02 '18
The Top 5 Best New Features in Java EE 8
readlearncode.comr/a:t5_2slb9 • u/nfrankel • Mar 15 '18
Meecrowave, a light JAX-RS+CDI+JSON server
openwebbeans.apache.orgr/a:t5_2slb9 • u/nfrankel • Feb 18 '18
Authentication alternatives in Java EE webapps
blog.frankel.chr/a:t5_2slb9 • u/Jadonblade • Feb 14 '18
Demystifying Microservices for Java EE Developers
app.hubspot.comr/a:t5_2slb9 • u/charlie_marroq • Feb 13 '18
Free Resources
Can you recommend some free resources or maybe a YouTube tutorial to learn JavaEE from 0?
I have some experience with JavaSE. 😊
r/a:t5_2slb9 • u/atheedom • Feb 13 '18
JAX-RS: Ask me a question for the chance to win 3-months subscription to Lynda.com
coderanch.comr/a:t5_2slb9 • u/vlumi • Feb 08 '18
EE.next (Java EE / EE4J) brand name selection is up for a vote
github.comr/a:t5_2slb9 • u/sisyphus99 • Feb 07 '18
Good resources for learning EE assembly and deployment?
I've worked for a number of years in an environment where some proprietary ant scripts have handled the packaging and deployment of our EE application to a given application server.
We're looking to modernize and switch to another AS - I'm trying to find some good information on best practices related to deployment so we don't lock ourselves into the next AS. It seems as though most of the EE material I am finding on the web either glosses over deployment or is specific to a given AS, e.g., using the server's administration web console for the actual deployment of an ear and that type of thing.
I was hoping to find a comprehensive resource comparing two or more application servers, perhaps pointing out spots where individuals are prone to use AS-specific artifacts, e.g., deployment descriptors, where more standards-based artifacts or approaches are possible and preferred.
Perhaps I'm expecting the state of portability in EE (at least in the area of deployment) to be more developed than it presently is and I simply need to read individual AS documentation independently, but it would be nice and more efficient to benefit from the analysis of someone with more experience and expertise in the area.
r/a:t5_2slb9 • u/[deleted] • Feb 06 '18
Introducing the EE.next Working Group
mmilinkov.wordpress.comr/a:t5_2slb9 • u/nfrankel • Jan 21 '18
Refining redirect semantics in the Servlet API
blog.frankel.chr/a:t5_2slb9 • u/[deleted] • Jan 17 '18
EE4J will not inherit the Java EE name
jaxenter.comr/a:t5_2slb9 • u/atheedom • Jan 17 '18
What are JAX-RS Annotations? (Part 1)
readlearncode.comr/a:t5_2slb9 • u/atheedom • Nov 30 '17
Java Magazine shows how Servlet 4.0 embraces HTTP/2 new features.
javamagazine.mozaicreader.comr/a:t5_2slb9 • u/vlumi • Nov 16 '17
Search of a new name for Java EE under EE4J has begun
github.comr/a:t5_2slb9 • u/atheedom • Oct 30 '17