java-web-development

What's Your Complete Tool Stack for Java Web Development and Why?

My Team recently embarked on our first real Java web app. Prior to this, our corporation was primarily a COBOL shop with some VB and C thrown in. Recently, new blood's been injected, including me and a few others who by education are primarily experienced with Java but none of us have really done this full blown and for real at this po...

What's the best 3D graphics library for Java web apps?

I'm looking for a 3D graphics library for a Java web app. Could use some recommendations - only open source, though. Edit: I don't really care how the graphics are output - Javascript/applets/canvas/flash but I want to write the graphics logic in Java. ...

Session ID not the same in my java ee application

Hi Ive written a application with a custom login system. And then written my own security filter for it which sets the area that can be accessed. Yet i always get redirected to the login page and then to the index page with is the logged in home page. I have discovered that the session ID is different from when i login to when i try to ...

Session not staying active in my web application.

Hi In my web application the JSESSION isn't staying active. I have enabled a JDBC Store on tomcat but this has still not fixed it. Any other suggestions. Thanks in Advance Dean ...

Keep having to login in Web application

Hi I have written something using the j_security_check. Yet i keep having to login. My web.xml file looks like this: ` FORM /login.jsp /loginFailed.jsp <security-role> <role-name>admin</role-name> </security-role> <security-role> <role-name>user</role-name> </security-...

How can I get client infomation such as OS and browser

I'm using JSP, Servlet to develop my web application. I want to get client information such as: operation system, browser, resolution, ... whenever a client is using my website. ...

When is Java the right choice for Web-based applications

I've been doing some research into taking my programming experience and moving into the java programming marketplace, due to a combination of personal interest and local market forces. As you can gather from the title, the vast majority of my experience has been in building web-based sites and applications, and I'd like to move as much o...

How to implement a login page without code duplication

I am currently making a dvd browsing system using JSP / Java Servlets and am having trouble figuring out a way to make my login page a bit more efficient. My current login system does this: When a user submits the correct email/password combination, a servlet checks to see if the combination is correct and they are redirected to a lobby...

Easiest way to deal with sample data in Java web apps?

I'm writing a Java web app in my free time to learn more about development. I'm using the Stripes framework and eventually intend to use hibernate and MySQL For the moment, whilst creating the pages and general layout, how can I mock up some data easily? For example I don't want to be messing around with a backend database at this stage...

Create tasks in microsoft outlook using java

Please suggest how to create task in outlook by using java, it is possible? ...

MySQL like query runs extremly slow for 5000 records table.

I have this issue on our production server. The application stack is, Java Web App on Tomcat 6.0.18 iBatis data access layer MySQL 5.0 database CentOS The system is deployed on virtual server having around 256 MB memory. Real problem: The query like, select * from customer executes in around 10 seconds however if the following q...

Eclipse: Two web projects, one servlet

Hi, I use a library which includes, among other things, a servlet. I've fetched the source for this lib to a dynamic web project and it works fine. I'd like to make an example dynamic web application in another project which would just reference to the classes of this library. Is it possible to do it this way in Eclipse Galileo and de...

Choosing a Java Web Framework now?

we are in the planning stage of migrating a large website which is built on a custom developed mvc framework to a java based web framework which provides built-in support for ajax, rich media content, mashup, templates based layout, validation, maximum html/java code separation. Grails looked like a good choice, however, we do not want t...

How can I speedup Java web application compilation?

I have just started work on an existing Java web application and I find that it takes about 5-10 minutes for the application to compile and run. What are the common ways to reduce this time? It is my first time working on an application of this size. I am used to coding and testing incrementally and find this wait unbearable. Any help w...

How to get jersey logs at server?

I am using jersey for a REST WS. How do I enable jersey logs at server side? Long story: I get a clientside exception - but I don't see anything in tomcat logs [It doesn't even reach my method]. Since the stack trace is saying "toReturnValue" it did get something from server. But I don't know what the server said. Exception in thread ...

Does anyone know some good resources for Wicket Web Development?

I've recently "inherited" a web project from a workmate who left to join another company. Unfortunately for us he was the only Java developer so I don't have anyone around the office here that can help me. The project is written using the Wicket framework and this is not something I'm very familiar with (I've done a lot of ASP.NET and ...

Best practice for DAO pattern ?

I've seen a lot of codes use a service-dao pattern , I don't know the origin of this pattern . It force the front layer call service , then delegates some of the service task to dao. I want to ask : Does DAO layer do purely data access related task ? What about things like exception encapsulation? Is there any other pattern can be ...

Recommendations for compatibility between OSGi platform releases

Assuming that it's even possible, what would be your recomendations to make a bundle compatible between different platform releases? Specially between R3 and R4. Update about my requirements: The idea was to develop a web interface for a embedded device that currently runs an OSGi R3 container but that it could be upgraded soon to R4 (...

JSP and Javascript

Can anyone psuedo a solution to my problem, or just give discussion to help me find a solution? I've always found that using JSP to populate HTML is a very awkward solution to creating pages, and if you want to convert to AJAX almost always results in needing to rewrite the whole "component" or whatever it is your displaying. I need a ...

Raphael JS and Java web app

I want to use the Raphael Javascript framework to create some charts based on dynamic data coming from my Java web application. Is the only way to access this data from my web application through the use of hidden fields on my page which I can then lookup inside the Rapahel JS code? ...