Trevor Whitehead

Greenhorn
+ Follow
since Oct 16, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Trevor Whitehead

local variables can only be marked final
what is the purpose of putting the info on the clients machine directly why not give them the option to download?
19 years ago
Hi Kri,
Narrowing (explicit cast) means you want to shove something big into something small (float --> int) and you need to let the compiler know that your aware that there could be a "possible loss of precision". Widening (implicit cast) doesn't require you to write the cast, the conversion will happen automatically beacuse the compiler knows a byte value will fit inside an int .

Originally posted by kri shan:
What is the difference betwen type casting and narrowing?

19 years ago
Also spend some time learning about access modifiers (public, private, protected, default).
19 years ago
Hi Maen,

check out Programmer Certification Study FAQ. There is lots of useful stuff there.
If your using the Bean tags or HTML tags in your iteration set the filter attribute to true. Check out web page
for more information.
19 years ago

Originally posted by bhumika mehta:
Hi ,
In my project i have one jsp page with 5 buttons and each button has different functionality based on button click i want to call respective Action form and in my action class (only one) i want to check which button is clicked.
please tell me do we have any tag in struts for pagination.



hi bhumika ,
In most cases there are several benefits to a single ActionForm (manageability, relationship preservation, etc...). It sounds like you just want to perform a defined operation in your Action class based on which button is selected, if this is the case check out the DispatchAction or DispatchLookup Action if you don't want to use JavaScript buttons. Let me know if you need more info.
19 years ago
The pasted code is not setting any of the parameters...
proc.setString(1, beanName.getSomeValue()); should have 200 of these.

Originally posted by bethanapalli kumar:
Hi

I am calling a oracle procedure,in which i am sending 200 parameters values,i would like to know what are the values set to each parameter....is there any way.....

Connection conn = null;
CallableStatement proc = null;
StringBuffer sb=new StringBuffer();
sb.append("{call PKG_FORMS.CREATE_FORM_76()( ");
sb.append(" ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?");//40
sb.append(" ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?");//40
sb.append(" ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?");//40
sb.append(" ,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?");//40
sb.append(" )}");
proc = conn.prepareCall(sb.toString());
proc.setLong(1,insp.getCaseNumuber());//NUMBER
-
proc.execute();


i am getting following oracle error

ORA-06550:line 1,column 7
PLS-00801:internal error[22503]
ORA-06550:line1,column 7:
PL/SQL:Statement ignored

Now i would like to know what values are passing through to this oracle. procedure.....



Thanks
shanta.B

Originally posted by Marc Peabody:
Shouldn't the form name in validation.xml be inquiryForm?



I agree, the form name in validation.xml should be the same as the action name in the configurations file.
19 years ago
are any of the form elements validating?
19 years ago
use the onClick attribute to submit the form.
19 years ago
on reset you can drop the bean reference from the session or have a clearValues method in your bean that will clear all bean values.
19 years ago
This type of thing should only be done by a DBA. Oracle can and should manage this process on its own.
19 years ago
your logic tag is fine. Could you post declare, setter and getter for blnRecsFound. What is the bean scope in JSP?
19 years ago