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: client Which of course the user would have click through for the actual display. 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: 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: Possible to go to named anchor via ActionForward?

2005-04-21 Thread Jeff_Caswell
Jim, I have used: TabTitle in the jsp succesfully to position action output with anchors. I have not tried it but possibly something like: Hope this helps. -Jeff Is there any way I can set up an action mapping so that, if control is redirected back to the "input" JSP page, I can make it

Re: Static Access to MessageResources or Bundles?

2005-04-22 Thread Jeff_Caswell
Maybe a generic servlet style scheme similar to this: web.xml properties /path/to/properties/file/webapp.properties use servlet config instance at servlet init() to load (once): props = (Properties)config.getServletContext().getAttribute("webapp.properties"); then retriev

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: tiles-def: -Jeff I'm wondering if anyone has any tips on how to

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: 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: [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 structur

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: How to display vectors / beans data inside JSP using tags?

2004-12-30 Thread Jeff_Caswell
You probably want something like this: JSP: FormBean: public class MyForm extends ValidatorForm{ private String [] fooName = {"","","","","",""}; private String [] barText = {"","","","","",""}; private String [] bazText = {"",

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 b

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! J

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: 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