ViewFileAction Help

2003-04-02 Thread White, Joshua A (CASD, IT)
Hello all, I am having a little trouble reading a file off the server and displaying it to the user for viewing. I am receiving the following error from explorer: Internet explorer cannot download ...viewFile.do?fileId=8 from localhost. Internet explorer was not able to open this internet site.

Cannot retrieve definition for form bean null - Whats the deal?

2003-03-27 Thread White, Joshua A (CASD, IT)
I have the following code in my struts config: ... form-bean name=jumpCenterForm type=form.JumpCenterForm / ... ... action path=/viewJumpCenter type=action.ViewJumpCenterAction scope=request

Where to place lookup val logic when not using an Action Form?

2003-03-24 Thread White, Joshua A (CASD, IT)
Hello all, I have a page which list users. The page is displayed by requesting the listUsers action. This action queries the database and places a Collection of user objects into the request for the listUsers.jsp page to display (Using the iterate tag). For conversation sake, say this user

Beginner question

2003-03-19 Thread White, Joshua A (CASD, IT)
I have two struts actions: insertIt - adds an item to the database. When successful, this action forwards to the viewIt action putting the newly inserted items itemId into the request. viewIt - views an item by itemId (retrieves itemId from request) When insertIt successfully

RE: Beginner question

2003-03-19 Thread White, Joshua A (CASD, IT)
context? _ Thank You Mick Knutson Sr. Designer - Project Trust aUBS AG, Financial - Zürich Office: +41 (0)1/234.42.75 Internal: 48194 Mobile: 079.726.14.26 _ -Original Message- From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003

When does the servlet reference in the ActionForm get set?

2003-03-13 Thread White, Joshua A (CASD, IT)
null. When does this reference get set? Should I not be receiving null? Joshua -Original Message- From: White, Joshua A (CASD, IT) Sent: Wednesday, March 12, 2003 6:41 PM To: 'Sri Sankaran'; Struts Users Mailing List Subject: RE: servlet reference in form bean in null? I

Caching Drop Down List Box Strategies?

2003-03-13 Thread White, Joshua A (CASD, IT)
Hello All, I thought I would be slick an attempt to cache the Collections used to populate my forms drop down list boxes instead of hitting the database every time (The values may change daily). The problem is that the inherited servlet variable and the getServlet method only return a reference

servlet reference in form bean in null?

2003-03-12 Thread White, Joshua A (CASD, IT)
Hello all, I am having trouble determining why the servlet reference in my formbean is null. I have created a class BaseForm which extends ActionForm. Any ideas? Joshua This communication, including attachments, is for the exclusive use of addressee and may contain proprietary,

RE: servlet reference in form bean in null?

2003-03-12 Thread White, Joshua A (CASD, IT)
the code to which you are referring. Mark -Original Message- From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 4:16 PM To: [EMAIL PROTECTED] Subject: servlet reference in form bean in null? Hello all, I am having trouble determining why the servlet

Struts bean:define tag questions

2003-03-10 Thread White, Joshua A (CASD, IT)
Ok, Imagine I have an object User (package test.UserVO) which contains another object Address (package test.AddressVO)which has a String property city. User and Address are both java beans. User has been placed in session scope as UserVO. How would I access the property city? I noticed that

REPOST - Using tiles mappings in global forwards

2003-03-05 Thread White, Joshua A (CASD, IT)
If the forward attribute of the action element can take both an actual path or a tiles definition to forward to, shouldn't the global forwards element have similar functionality? In Chuck Cavaness's book (Programming Jakarta Struts), he attempts to do this on page 347. I just can't get it to

Extra bytes at the end of the class file

2003-03-05 Thread White, Joshua A (CASD, IT)
I received a javax.servlet.ServletException: Extra bytes at the end of the class file when trying to get an instance of a singleton class (someclass.getInstance()). What does this mean? Joshua This communication, including attachments, is for the exclusive use of addressee and may contain

RE: Extra bytes at the end of the class file

2003-03-05 Thread White, Joshua A (CASD, IT)
On Wed, 2003-03-05 at 08:03, White, Joshua A (CASD, IT) wrote: I received a javax.servlet.ServletException: Extra bytes at the end of the class file when trying to get an instance of a singleton class (someclass.getInstance()). What does this mean? Joshua This communication, including

Beginner Tiles Problem

2003-03-04 Thread White, Joshua A (CASD, IT)
I have successfully set up tiles using a tiles-def.xml file. In this file, I have set up a definition for my.default. I have been successfully able to view this layout by inserting the following code into a jsp: %@ taglib uri=struts-html prefix=html% %@ taglib uri=struts-bean

RE: Beginner Tiles Problem

2003-03-04 Thread White, Joshua A (CASD, IT)
?def=my.default redirect=false/ So now you have a real url that points to a definition: /go.do?def=anydef. Saludos, Nicolas. -Original Message- From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED] Sent: Martes, 04 de Marzo de 2003 17:28 To: [EMAIL PROTECTED] Subject: Beginner Tiles

RE: [Microsoft][ODBC SQL Server Driver]Communication link failure

2003-02-25 Thread White, Joshua A (CASD, IT)
I have gotten this driver to work with mssql 2k and DBCP. Check it out! Joshua -Original Message- From: David Bolsover [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 6:18 AM To: Struts Users Mailing List Subject: RE: [Microsoft][ODBC SQL Server Driver]Communication link

Proper place/tier for retrieving DDLB Values

2003-02-18 Thread White, Joshua A (CASD, IT)
This is what I have done thus far: 1 Developed domain objects. 2 Developed persistence tier Problem: Where should the code which takes a key from a domain object (for example orderTypeId) and looks it up in a database to get the corresponding values? This type of logic doesn't really fit in the

Example of using a nested exception

2003-02-11 Thread White, Joshua A (CASD, IT)
Hello, I am looking for an example of using a nested exception. I have started reading through Chuck Cavaness' Programming Jakarta Struts book. He creates a BaseException class which supports nested exceptions. So far, I have not found where he uses it. Does anyone use nested exceptions which