Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!

meera sood

Ranch Hand
+ Follow
since Dec 18, 2001
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 meera sood

hi!
can anyone roughly giude me how to go about doing Exception handling in Struts.
Thanx in advance
Meera
15 years ago
yes, i think that must be the problem... i'll work on it and if i get any more problems, i know who to contact ....
thanx again....
Meera
15 years ago
well..tried the Cha-Cha-Cha... maybe i SHOULDtry the Irish Jig
anyways....here are my code snippets:

Struts Config :

and finally the select/ options tag....that is precisely where i am facing the problem... dont know how to write that...
rt now what i have written is :

doesnt look right to me... ...
Meera
15 years ago
i have already run the sample application...was able to make and run a few simple JSP forms also... it is just this listbox where i am facing a problem and it is really bugging me ... have used a String array in the form bean.... its just not getting populated...i mean the setter method is not getting called...
will wait for your reply...thanx
Meera
15 years ago
thanx for your reply...
well, i have tried out a few things... cant seem to get to populate by form bean with the data in the second list box. how do i do that...see i have made the form bean, registered everything with the struts-config, but my form bean is not getting populated. how do i go about doing that.
thanx again...
Meera
15 years ago
hi!
i am absolutely new to the Struts framework...
see, what i want to do is i have two listboxes on my JSP page. you can move objects from the first listbox to the second one. The first listbox has to be populated with options from a database(i need the IDs and need to show the Display name). On click of continue, whatever (the IDs assoiated with the Display names) has been moved to the Second list box has to be stored to my Data bean.
When i visit this page again, the second listbox has to be shown populated with the choices i had made earlier.
Can anyone pleeeeeeeeease guide me??? Any help will be greatly appreciated.
thanx in advance
Meera
15 years ago
Thanx a ton.... got it now....
15 years ago
Thanx a lot guys....
one more problem....if i return an array of the "object" class, can i typecast it to the required primitive datatype??
15 years ago
sorry if i didnt put my question across properly...
what i want to do is have a function :
createArray(String type)
{
.........
.........
}
i pass the type of array i want as this parameter(type) of type String, i mean when i call this function i will give the function call:
createArray(new String("int"));
or
createArray(new String("double"));
and my function should create an array of that type....
i hope i was clearer now. I just want to know if this is possible and how do i go about it...
Thanx...
Meera
15 years ago
c...the thing is that if i pass "double" to the function, i want to create an array of doubles, if i pass "int" to the function, i want to an array of ints to be created.... got it???
in the function it should take the argument and create the array of that type in the same way as it is done(as you pointed out to me.... )
thanx anyways...
15 years ago
hi!
i dunno if this can be done...but do help me out...
i have a function that creates an array.... it takes the type of the aray as an argument...
as in:
arr1(double)
if i want to create an array of doubles.... is it possible??? and how do i go about it....it is a bit urgent...
thanx in advance...
meera
15 years ago
hi everyone.
I have made an applet which is running in a frame. Now I want to redirect from here to an ASP, passing some parameters from the applet. I can achieve this through

now this opens the URL, but not in the same frame as the applet was originally running in.
Can somebody tell me a way to do it.
Moreover, I do not want my paramters to show on the address line...i mean i want to do something like a POST method from my applet to the ASP. Is there any way of achieving this??
Waiting for your replies.
Thank you in advance.
Regards,
Meera
15 years ago
hi mahesh,
thanx...well does this mean that if i create local instances of these private variables, i will have to set their actionListeners and all also again.... that'll be good as writing my very own JFileChooser ...right???
please help!!!
meera
16 years ago
thanx...
sorry for all this trouble..i managed to get the source code out of the src.jar file. Now what if i want to change the background and foreground colors of the directoryComboBox etc also...how do i go about that...
actually, am working on a project where the client wants real jazzy colors for the interface, so have to set the background and foreground colors of all the components....
thanx again for all the trouble...
Meera
16 years ago
p.s...
figured out what you are trying to tell me(well-kind of ).But where do i get the code for MetalFileChooserUI. Can you please help me out--its my deadline today!!! ...
thanx
Meera
16 years ago