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
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.
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
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
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
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
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
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
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
Frank,
Take a look here for some values:
http://www.tolstoy.com/samizdat/sysprops.html
Jeff C.
"Frank W.
You probably want something like this:
JSP:
FormBean:
public class MyForm extends ValidatorForm{
private String [] fooName = {"","","","","",""};
private String [] barText = {"","","","","",""};
private String [] bazText = {"",
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
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
And it would seem this may be the ptf:
http://www-912.ibm.com/j_dir/JTOpen.nsf/8178b1c14b1e9b6b8525624f0062fe9f/a81403b611a0583686256bab006d7543?OpenDocument
JC
You can find it all here:
http://archive.apache.org/dist/jakarta/
JC
"Paul Roubekas"
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
16 matches
Mail list logo