I have a J2EE application front-ended by a bunch of GWT pages. When the server is starting up, it is possible that these static pages can be accessed before the services required to implement the GWT RPC calls (database etc) are available. I wondering what the best approach is to prevent a user accessing this static content before thes...
any ideas how to do this?
...
I am trying to send data to a servlet from a js file but the servlet never received the parameter. so this is what I have:
function showProject(prj)
{
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
{
alert ("Browser does not support HTTP Request");
return;
}
var url="ServletxmlGenerator";
idprj = prj.options[prj.selectedIndex...
hi,
i'm developing a rest web service in java.
i'm using htmlparser library on it.
but when i try to run service i'm getting this exception. i can build it successfully. and org.htmlparser.beans.StringBean class exists in project.
exception
javax.servlet.ServletException: java.lang.RuntimeException: WEB9033: Unable to load class wi...
In the java web application need to select the file from server and print to the local printer. how it can be done
Thanks in advance
...
I have created a J2EE project using maven and would like to import it as a J2EE project (ie: auto have the libs jars added to the classpath, tomcat jars to classpath, etc). How can I change an existing project to a J2EE project?
...
Hi everyone,
My problems is in a Struts2 action, where
I have a class :
public class MyAction<T> extends ActionSupport
with a private member like this :
private T myData;
And I would like to declare this aciton in the struts.xml file,
how can i manage to do so ?
Thanks for the answer.
Ps : I've tried without declaration of T...
Hi all,
What I would like to do is automatically test against several different maven build profiles. I want to write a maven plugin that iterates through each profile so I don't have to manually list them for the CI process. I just want to verify that the code works in all development, testing, staging, and production once deployed t...
in a J2EE app if user explicitly takes out the the ending page name then what is the best way to not show the directory structure?
Example:
/mycoolapp/somefolder/test.jsp
/mycoolapp/somefolder/ -- this will show all the files under 'somefolder'
What is the best way to redirect or show the user a page saying 'not where you belong'....
We have a situation where we want to use filter for URL's containing some specific request parameters, e.g:
http://mydomain.com/?id=78&formtype=simple_form&.......
http://mydomain.com/?id=788&formtype=special_form&.......
and so on, id are fetched at run time, I want configure filter in web.xml only if formtype=special_form. ...
User interface for web applications in general contain various buttons for performing CRUD operations. What would be the suggested naming convention for button labels while performing the following actions..
User creation (Add User... or Add User or Add user)
Event creation (Add Event... or Add Event or Add event)
View users button (Li...
We need a back out plan for a web app whose first maintenance release is going to production soon.
The issue we are facing is even if we back out new EAR and deploy old one , the data which was keyed in using new release would not support old business rules(current), since there is enormous changes in business rules.
Can you suggest...
Hello,
I plan to begin learning a Java web framework (I love the Java API), I already used Rails and Django.
I want something close to Java, but without all the complexity of J2EE.
I've found 2 framework that could be good for me :
Grails :
Grails looks great, it use Groovy that is better than Java for web application (I think..), but...
I'm dealing with the 3-tier architecture PHP website.
Now,i need to redesign it to suрроrt distributed n-tier architecture.After long hours of research i came to this solution: business logic should be separated into presentation and purely business logic tier to allow for n-layer architecture(user-interface,presentation tier,b.logic an...
Hi,
I need some help regarding the following issue with JAXB 2.1.
Sample: I've created a SpecialPerson class that extends a abstract class Person.
Now I want to transform my object structure into a XML schema using JAXB. Thereby I don't want the Person XML type to appear in my XML schema to keep the schema simple. Instead I want the f...
I have J2EE application deployed on JBoss AS. There is a EJB3 stateless session bean in this app.
I need to write dll that will wrap the methods of that stateless session bean. There will be just standard data types as arguments, so I don't need to pass some specific objects as an arguments.
Is that possible?
...
Let's say I want to allow my developers to upload their war files to a web app (not the application server itself) running on our intranet and that web app would then run those wars as if they were separate apps deployed individually in our J2EE container.
In other words, we are not actually deploying the wars as separate apps in the c...
I'm new to Eclipse and am using it currently to play with J2EE.
When using Ctrl+Space for types/functions from the regular Java libraries I get a full description (i.e. general description of the type, what are the arguments of the method for, etc.). However I don't get the same for J2EE types.
For example, when using Ctrl+Space on met...
Hi,
I am using the hibernate increment strategy to create my IDs on my entities.
@GenericGenerator(name="increment-strategy", strategy="increment")
@Id @GeneratedValue(generator="increment=strategy")
@Column(name="HDR_ID", unique=true, nullable=false)
public int getHdrId(){
return this.hdrId;
}
The entity has the following table...
Hi all,
to follow my previous question: http://stackoverflow.com/questions/2560272/xdoclet-a-dead-tool
what tool can I use nowadays to generate the homes & interfaces of my EJB's?
Thanks by advance,
Alban.
...