I am using mysql_pconnect to get a connection to my mysql database. I use it instead of regular mysql_connect because of the number of connections I have to make.
I get the connection at the beginning of my script and use it numerous times before the script is done.
I thought that...
What is the maximum value I can specify in the -Xmx JVM parameter on a 32bit machine?
I have 4 gig of RAM on the machine, but I get the following if I specify more than -Xmx1024m:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the...
I am attempting to deploy a web app to my tomcat 6 instance. I have created my war file which contains my app.xml context file (in the META-INF directory).
When I deploy the war (move it into the webapps directory), the app.xml file does not automatically get copied to the...
I accidentally erased my glibc RPM and now I get the following when I try to attempt any commands:
/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
I can't even ftp or ssh to the server.
Any suggestions?
I am trying to use a "logic:equal" tag in my jsp.
<logic:equal value="" name="SimpleListSettingsForm" property="totalsIndexed[?]" scope="request">
If I put a hardcoded value in the index (denoted by the "?") it works fine, but I have this code in a loop (logic:iterate)and the index needs to...
Anyone know a way to determine which submit button was clicked (assuming there is more than one)?
I need to determine which button caused an html form to submit. I was thinking of putting the code in the onsubmit() event handler of the form itself, but I don't know how to determine which...
I have an iterate process set up to loop through the values in an ArrayList.
I then want the value of the loop index (specified by the "indexId" attribute) to be used to get an indexed parameter from my ActionForm.
Here's a snippet:
<logic:iterate id="field" name="Template0Form"...
I am using a FileOutputStream to write binary (byte array) data to a file.
Right upon instanciation of the stream:
FileOutputStream fos = new FileOutputStream(new File("c:\\temp\\file.bin"))
I get 0xFFFE added to the front of the file. (before I even try to write to the stream).
Then when I do...
I've got a production MySQL database running on a Linux server, but do my development on a Windows laptop.
I recently overhauled an existing app and needed to write data conversion routines in order for my existing data to map to some new data layouts.
I'm running the conversion on my laptop...
I am using the forwarding capabilites of Java Servlets to forward a request from one servlet to another based on some input criteria.
The first servlet builds a cookie and normally sends it in the response back to the user. Then when the user sends a new request, the cookie gets sent along to...
I'm trying to do a rewrite using:
RewriteCond %(HTTP_HOST) ="admin.host.com" [NC]
RewriteRule ^(.*)$ https://www.host.com/admin [R=permanent,L]
But the rewrite doesn't happen.
Is there a way to see what's actually in the %(HTTP_HOST) variable, so that I know whether it's the RewriteCond or...
I'm looking for a good solution for hosting subdomains with IP based virtual hosting instead of name based virtual hosting.
I have an IP address from which I'm serving up SSL based web content. Because I'm using SSL, I can't use "NameVirtualHost".
I need to serve up pages from...
I have a Red Hat 9 server running sendmail. On it is running an app that periodically sends reminder emails to clients.
Everything runs fine except when the client happens to have an email address with my domain.
If I do a "hostname" lookup on my server I get "mydomain.com". If the email app...
I'm running a servlet/jsp app with a MySQL database behind it. One of my tables is used to buffer serialized email messages in a "blob" column.
I am using prepared statements to do my inserts and selects.
upon insert I do the following:
com.app.util.SomeObject someObject = ...
I need the ability to modify the "display" style of a <tr> element depending on a certain event.
If an event occurs I need to make the display style="none" if another event occurs, I need to change the display style back to "block".
I figured out how to do it in IE, but Netscape just sits...
I currently use Apache 1.3 connecting to Tomcat 4.1.18 on a Red Hat 7.2 box.
I'm using the old Warp (mod_webapp) connector to link Apache and Tomcat, but it seems to be causing problems with my DBCP JNDI connection pool resources.
I'm trying to figure out how to install the new mod_JK2...
I'm trying to send an email from a servlet using java mail. It isn't working because the SMTP server doesn't recognize the destination as a valid receipt host.
How can I use JavaMail in a servlet without forcing the smtp server to do "open relay"?
Does anyone know if it is possible to specify a "dead letter" address in Java Mail?
I need to be able to track emails that are undeliverable and so I need to specify some sort of return mail address.
That way someone can manually interject and handle those emails.
I have a JDBC connection pool set up and working, but if I get any kind of exception while processing my JSP, the connection can't be returned to the pool.
Is there a way to specify clean up code to occur in the finally clause in a JSP?
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.