Hey guys,
PS: Using Windows XP
Pretty much I'm trying to get started with J2EE using Seam Framework.
I think that the documentation is too shallow if you are new.
I'm completely lost here.
I want to get started building simple J2EE apps with Seam, but as I read, there so much to get started.
Ant
JBoss/Tomcat
Maven ??
Seam
Thats ...
I am writing a JSP application and am deploying it to JBoss 5.0. When I attempt to retrieve my CSS or Javascript files, JBoss returns the wrong Content-type for the file, so Firefox refuses to execute code supplied in them. Here is my web.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLS...
I am curious about how the following concepts typically execute inside a J2EE container, is one instance created per request, or does one instance serve all requests?
Servlets
Tags
I want to know this because lately i have been using a lot of StringBuffers in my custom tags, avoiding StringBuilder because it is not thread safe. Id li...
I’m currently using Coldfusion 8.01 in a J2EE environment (jBoss), and looking to clean up what's written to the logs. Currently Coldfusion logs everything to STDOUT instead of using a proper logger like commons or log4j. Has anyone managed to change this? Maybe there are some hidden properties you can set or a log4j.properties hiding so...
What are the scoping rules for variables in a jsp page with pages added to them using tags?
My understanding is that an included page is essentially copied verbatum into the page, which would lead me to assume that if I've declared a variable in a Parent jsp that it would be available in the child ones.
However Eclipse complains about...
Hi,
I have an application that uses connection pooling to get database connection from oracle9i release 9.2.0.4 database.Application is hosted in SJSAS 8.1 and the driver is ojdbc14.jar version 10.1.0.4. The problem I am having is datasource.getConnection() method is taking about 40 secs to throw an exception when the DB is down! This i...
Can I declare parameterized constructor inside servlet which is only constructor ?
If no then why ?
...
Typically we use WebLogic or JBoss to deploy our apps. I understand that when using open source solutions like Spring you can develop your app and run it on a simple servlet container like Jetty. So the question would be why even bother with an app server?
...
How to handle StackOverflowError in Java ?
...
ok, im working in a j2ee project that has 2 branches in the repo and i'm ordered to mix them.
i was coding and then netbeans ask me "unreported exception blah bla bla must be caugth or declared to be thrown" and gives me the choice of just handle each exception or just throw it hoping someone else catches.
The classes i'm working with ...
I use a glassfish server to expose (METRO / WSIT) webservices that handle entity database accesses.
I would like to know if someone tryed to use MS Sync Framework with this configuration to enable offline .net client feature.
Thanks for incoming anwsers.
...
So, here's my problem:
I have a message driven bean X and would like to make use of Logger in X's onMessage() method. Lets presume that I have a single instance of the bean running in my app server, hence, I would initialize log4j in ejbCreate(). This would mean I would have to do something like this:
public void ejbCreate() {
Pr...
The idea behind portlets is that a website/page can be comprised of a number of applications that are developed individually. They are then fit together on a page by a portal much like a jig-saw puzzle. This allows functionality to be created independently and slotted together at a later date. This has many obvious benefits.
However. I ...
I have developed my Java/EE program in Windows machine and everything worked perfectly in Windows, but when I installed my WAR to Jboss in Linux machine I have encoding issues with MySQL when I import csv-files. Csv files are encoded as ISO-8859-1 and file I import is encoded as ISO-8859-1. MySQL doesn't seem to get Strings encoded as UT...
Hello to all,
I've made a web application using Java, Struts and running over Apache Server and Tomcat. It would be very useful to be able to restart the application from the web. I don't want to restart Tomcat, only this wbapp, the same way as Tomcat Manager does it.
Do you know how can I do it? If not, any way to simulate that behavi...
Hi,
Where can i find code
that will give me an idea for implementing randomization techniques in Graph Mining
Please provide me the links or material
Thanks in advance.
Regards,
sri
...
I managed to do it with the next code but there must be an easier way.
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:if test="${fn:length(attachments) > 0}">
<c:forEach var="attachment" items="${attachments}" varStatus="loopCount">
...
I have a Struts 1.2 based Web App which uses lot of scriptlet code in the JSP page, I wish to clean up the code by using JSTL.The Servlet Specification Level: 2.3 and JSP Specification Level: 1.2.
I am using WSAD 5.1.
I tried using <c:if></c:if> tag, but I get the following error on building the project.
"JSP Translate: unable to load i...
I'm running Eclipse 3.4 java enterprise adition and writing JSP pages with it. It does not appear to support quick fix, for example ArrayList ourList; comes up as an error but there isn't a quick fix option to add the import java.util.ArrayList statement. Is there a way to improve quick fix capabilities, or another set of Eclipse Plugins...
I am using Hibernate + JPA as my ORM solution.
I am using HSQL for unit testing and PostgreSQL as the real database.
I want to be able to use Postgres's native UUID type with Hibernate, and use the UUID in its String representation with HSQL for unit testing (since HSQL does not have a UUID type).
I am using a persistence XML with dif...