web-applications

Manually generate EJB client jar with Sun Application Server 8.2 / Netbeans project

I have a netbeans / Sun Application Server (Some EJB use) project which we've been building manually and now trying to move to an automated system. Software Used: Netbeans 5.1 Java 1.5 Sun Application Server 8.2 Netbeans used Ant so taking the actual build process out wasn't that complicated except for the EJB part. The normal buil...

Restricting the use of back button without JavaScript

I'm currently involved in an ASP.NET project where I need to restrict the users ability to go back in the page structure using the back button. It is essentially a wizard style navigation and I don't want to give the user the ability to go back from the last step and re-submit the data. JavaScript is not an option unfortunately, so I "so...

How do I maintain state across multiple web servers?

Can I have multiple web servers hooked up to a SQL Server cluster and still maintain a user's session? I've thought of various approaches. The one suggested by the Microsoft site is to use response.redirect to the "correct" server. While I can understand the reasoning for this, it seems kind of short sighted. If the load balancer is ...

Make registered users have its own url

Hello. I want to build a web application where users can register and have a profile. People can visit the profiles adding the user name in the url like this. http://mysite.com/john How can I create this url for each registered user I taught using mod_rewrite to rewrite the url but are there any other aproaches? by the way I want to...

GWT: what are the best practices for building a web2.0 interface with GWT?

I am no artist/designer so usually my GUIs well, you know... I've tinkered a bit with GWT and I was able to get sensible results but I feel I have used contrived ways of getting those results. If the community feels this question could help: please put one recommendation per answer. ...

How to implement tab containers in web-application?

In modern web browsers we can work with multiple contents in parallel by using tab containers. It took me quite some time to mimic a similar behavior within a webpage of a web-app by using a library called Struts Menu. The solution as far as I understand is basically a combination of using CSS with calling JSP pages. I was wondering if ...

Maven - Include Different Files at Build Time

I have ten WAR files, all of which have nearly identical code and markup. The only differences lie in the images, CSS and Messages. I hit on the concept of Profiles but I haven't quite groked it yet and I'm not sure if this can handle what I need it to do. Basically, I want a base project with different profiles for the 10 different WAR...

Java Web Application Configuration Patterns

Are there any patterns or best practices that can be used to simplify changing configuration profiles for java web applications across multiple environments. e.g. JDBC URLs, SOAP end-points, etc. As a bit of background to help clarify my question, I work with several large java web applications that during any given release cycle move...

Required language, tools and approach for a scalable web application like twitter

Hi, Incase if you are to develop twitter today what language, tools and approach will one take. How will he start from the very frugal configuration and gradually scale to the levels twitter has reached today. Incase if you can provide direct responses like (PHP+ Apache+ memchached+ MySQL) or (JSP+TomCat/Glassfish+ MySQL / other db) et...

Running a java application through shell script in a JSP/Servlet

I am running a shell script through a web application. This shell script looks something like `#! /bin/bash user="" pass="" db_url="" db_instance="" sqlplus -s $user/$pass@$db_url/$db_instance @ ./SqlScripts/foo.sql sqlplus -s $user/$pass@$db_url/$db_instance @ ./SqlScripts/bar.sql CLASS_PATH="./lib/*" java -classpath $CLASS_PATH pack...

What are the best tools to develop mobile web applications in different mobile Operating Systems.??

Hi., As We are planning to develop mobile web application(aka, widget) for our e-commerce store. These applications should be downloaded and do start shopping "on-demand". As there are different mobile Operating Systems. As I am seeing there are 5 major OS to develop my storefront mobile version. 1) Symbian S60 2) Iphone 3) Windows CE...

How to Maintain a persistent state of the drop down?

Hi All, I am making a simple web app that has drop down list in the first page in a form tags. Now wen I change the value in the dropdown the form is submitted. On the onchange I have made call to create a query string custom JS function of the selected Index. Now I want the drop down list to maintain its state; keep the last selected va...

Using JavaHelp with a web app

We have a system where our front end is either a Rich Client application or a web interface into the back end. We are working on adding context-sensitive help to our system, but we need to use the same base configuration files - i.e. the context-sensitive help files would need to be the same, and preferably use the same system. I was l...

Loading Spring Context Dynamically at Run-time in a Web Application.

Hello Everyone, I'm converting a standard Java Application that uses Spring Framework into a Web App. This application loads new Spring Context based on run-time parameters, that was done using ClassPathXmlApplicationContext/FileSystemXmlApplicationContext. So my question is how to do the same in a Web Application given that I already...

Integrating my program with a web2.0 website

I'm creating an ELIZA-like chatterbot, and I'd like to calibrate it with Omegle, using what the other person type as the input. If it was a regular HTML page, I could parse it and send back the response to some script, but checking the source code, I've noticed that the entire page is created using Javascript, but obfuscates the entire...

htdocs path in linux

Hello, I am working on linux server through ssh and want to know where to put html and php files (the htdocs folder) but its seems to me the servers is running lighttpd My directory structure looks something like this. ...

SQL primary key - complex primary or string with concatenation?

I have a table with 16 columns. It will be most frequently used table in web aplication and it will contain about few hundred tousand rows. Database is created on sql server 2008. My question is choice for primary key. What is quicker? I can use complex primary key with two bigint-s or i can use one varchar value but i will need to con...

Are there any web apps that do user stories cards?

We do distributed agile development and could really us a solution like story cards on a wall/board, only on a webpage where you could easily drag and drop them. Any suggestions? Thanks. ...

webapp vs. CMS - the same or not

I understand the classical definition of a CMS: it's a "webapp" the main purpose of which is to handle "content", probably that's generated by its users (kind of like all of us here at SO and the content we provide is text and code). I also always got the impression that creating a CMS is supposed to be a Really Tough Thing. But how so?...

How to submit new entity as well as clear $anchor.task?

Using the Angular framework, how do I have the "submit" button both update the current entity as well as clear the anchor ID - I basically want to rapid-fire add entries, but it always turns my add form into an edit form. Here's my current div which isn't working, it's like it's ignoring the "$anchor.task=null"... Note that the "Add New...