Here's what I found out...
First of all, I was using a mysql_pconnect because I wanted to avoid the expense of getting a new connection each time my php script was activated. pconnect allows me to get one connection and then just keep it available each time the connection is needed.
My...
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...
I think the problem is that a servlet (which is what Struts is using under the hood) will only send one response back to the client. Because you're writing to the response output stream which is going to a new client window, there is no way to get the parent window to receive an additional...
It's possible that you need to use an <html-el:form... tag instead of <form.
I think the html-el tags only work if they're nested inside of an <html-el:form...> </html-el:form> tag set
-G
It looks like you're nesting some double quotation marks which makes the textarea.maxchar look like it's outside the quotes. That would make it look as if it's an attribute instead of the value of an attribute.
try either escaping your internal quotes with a backslash or using apostrophes...
The "property" attribute in your <html:text... tag will try to map to a getter method within your form called getCcNumber().
The following should get you what you're looking for:
...
<td>
<html:text property="ccNumber"
...
in the form class...
public String getCcNumber() {
return...
It is possible to reference an action via HREF. You only need to make sure the path specified is correct for your application. Using "/" at the front of your path will cause the browser to attempt to get/post to the root document directory for your domain.
I believe the log4j.properties file isn't loaded until the first time you use a Category or Logger within your application.
The <load-on-startup> parameter will be loaded right away by your servlet container.
Your "previous" button and your "edit_step3" button both use the same property value.
Does your action differentiate between the two correctly?
Your "previous" button submits forms[1] in the onclick event. Is the html:submit tag for that button inside of forms[1]? It's possible that the...
How is your main window set up that the results of your action show up in a different window?
Are you using a "target" attribute on your form or something different?
-G
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.