So I posted this question in the icefaces forum but didn't get much love, so I thought I would try here.
In my webapp I am using IceFaces for the bulk of the application but I want to use regular JSF for a mobile piece of the solution. I can't seem to get the IceFaces Servlet to 'let go' and let it concede to the regular FacesServlet. p...
Hi,
I'm trying to get the contents of a HttpServletRequest. Here is how I'm doing it:
// Extract the request content
StringBuilder stringBuilder = new StringBuilder();
BufferedReader bufferedReader = null;
String content = "";
try {
InputStream inputStream = request.getInputStream();
if (inputStream != null) {
bufferedReader = new...
I am an advanced Flex developer looking to quickly ramp up my Java knowledge. I have solid OOP knowledge and can understand normal Java code well enough but would like to take things a few steps further. Specifically I want to get (reasonably) comfortable with app servers and Java environments, Spring, Hibernate, AOP, DB integration, etc...
Hello, good fellas. I have another very basic question that I need help with.
I wanted to try out the great Seam Framework, and I managed to add the JBoss Tools plug-ins to my copy of Eclipse Galileo 3.5. After spending some time using Seam, I decided I wanted to try the Spring Framework.
My question is: Apart from adding SpringIDE to ...
My question is related to "Is Ruby on Rails ready for the Enterprise?" My question is not about IF Ruby on Rails/Grails is ready for the enterprise - my question is will they ever catch on in the enterprise?
J2EE applications have such a strong foothold right now and a lot of investment from the giants (IBM, Oracle, etc) and those gian...
I already have an entreprise J2EE application. I want expose some of the existing EJBs as webservices. I wanted to know how to organize the J2EE project I mean where does the websevices sit in the J2EE EAR file hierarchy and how to invoke the deployed Webserices?
...
I am having a JSP page, where i am dynamically creating a Table data. ( My page is having only table, and nothing else ).
Number of rows in table can go upto 1000s.
What i am doing is:
after the complete page i have written
<script>
function printPage(){
window.print();
}
</script>
This code is working fine to print all pages ...
I created a j2ee-simple project using the maven template with following command-line
mvn archetype:create -DgroupId=com.hardik -DartifactId=ActionBazaar -DarchetypeArtifactId=maven-archetype-j2ee-simple
When I try to run the install goal within the created project folder I get an
error about not existent model file in the site modu...
Our team builds and owns a webservices framework. Other teams which actually build the webservices use our framework for some common functionality. There are two options to package the EAR. Option 1 is to have all the framework jars built into the EAR. Option 2 is to configure a shared library in the application server and make all appli...
Hi everyone! I'm wondering, how do I gain relevant professional experience on Java web programming? It seems to be the requirement for every job ad I see.
I currently work as a PHP programmer on a small company. I have no CS degree but I'm doing ok on my job. I spend my free time (and enjoy it) studying Java. After some time I learned S...
Say, you are submitting a form, which affects your database (adding records/ deleting them/ updating them) and this is how your request looks like:
POST /application/action=update
Now, say, you are done with your update, so you would like to take the user to the home page.
Response.sendRedirect /application/action=home
This works w...
Although obviously not all scenarios can be covered by a single design, is it generally felt now that ORM classes should be passed to and fro between the presentation and business layer (either local or remote), replacing the need for data transfer objects? As far as I can see, using ORM classes presents problems of unnecessary eager loa...
Is there an elegant way to use Services across or between OSGi containers?
Is it even possible?
For instance, lets say I have a service interface on my local machine. What methodologies/technologies can I use to get that service interface accessible through a remote OSGi container's BundleContext?
...
Hi,
I have a use case where I need to call a (non-static) method in the bean only-once at the ApplicationContext load up. Is it ok, if I use MethodInvokingFactoryBean for this? Or we have a some better solution?
As a side note, I use ConfigContextLoaderListener to load the Application Context in web application. And want, that if bean ...
I am currently looking to set up a client/server application. I am planning on having the clients written as a Swing thin client. I am not really sure how I should set up the Server side application. The Java Server side application would have the application business logic, database access, etc. I see a lot information on the web abo...
I have a javax.mail.Part and need to modify the content, so I have code like this:
System.out.println(part.getContentType());
String content = (String) part.getContent();
content = content.replace("a", "b");
part.setContent(content, part.getContentType());
System.out.println(part.getContentType());
This prints out text/html then text/...
I have a friend who asked me about a good book to learn J2EE as a beginner.
and I thought I would ask other more knowledgeaable people. what book/resources do you recommend for learning J2EEe as a beginner ?
...
I am more curious about whether this is a best practice or should be avoided. Say I have two EJBS that each work with a different type of object, a widget and a foo. The EJB that manages widgets needs to get a collection of foos to do some processing. This functionality is already created in the FooManager bean.
The method in the Widget...
Having been primarily a .NET guy up until starting a new job recently; I've only done Web-Service development and consumption in C#/.Net. However I'm embarking on the journey to learn the ins and outs of doing it on the J2EE platform, and I'm curious what the major differences are in this specific type of development.
Note: I have famil...
I'm working on a RESTful web service in Java. I need a good way to send error messages to the client if something's wrong.
According to the Javadoc, HttpServletResponse.setStatus(int status, String message) is deprecated "due to ambiguous meaning of the message parameter."
Is there a preferred way to set the status message or "reason ...