Natasza Biecek

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

Recent posts by Natasza Biecek

Once I had similar problem...with old NetBeans (5.5 as I remember).
Try to invoke "clean" command on your project (or "clean & build"),
there's hope it helps...

"Sometimes you have to be silent to be heard", Stanislaw J. Lec
16 years ago
please, do not complain
new challenges, new opportunities, new...yyymmhhh

and remember: Friday is coming
17 years ago
for myself:
"We, children from Bahnhof Zoo" [Hermann, Rieck]
"Sztuka programowania mikrokontroler´┐Żw AVR" [Pawluczuk]
(in free translation: 'The art of AVR microcontrollers programming')

and because I really must:
"Core Java 2, Advanced features" [Horstmann, Cornell]

17 years ago

...when love is a gun...
[Funeral Of Hearts, HIM]
17 years ago

Sorry. I posted the wrong reply at the wrong place.
Sorry to disturb you again.

ok, there's no problem.

Eric, I assumed that you use servlet/jsp and bean, that was my fault...
Please, look at the code below - all set once again:

1) ( located in 'Test' package)

2) ( in 'Test' package, too )

3) RetrievePage.jsp

and let me put some remarks...

to pt.1
why population is stored as String? Don't you think that any numerical
type will be much better (for further calculations for example...)

to pt.2
in your original code ( the RetrieveData() method
does not return any data due to void at method you agree?
my implementation returns ArrayList, data is generated 'by hand',
so, please replace my code with yours to physically read data from db.
And of course add the rest of required stuff...

to pt.3
if you want to display this data, you have to create object
of CountryMethod class, then to call RetrieveData() method, right?
this method returns ArrayList object, so simply iterate through items
and print them out...

please, try to run my code 'as-is', then add whatever you need...

[ November 18, 2006: Message edited by: Natasza Biecek ]
17 years ago
getAttribute() of HttpSession returns object (java.lang.Object)

so, it has to be casted to string, if not - expect error like this:
"Type mismatch: cannot convert from Object to String."

17 years ago
if you retrieve your data in a servlet, simply put array as an attribute
of request before forwarding to JSP page.
I think, it would be better to use ArrayList class to store data, not Object[],
like this:

Then, using <c:forEach> JSTL tag, you can easily read item by item
and present it on the page:


17 years ago
It looks so nice doesn't work in my IE
of course there's hope it's something wrong with my M$ browser....but let's assume that not,
so, I did small test: at the beginning of changeuploads() function I added:
alert ( document.getElementById("uploads").tagName )
my IE showed 'FORM' (excuse me?) but Mozilla: 'SELECT' (uff...)
The first: please, use unique names and id-s...I changed id/name of your form adding '_form' suffix.
The second: construction of a table.
When user selects required number of uploads the innerHTML of 'mulup' span will be:
<TABLE><input type="file" name="file_1"<br>......</TABLE><input type="submit">
So, in my opinion, it would be better to do small redesign of this code, it means: to write
simple function returning full content of one row, then to invoke this function as many times
as required. In this way you will generate let's say - interior - of your table.
Finally, <table>,</table> tags and submit button have to be added.
Of course, you can append tr/td/input tags directly in a loop....but when you separate this piece of code
it will be a little bit easier to modify design of this table ( f.e. to set different colors for even/odd rows, etc..)

And the last's a hint only: instead of typing <option value=.....></option> twenty times,
you can use a the way, you can control max number of uploads, because
value of maxUploads variable may be set dynamically during page generation

Here you have code:



good move! so, what do you see when this line is uncommented...?
I've seen: "<tbody></tbody><tr><td>.....</td></tr>" as innerHtml...
and after very exciting reading of How to Build Tables Dynamically (the last example)
I added <tbody> to the structure of your table...

Originally posted by Eric Pascarello:
make sure that the name and id are the same.

aha, it's a next, new rows have ID and NAME set
to avoid empty result of getElementsByName() function...

it worked in IE6 and Mozilla 1.7.3,
now, please verify this script in Firefox...

[ November 02, 2006: Message edited by: Natasza Biecek ]
hi all,

so try to use Boolean class instead of raw boolean...
a piece of servlet

and jsp page:

17 years ago
Hi Tina,

(...)new instance should be launched and used. I understand a new instance of Acrobat Reader?

so, try to prepare a link to your doc in this way:
<a href="any_doc.pdf" target="_blank">a document</a>
it will open a new instance of browser window (with AR inside)
on every click...

17 years ago
so, Happy Birthday!

yyymmm.... Happy Registerday ?

17 years ago