web-applications

Determine Which Application Server our application is deployed to?

Our J2EE Application is deployed to JBoss and sometimes to OC4J . Can I know which one is being used? I hope there is a method returning the container information on runtime. ...

How do I configure Apache to forward some URLs to two resin containers?

Good day, I have two resin servers - r-server-a and r-server-b. I created two because both have web applications that need to be in the root context path '/' (and using same port '80'). However, both web applications need to see each other (i.e. access the other application's resources & pages). Which is why I thought I'd use an apach...

Can I write a single-tab web application using IE8?

My collegues facing one problem with IE8. they have one page for Product selection. now if user opens the page and selected one product as well as its some properties.. then he/she opes a new tab with same page... and selects a new product then the session used for page is shared by both the tab pages... so, can anybody provide solution...

What's the best way to synchronize the state of 2 complex object graph

Hello, I have a complex object graph to represent operation scheduling. At one point, I have to serialize the whole graph to the web UI (via XML/JSON) to let user modify the schedule using a Javascript based gantt chart component. After the user finished editing, the state of the graph in the Java/server layer have to be synchronized wi...

WebApplication Context files on Tomcat

I have a download service served using Tomcat 5.5.15. It is created by adding an XML file in $TOMCAT_HOME/conf/Catalina/localhost. E.g downloads.xml for http://example.com/app.downloads/ <Context path="/app.downloads" docBase="Z:\Sites\example.com\downloads\"/> After Tomcat restart the context file is sometimes deleted(not always), an...

How to create the first administrator user of an application?

Consider a simple web application that accepts user logins. Each user can have a profile (read-only, normal, administrator etc) and each profile dictates the user’s rights (he can only look at data, he can modify data but only if it is its own, he can do everything if he is an administrator etc). Only an administrator can create other u...

Error opening PDF in browser - what HTTP header values should I use for streaming a PDF over https?

I have a J2EE webapp which is used to download a generated PDF served by an HTTP servlet. When running over SSL in production the users are getting the error message There was an error opening this document. The file cannot be found. in Acrobat when they choose to open the file in the browser instead of saving it to file. If they ...

Pros and Cons of the use of DAO pattern

As I mention, I'm interested to know what do you (as experienced developers) thinks about the use of DAO pattern, specifically within a Web Application. If possible what advantages have you found, or consequences of it use. Thanks. ...

How to get Hibernate configuration properties?

I`m using hibernate with jpa, and it is configured with persistence.xml Is it possible to get hibernate connection properties from web application? Thanks. ...

Are there any open source or low-cost online auction software packages available?

I'm looking to create an eBay like website for a niche market. I would love to have eBay functionality from 5 years ago. I'm guessing on the timeframe, but what I mean is that I don't need 90% of the functionality that is there... no APIs, nothing fancy... just an online auction site. Are there any open source packages avaialble for me ...

Should the jndi name for a datasource be looked up by a ServiceLocator?

I have a J2EE webapp which is used to upload a file which is then processed by a database procedure. Because we do not want the webapp to have to wait until the database procedure completes, it is executed in a different thread. The process running in the separate thread needs to obtain and close its own connection. The webapps usually...

Can DB2 tell a web-app when a table data is updated?

I have a table of non trivial size on a DB2 database that is updated X times a day per user input in another application. This table is also read by my web-app to display some info to another set of users. I have a large number of users on my web app and they need to do lots of fuzzy string lookups with data that is up-to-the-minute accu...

How to design/plan for web application development?

I'm interested in learning how to design/plan for web application development, in a multiple developer team scenario. Assuming the role of "Project Manager/Lead": What "documents" are needed for successful web application development? What UML diagrams are needed and to what degree? In the design/plan phase does each - as per use ...

Call function periodically in Java

we need run one function periodically in Java web application . How to call function of some class periodically ? Is there any way that call function when some event occured like high load in server and so on . what is crontab ? Is that work periodically ? ...

Export to pdf on the client or server side ?

My client side application is using jqgrid that requests the server side, which in its turn queries MySQL and sends back the resultSet in XML format. I'm willing to add the export to PDF functionality in the client side And I was stumped on how to go about it. Please any indications? ...

ASP.NET web application role based security

We are writing a web application to be deployed on our intranet. We want to implement role based security but would like to not write it all from scratch. Is there anything built into .NET to do this or can anybody recommend a tool. ...

Should I implement a custom properties file based authorization tag to go with authz from Acegi Security?

I'm searching for the best way to handle view-level authorization (where you hide markup based on a user's roles). The typical way to do this is with the Acegi Security authz tag, as follows: <authz:authorize ifAnyGranted="ROLE_FOO, ROLE_BAR, ROLE_BLAH"> <!-- protected content here --> </authz:authorize> The problem with that appro...

Tomcat parent webapp shared by configurable children webapps

Currently, we support many clients using the same web app, but each client has a different configuration for accessing their database, setting files etc. As the client list grows, updating the web apps is becoming increasingly arduous, and the duplication of resources is a waste of memory, file space, etc.. What we'd like to do is have...

Switched to Snow Leopard: HTTP-Requests stopped working in simulator (WebApp)

Hi! I've created a web app in Mac OS 10.5 which receives data by sending http requests like this: var http = new XMLHttpRequest(); var url = "http://www.test1234.com/data.php?param1=" + param1 + "&param2=" + param2 + "&param3=" + param3; http.onreadystatechange= function() { var result= null; switch(http.readyState) { ...

iPhone Safari Web App: Seeking overview of iPhone-specific features

I am trying to get an overview of what kind of native iPhone features I can get access to when I write a Web App (using html/css/javascript, running in Safari). Meaning: I like to know whether I can get access to features specific to "smartphones" in general and iPhone/iTouch in particular (accelerometer, address book, photo library, th...