Re: PDF Streamed To Client

2005-04-26 Thread Jeff_Caswell
I have successfully used the following technique for file download via an action: Set the mimetype in the web.xml Do nothing action always returns 'success' points to tiles def for file to be downloaded action-map: action path=/fileDownloadAction type=com.foo.action.SuccessAction

Re: Static Access to MessageResources or Bundles?

2005-04-22 Thread Jeff_Caswell
Maybe a generic servlet style scheme similar to this: web.xml init-param param-nameproperties/param-name param-value/path/to/properties/file/webapp.properties/param-value /init-param use servlet config instance at servlet init() to load (once): props =

Re: Possible to go to named anchor via ActionForward?

2005-04-21 Thread Jeff_Caswell
Jim, I have used: a href=myActionName.do#tabSetTabTitle/a in the jsp succesfully to position action output with anchors. I have not tried it but possibly something like: /forward forward name=failure path=/myfunctionDisplay.do#errors /forward Hope this helps. -Jeff Is there any way I can

Re: concurrency problem

2005-04-08 Thread Jeff_Caswell
Maybe I'm being dense here but: If every session contains a reference to the bean, and every thread is synchronizing on their own session; It would seem that there would not be any concurrency control. I would think that they all need to sync on the same object. JC

Re: Where is the documentation on how to get old source?

2005-02-03 Thread Jeff_Caswell
You can find it all here: http://archive.apache.org/dist/jakarta/ JC Paul Roubekas

Re: Where is the documentation on how to get old source?

2005-02-03 Thread Jeff_Caswell
Well, someone here may have a better answer; But in the past when looking for back-level source on some of the commons components, I used the jar file dates. Then located the source archive directory entry with a matching date. Hope this helps. JC

Re: PreparedStatements

2005-01-31 Thread Jeff_Caswell
And it would seem this may be the ptf: http://www-912.ibm.com/j_dir/JTOpen.nsf/8178b1c14b1e9b6b8525624f0062fe9f/a81403b611a0583686256bab006d7543?OpenDocument JC

RE: Handling the exceptions in struts

2005-01-11 Thread Jeff_Caswell
Miles, you can capture a stack trace from any throwable using a technique like: ByteArrayOutputStream baos = new ByteArrayOutputStream(); (new Throwable(s)).printStackTrace(new PrintStream(baos)); return baos.toString(); The result could

RE: Handling the exceptions in struts

2005-01-11 Thread Jeff_Caswell
You might investigate these links: Section 4.5 here: http://struts.apache.org/userGuide/building_controller.html and the corresponding javadoc here: http://struts.apache.org/api/org/apache/struts/action/ExceptionHandler.html Since I really don't know off the top-of-my-head... Good luck!

Re: How to display vectors / beans data inside JSP using tags?

2004-12-30 Thread Jeff_Caswell
You probably want something like this: JSP: logic:iterate id=col name=MyForm property=fooName indexId=i tr td html:text name=capRunControlForm size=16 styleClass=inputbox property='%=fooName[ + i + ]%'/ /td td html:text name=MyForm size=16

Re: [OT] Request an app test (free beer!)

2004-12-20 Thread Jeff_Caswell
Frank, Take a look here for some values: http://www.tolstoy.com/samizdat/sysprops.html Jeff C. Frank W.

RE: [OT]Threads and Servlets Question

2004-12-06 Thread Jeff_Caswell
As has been noted by others, JMS would be the better solution for an asynchronous 'process'. But, if you have to use threads then it is probably a better approach to create a thread pool at appliction initialization and have the actions use those threads via a common synchronized data

Re: data caching in web application

2004-11-29 Thread Jeff_Caswell
These techniques: http://www.javaworld.com/javaworld/jw-10-2004/jw-1018-filter.html http://www.javaworld.com/javaworld/jw-11-2004/jw-1122-select.html Used against a collection loaded at application init() Might be what you are looking for. JC

Re: Validator : network unreachable

2004-11-24 Thread Jeff_Caswell
Probably trying to do xml validation using the dtd specified on the doctype. Save dtd locally (and change reference) or make sure you have a network path to jakarta.apache.org JC

Re: Migrate xsl into jsp/struts

2004-10-19 Thread Jeff_Caswell
Maybe keep the xsl and do something along these lines: TransformerFactory tFactory = String stylesheet = existing.xsl; String sourceId = source.xml; Transformer transformer = StreamSource(stylesheet)); transformer.transform( , new StreamResult(response.getOutputStream())); Jeff C.

Re: Forward to a file on hard drive

2004-09-22 Thread Jeff_Caswell
I may be missing something here, but if the file is on the local client it would seem that the only way to display the local page is to return a page with a link to the local file: a href=file://c://client_local_file.htmlclient/a Which of course the user would have click through for the