I am writing a web application that uses a JSP usebean tag in the session scope as shown below
<jsp:useBean id="userSession" class="project.session.UserSession" scope="session" />
I have also written a filter which does some processing and needs to set some values on the userSession bean. How do I get a handle onto the object and set ...
It's a third party application generating huge amounts of logentries on our appserver. Like this:
[03.03.10 15:21:57:250 CET] 00000180 FtpProtocolHa I org.slf4j.impl.JCLLoggerAdapter info Close connection : 10.227.10.10 - admin
[03.03.10 15:27:35:209 CET] 00000181 MinaFtpProtoc I org.slf4j.impl.JCLLoggerAdapter info [/10.227.10.10] CLO...
Is it against the J2EE spec to create new classloader from within the code flow of any application?
I want to load classes at runtime into a separate class loader that will be created from the application.
...
I have developed various Java EE web-applications in Netbeans by selecting webapplication as the project type.
Now, I want to start coding a web-application in Eclipse. The application will be based on Struts framework.
The structure of the project created by Netbeans and Eclipse are different.
Q1. What project type I should choose fo...
I have a little problem if someone can help. Actually it is relating to file uploading conflict behavior that when I browse and upload a valid file in icefaces (by using ajax push) and before clicking the save button of the form if I rename or remove the parent file, system is still saving the uploaded file.
The question is that why it i...
I am writing a filter that will handle all authentication related tasks. My filter is a standard servlet filter as shown below
@Override
public void doFilter(ServletRequest req, ServletResponse res,
FilterChain chain) throws IOException, ServletException {
UserSession attribute = (UserSession)request.getSession().getAttribu...
We are currently using JDeveloper to build our production EARs. One problem with this is that if the developer doesn't add new files to a VCS, then that developer is the only one capable of making EARS, and therefore he can use unversioned files as well. What would be a good system that seperates this, so that EAR files can be correctly ...
Hello All...
I need to jump into the Spring Web Service Project, in that I required to implement the Spring Web Service's Client Only..
So, I have already gone through with Spring's Client Reference Document.
So, I got the idea of required classes for the implementation of Client.
But my problem is like I have done some googling, but...
I have worked on java/jsp project at university leve.I have develped apps in java,jsp , servlet and hibernate.But i think my coding style is not up to level.Means it is not properly modularized .
I have seen many opens src CMS and other ope srcs apps code but they are too complecated to understand.
I want to see the code of a open src sk...
I am building a small web application that primarily needs to serve up protected static content -- some flash (.swf) files > 20MB -- from an application server (Websphere) that is front ended by a web server (Apache). Are there there any Websphere configuration settings that I should consider to optimized throughput?
...
Hi There!
I have a design problem .
My application has multiple J2EE components ,In simple terms one acts as a service provider(Non UI) and others are consumers(UI webapp) .
The consumer gets the configuration data from the service provider(this basically reads the data from DB) during the start up and stores it in the Cache.
The ...
Hi,
While loading a dll file, I am getting the following exception:
Exception in thread "main" java.lang.UnsatisfiedLinkError:
D:\Transliteration\rlpnc-3.1.0-sdk-ia32-w32-msvc80\rlp\bin\ia32-w32-msvc80\btrntjni.dll:
The system cannot find message text for message number 0x%1 in the message file for %2
at java.lang.ClassLoader$Na...
I have searched this topic on google a bit and seen some best practices. But I need some specific advice. I am working on a J2EE app that has servlets/Struts2/Call to DAO's from JSP's. So the app is all kinds of messed up. Most of the data is fetched via stored procedures, which are being called by iBatis ORM/Spring. Sometimes when an ...
I dont have exact words how to explain this error in IE but will try best...here goes.
I've following in web.xml
<error-page>
<exception-type>javax.servlet.ServletException</exception-type>
<location>/errorpages/Error.jsp</location>
</error-page>
So whenever that exception happens in the application, we go to /errorpages/...
Hi
UserTransaction ut=lookup....
ut.beginTransaction();
saveToFooDB();
statelessEjb.transactionSupportedMethod(); //saves something to the Foo DB
saveToFooDB();
ut.commit();
If i was doing the above then my understanding is that it is not an XA transaction as it doesn't span across multiple resources (like DB plus JMS). Is my understa...
Hi,
I have 2 J2EE applications which needs to share some common user related data of logged in user. Is there anyway by which i can store these data in session from one application and retreive that data in second application.. ie. something similar to sticky session in .NET
Any help appreciated..
...
I am using Tuckeys UrlRewrite filter for getting clean urls on my java application. I redirect all the requests to a certain resource to a spring request dispatcher. Here is my original rule
<rule>
<from>(.*)$</from>
<to>$1.htm</to>
</rule>
Problem is that accessing .js, .css files also seem to be redirecting. I want to know h...
What kind of topics/questions one can expect in a management round of an interview for a Java/J2EE sr.developer position.
[EDIT] By management round I mean discussion with some one who is playing role of a project manager / technical manager. This round typically takes place after you are through with your coding tests and discussions w...
How do you setup a JNDI server on GWT's hosted mode (they seem to use an embedded Jetty server)?
...
How to make a Array List read only, so no one can add, edit or delete, once after the initialization in Java
...