Is there a reason you don't use an ActionForm and do the validation in the validate method: public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ... }
http://courses.coreservlets.com/Course-Materials/pdf/struts/08-Struts-Manual-Validation.pdf
Using Javascript I need to be able to access select menus using 'getElementById(...)'. But html:select doesn't print an "id" attribute. Any suggestions how I can get an "id" attribute in a select menu (short of writing my own taglibs)?
If I end up having to use regular select menus (not...
I need to create a unique directory name but I see a problem using the following approach.
if (!Directory.Exists(path))
{
Directory.CreateDirectory(path);
}
The problem is that another process could create the directory after the Exists method is called.
if (!Directory.Exists(path))...
I'm looking for a collections object equivalent to the java.util.Set.
Basically, it should hold a list of objects without duplicates. That's pretty much like a Hashtable except I don't need to store name/value pairs.
Thanks.
I have a PERL script that runs fine from the command-line. But when I run it over the web, it stops when I try to do the file I/O. I don't see any error messages, it just stops.
This is the script:
use strict;
print "HTTP/1.0 200 OK\n";
print "Content-Type: text/html\n\n";
print...
I'm new to SQL Server and am trying to find out if it provides a way to keep a history of row-level changes on specified tables.
In Oracle, there's a tool called Workspace Manager that allows you to keep a history of all changes made to a table - versions of the row are saved so all changes...
In this situation I cannot use a "ps -ef" because I am launching a Java process, and there is no way to differentiate among the different processes using a grep. So...I have to capture the PID.
I need to start a process in the background and using nohup, and I need to capture the PID of that process. I know that I can use $! to capture the PID of the last process started in the background, but that doesn't work when using nohup.
Any suggestions how to capture the PID when using nohup...
I am writing a ksh script to be run from cron. In the script I execute a command, which I run using nohup when working from the command line. If the command is run from cron (as root), is nohup still necessary?
I need to be able to capture the PID of a new Java process as it is started. Is there a way to somehow execute a java application in HP-UX and capture the PID for that process?
On HP-UX 11, how can I check the number of SEMMNS currently being used? I know how to see the total number allocated, but I can't see how many are actually being used to I know if I need to allocate more for my new Oracle instances.
On HP-UX 11, how can I check the number of SEMMNS currently being used? I know how to see the total number allocated, but I can't see how many are actually being used.
I am trying to track down who is logged into my instance so I can let them know I'm taking it down. Someone is logged in under a "generic" logon, so I can see (from v$session) when they logged in...but how can I get their IP from the data dictionary so I know who it is?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.