j2ee

Printing pdf from extjs - best solution

Hey extjs/java GURU, I'm trying to print PDF file using extjs and any help will be appreciated. My idea was to pass pdf file from server as stream as adviced on http://xmlgraphics.apache.org/fop/0.95/servlets.html#minimal-servlet. But problem that firtly I submit form data via ajax, save them to DB, create PDF using FOP and .... want t...

how to print dwg file from java

How to print .dwg file from java. there is any api for accessing and passing to the printer for print the autocad file dwg. ...

J2ee Get Request

Hi. I have a j2ee application running on struts & spring. Currently I have no control over my action class. I cn just set a particular class as its business logic class by setting it as property of the action class in the xml. In my business logic class i need to get the request so that i cn store something on the request which I will us...

MusicBrainz alternative for JavaEE

Hi, Is there any Java/J2EE website which opensource their software and data (like musicbrainz.org, where a developer can easily set up a personal/development MusicBrainz website by downloading the Perl/CGI webapp and the music data in PostgreSQL dump) ? It would be good for other developers to learn from this kind of website. Thanks ...

gzip compression in web server or app server ?

I'm using Weblogic application server and Apache web server in my J2EE environment and planning to implement gzip compression of response. Not sure, whether to implement compression on the Apache server or on the weblogic. ...

Java - How to change context root of a dynamic web project in eclipse

I have developed a dynamic web project in eclipse. Now I can access it through my browser using the following url: http://localhost:8080/MyDynamicWebApp Now I want to change the access url to http://localhost:8080/app I changed the context root from the project properties | Web Project Settings | Context Root But it is not working...

spring framework why is better

What is better spring framework or ejb? ...

Production system running JBoss clustering

Hi, What are some of the largest systems that use JBoss clustering? What are the specs/config? I want to know whether JBoss cluster is really scalable or not. Thanks ...

JPA/Hibernate Embedded id

I would like to do something like that: An object ReportingFile that can be a LogRequest or a LogReport file. ( both got the same structure) An object Reporting containing for one logRequest, a list of logReport with a date. I tryed to set an EmbededId, that would be an attribute of the logRequest. And that's the problem i got. I don...

Java data structure suggestion.

Hi folks, I am a newbie in this field so please excuse my silly mistakes :) So the issue I am facing is: On my webpage, I am displaying a table. For now my issue is concerned with three columns of the table. First is : Area Code Second is : Zone Code Third is: Value The relationship between these three is: ...

Can J2SE applications be clustered

Hi there all, i have numerous Corba servers and some other java apps (not web). I wish to cluster them if possible. Can this be done ? ...

jboss server error problem

when i run jboss server that time show error that is "main class missing" so how do I solve this problem.and I have installed jboss 4.2.1. ...

404 Error with Java EE Web service GET request with decimal point in parameter value

Hi All, I've created a Java stateless session bean to provide RESTful services to clients, and I get a 404 Not Found erorr when I pass in a parameter with a decimal point (specifically a longitude, e.g. 150.318232). The service works fine if the value passed in is an integer. Below is a snippet of the code from the relevant method - i...

Websphere CE issue in Eclipse EE

I have downloaded the Websphere 2.1 App Server and verified that it works fine. I now wanted to use eclipse EE to manage it by adding the server to the server tab. Everything seems to work fine when going through the setup but when I go to start the server I get the error message: ERROR [GBeanInstanceState] Error while starting; GBean ...

Need help with java map and javabean

Hi folks, I have a nested map: Map<Integer, Map<Integer, Double>> areaPrices = new HashMap<Integer, Map<Integer, Double>>(); and this map is populated using the code: while(oResult.next()) { Integer areaCode = new Integer(oResult.getString("AREA_CODE")); Map<Integer, Double> zonePrices = areaPrices.get(areaCode); if(zo...

Jdeveloper vs java/j2ee/js+extjs ?

Hi All, i am new to the web development environment, having came from a unix/c environment. i've been recently asked to create a web app, which i thought would require postgresql, java/j2ee, and javascript for the client interface. as i had wanted a nicer gui, i've been reading up on extjs, which looks really nice to me. a colleague m...

JSF, JSTL and EL - use c:set to set a non-string value

Whenever doing <c:set var="name" value="1" />, #{name} is always a String as evidenced by #{name.class}. Is there any way to in a JSF/Facelets context to set a scoped attribute that is an Integer or Long literal value? ...

Is it safe to reuse javax.xml.ws.Service objects?

I have JAX-WS style web service client that was auto-generated with the NetBeans IDE. The generated proxy factory (extends javax.xml.ws.Service) delegates proxy creation to the various Service.getPort methods. The application that I am maintaining instantiates the factory and obtains a proxy each time it calls the targetted service. Cr...

How to use JAAS form auth and force the redirect after login always to Index?

I'm using JBoss 4.2.3 and JAAS authentication by Form. Currently if I try to access any of my protected pages, the login page appears and then I'm redirected to the page I wanted to see. What I want is that after the login, the user is always redirected to index.jsp. Currently I only found this solution: http://roneiv.wordpress.com/...

How useful is a 'pure' MVC implementation?

I work at a company that provides custom made 'CRM'-like software. We are currently redesigning/redeveloping the software with the hopes that it will look more modern and be easier to develop and customize for future clients. Currently it takes a long time to customize each new application. There is a presumption that the reason it ta...