Java Tools Section Index | Page 2
How to protect directories with a password in Tomcat? is there any .htaccess-like way to achieve this?
To password protect your pages you can use a Realm.
Please referer at the Tomcat Documentation for detailed info, like the Realm Configuration HOW-TO. Please always read the documentation.
However...more
No errors are forwarded when redirect is set to true
No errors are forwarded when redirect is set to true
I use the following code to send a forward:
forward = mapping.findForward("cancel");
if (forward!=null) {
ActionErrors errors = new ActionErr...more
Opening new window or going back
Opening new window or going back
I have a form (reportForm) with two different
buttons. "Print" and "Cancel". When clicking 'Print'
I want to open a new window, that prints a report
using a bea...more
How can I index PDF documents?
In order to index PDF documents you need to first parse them to extract text that you want to index from them. Here are some PDF parsers that can help you with that:
PDFBox is a Java API from Be...more
How can I index XML documents?
In order to index XML documents you need to first parse them to extract text that you want to index from them. Here are some XML parsers that can help you with that:
See XML
Demo. This contrib...more
Exceptions that occur in an Action class can be catched in the Action class or handled by registered handlers, in the struts-config.xml file, that route control to specified error pages.
Exceptions that occur in an Action class can be catched in the Action class or
handled by registered handlers, in the struts-config.xml file,
that route control to specified error pages.
Exceptio...more
Is it possible to install multiple instances of Tomcat on one server to create a development, test and production version?
Additional info:
I am trying to create a seperate development, test and production environment on one windows NT-server. To ensure that each environment is completely seperated from all others, I ...more
I'm trying to use the ActionError facility in Struts 1.1-b3. I create and save my error in my action.
I'm trying to use the ActionError facility in Struts 1.1-b3. I create and save my error in my action. But when I try to render my error page, using this tag <html:errors/> I get this error me...more
Is it possible to use COM ports in TOMCAT on a Win32 system?
Is it possible to use COM ports in TOMCAT on a Win32 system?
I get the "Port COM1 does not exist." error message every time I try to access to the serial port.
Dynamic values for hidden fields
Dynamic values for hidden fields
I'm trying to set the values of hidden fields dynamicly, eg:
<form:hidden property="employeeName" value="<%= employeeBean.getName() %>" />
I get compi...more
What are the features of log4j?
What are the features of log4j?
Is Log4j thread-safe
Is Log4j thread-safe
Quick patch for jsp source disclosure vulnerability?
Jakarta Tomcat has released a new version that simply deactivates a default ${catalina.home}/conf/web.xml setting of an InvokerServlet.
However, for some people with legacy systems using type 1 ...more
How do I get system time in Ant?
<tstamp/> - check the docs for more detail.
What are all possible concurrent Lucene requests?
query
read doc
write
delete
optimize
merge
query
Y
Y
Y
Y
Y
Y
read doc
Y
Y
Y
Y
Y
Y
write
Y
...more