Re: ServletUnit with Struts

2001-08-25 Thread Ted Husted
[EMAIL PROTECTED] wrote: The solution I am now pursuing, so far with success, is removing almost all of the application-specific meat from my Action subclasses. I will delegate to a simple command class from the action. The command class will take input paramaters, access the model layer to

Re: generic token manager?

2001-08-25 Thread Ted Husted
First, be sure you have had a look at the Action token methods: http://jakarta.apache.org/struts/api/org/apache/struts/action/Action.html As to whether an ActionForm has been populated, one approach is to put some type of semaphore in the form, that is initialized to false or null, but that

Javascript bean message tag

2001-08-25 Thread Olivier Houyoux
Hi all, To summarize my problem, I try to retrieve an internationalized message with the bean:message tag, from a Javascript function. The attribute key of the message tag must be a function parameter (e.g. the simple example below). But I always got an exception telling me that the key

Image display problem

2001-08-25 Thread s k m
Hi Friends, We are facing a problem with image display using JSP. When the page is being displayed for the first time then the images are being displayed correctly. However when the same page is being displayed again (after a validation failure) the images are not being displayed. The same is

RE: ServletUnit with Struts

2001-08-25 Thread Michael Nash
Jim: One of our contributors has just recently integrated Cactus with our framework, and Struts components can be tested that way as well, and we've used Junit for some time too. You may find some useful code for what you're doing that way... I know he did a lot of work getting the

RE: Image display problem

2001-08-25 Thread Jay Patel
Sandeep, When you specify an image src as images/foo.gif that image will be fetched from where the context of the servlet or jsp. i.e. if the if the jsp is /app/jsp/bar.jsp, then the image will be looked up as /app/jsp/images/foo.gif for that jsp. Same image src will render differently for jsp

Re: Re[2]: Digester Help PLEASE

2001-08-25 Thread martin . cooper
Can you post (some of) the debug output you're getting from the Digester? That might help us see what's going on. -- Martin Cooper - Original Message - From: Sean [EMAIL PROTECTED] To: Struts Users [EMAIL PROTECTED] Sent: Friday, August 24, 2001 7:21 AM Subject: Re: Re[2]: Digester

Re: Re[2]: Digester Help PLEASE

2001-08-25 Thread martin . cooper
Also, I forgot to mention - since you're using the Commons version of the digester, rather than the one built into Struts 1.0, you might want to look to the jakarta-commons mailing list for help, since that's where the active development is happening. -- Martin Cooper - Original Message

Re: Javascript bean message tag

2001-08-25 Thread martin . cooper
Remember that JSP is executed on the server, when the page is being generated, but JavaScript is executed within the browser. The bean:message tag will be evaluated before the page is sent to the browser, so you can't pass a browser-side variable to it. What is it that you are trying to do?

Re: Struts Fast collections, deprecation

2001-08-25 Thread martin . cooper
I assume you're using Struts 1.0? What happened is that a number of pieces of Struts were recognized as having value outside of Struts. FastTreeMap is one of those pieces. A separate package, called Collections, was created in the Jakarta Commons project as a home for some of these. (Other

Re: Index within iterate tags

2001-08-25 Thread martin . cooper
Not quite. You need to specify the property attribute instead of the name attribute, like this: html:hidden property=my_hidden_field_name value=%=myId%% -- Martin Cooper - Original Message - From: Heritier Arnaud [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 24, 2001

Re: Problem with org.apache.struts.taglib.form avd VAJ3.5.3 andWTE -errata corrige-

2001-08-25 Thread martin . cooper
The 'form' taglib is obsolete, and actually only existed for a fairly short period of time. You should be using the 'html' taglib instead. -- Martin Cooper - Original Message - From: Ernesto Di Blasio [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 24, 2001 5:30 AM

Re: web.XML - lookup values?

2001-08-25 Thread martin . cooper
In the servlet section of your web.xml file, you can define an init param like this: init-param param-namedate.format/param-name param-valuedd, MMM, hh:mm/param-value /init-param Then, in your code, you can access it like this: String dateFormat =

Re: Re[2]: Digester Help PLEASE

2001-08-25 Thread Sean
There is no debug output, there in lies the problem. I am getting nothing, it is executing successfully but I get no objects created no nothing ... The patterns should work, the data file is valid etc ... any ideas? Sean - Original Message - From: [EMAIL PROTECTED] To: [EMAIL