Sacramento Java User Group
June 2004 - File Transfer With Live Transfer Status & Cancel Feature
![]() |
|
Presentation |
Controller |
Notes |
|
|---|---|---|---|
|
Mapping |
Class |
||
| logon.jsp | logon.html | PrepareLogonAction.java | Logon screen with user name. Must login before menu is accessible. |
| menu.jsp | menu.html | PrepareMenuAction.java | Menu with access to logoff & downloads. |
| download.jsp | download.html | PrepareDownloadAction.java | Start or cancel a text message download. |
| {text message} | downloadStart.do | DownloadStartAction.java | The downloaded text message. Accessible only through the [Download] link on the Downloads page. |
|
Service |
Controller |
Model |
Notes |
||
|---|---|---|---|---|---|
|
Mapping |
Class |
Key |
Class |
||
| Logon | logon.do | LogonAction.java | logonForm | LogonForm.java | Verify the user name is not empty. |
| Downloads | downloadStart.do | DownloadStartAction.java | Returns a plain text message consisting of 100 lines of text. | ||
| downloadCancel.do | DownloadCancelAction.java | Cancels incomplete download transfers. | |||
Notes
Requires: JBoss, MS SQL Server
The examples presented use HTTP only. They are not dependent upon JavaScript.
Installation Guide
Download ZIP file
and unzip to an empty folder.
Start MS SQL Server.
Run the SQL scripts in Query Analyzer:
- /sql/install/Create DB.sql
- /sql/install/Create Objects.sql
- /sql/install/CreateLogin.sql
- /sql/install/Populate Base.sql
Deploy the EAR file to your JBoss server.
Browse the application at http://localhost/tsg/
In order to build the application you will need to modify the Ant build.xml script. Adjust the file paths to your installation.