Have you tried getParent()?
public class A
{
public A()
{
B myB = new B();
}
public methodA()
{
System.out.println("Hola");
}
}
public class B
{
public B()
{
methodB();
}
public methodB()
{
((A)getParent()).methodA();
}
}
Phil
Hey,
I'm working on a picture upload site. I have 3 main pages:
1) Picture Type Choice
2) Upload Form
3) Thank You
There is a sessioned order number that is used throughout. It is created in (1) and cleared in (3). (2) and (3) check to see if the order number is still sessioned before they...
Yeah, that's what it seemed like at first.
Here's the DB structure:
OrderNumber mediumint(9)
ImageType tinytext
FileName text
FilePath text
Quantity tinytext
Size tinytext
Mount tinytext
Texture tinytext
Spray tinytext
Spot...
Figured it out:
Apparently, you can only access a column in a particular row ONCE, then MySQL doesn't like it anymore. So, I assigned the columns to variables and just used those, rather than call, for instance, objrs("FilePath") more than once.
Thanks anyway :-)
Phil
I've bolded the offending line:
<%@ Language=VBScript %>
<%Response.Buffer = True%>
<!-- #include file="SecurityHDR.asp" -->
<%
'****************************************
'* OrderForm.asp
'*
'* -initializes the order process
'* -retrieves stored order data from the database
'* -starts up and...
Hello,
If your image is in the same directory as the script, then change:
print qq(<h3><img src = "/A.jpg" alt = "should be pic ere"></h3>);
to one of the following:
print qq(<h3><img src = "A.jpg" alt = "should be pic ere"></h3>);
print qq(<h3><img src = "./A.jpg" alt = "should be pic...
Hello all,
I just installed MySQL on Windows 2000 Server, and am trying to rewrite my ASPs to interface with it. When I try to access one of the columns in the recordset, Microsoft Script Debugging pops up with an "Exception Occurred" error. In the command window I type in, and receive back...
Hello,
I have an applet for an image upload site, using Swing components. There is one user that, when he tries to load the applet, gets this error:
java.lang.N ullPointerException
at sun.java2d.SunGraphics2D.<init>(Unknown Source)
at...
I tried taking the CDate function out, I separated it back into 2 update statements, and output "err.number" for each one. It still doesn't work, and err.number is 0 for both statements. There are also no errors in the connection's Errors collection.
Could it have something to do...
I know the criterion is met. I put code in to search for the records before the UPDATE line to test this, and I've gotten a result. strDateComplete is in date format; as I've said, the code used to work. I also tried using 2 update queries, and that did not solve my problem either.
Here's the update code:
strSQL = "UPDATE OrderDetails SET Uploaded=True, ETADate=#" & cdate(strDateComplete) & "# WHERE OrderNumber=" & intJobOrderNumber
objcon.Execute strSQL
It's not in an If..Then statement, so it always executes.
I'm not sure if you wanted the whole...
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.