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
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 =
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
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
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
And it would seem this may be the ptf:
http://www-912.ibm.com/j_dir/JTOpen.nsf/8178b1c14b1e9b6b8525624f0062fe9f/a81403b611a0583686256bab006d7543?OpenDocument
JC
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
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!
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
Frank,
Take a look here for some values:
http://www.tolstoy.com/samizdat/sysprops.html
Jeff C.
Frank W.
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
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
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
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.
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
16 matches
Mail list logo