Hubert Pernegger

Ranch Hand
+ Follow
since Apr 11, 2006
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 Hubert Pernegger

hi,
I'm trying to highlight my the search pattern in my jsp page, it works, if I'm trying to do it like that:



but if I do it that way,it doesn't work:

14 years ago
hi soumya,
thanks for your amazing help....
I didn't get it to work with a HashMap, but by returning a list

thank you very much
14 years ago
hi soumya,
sorry for replying to you so late, but I can't get it to work, maybe (quite sure ) I'm too stupid,

but I have done as you said, that the entire method, where I want to count the entries:



but I have a problem I get a nullpointer execption at that line:



the problem is that this method is separated from the form class and the action class....that means in the action class I invoke that method....

thanks for your help
14 years ago
hi,
sorry if I bother you once more,
but I get a nullpointerexception doing it in that way...(only need the amount of entries):

14 years ago
ok, hi,
I have done this, I count the entries in my form and have their a getter and setter....

but I don't know to invoke the getter in the jsp:
have tried like that: (I know that's a stupid question)
that's a part of my jsp page:
it is that line where I have tried:
</h3><%= proteinPeptideForm.getNoEntry(); %></td>

14 years ago
hi,
ok...
it is not the same function, little different, I only want to count the entries, that's it:



but I cannot do like proPep.add(noEntry); because that doesn't work, and I cannot do it with a setter and getter because the pair only exists in the for loop......
when I could do it with getter and setter then i just can get the noEntry with kind of <% proPep.getNoEntry()%>
or like that....or?
or shall I create the ProteinPeptide pair outside the for loop.....
14 years ago
hi soumya,
not bad, respect....that works.....

I have another question, if you don't mind:

I have tried in my logic:iterate loop to count the whole entries and then display the number,
i have tried it with indexID and bean:size but i didn't got it to work as I wanted to....

could you help me, because my problem that I want first (on the top of the page) to display the amount of entry and then interate over the loop to display the entries but with indexID it doesn't recognize the variable, of course and I don;t know how

thanks and greetings
14 years ago
hi soumya,
ok, I have done that....



but I get a nullpointerexception at this line:



thank you very much
14 years ago
hi soumya,
thanks for your help, I really appreciate that...
but, I don't know how many entries I will have....ok, I can make a count() in my sql statement....that still clear.....

I'm also clear with pair one, there I set the counter....ok,

but what you are doing in pair 2 and 3......, because I cannot set the counter for the other pairs, I can set the counter only once....the rest I have to do in the jsp.....

sorry, that is beyond my horizon...

ok, I have tried that now......



I have done a count in the sql statement...but get the following error:
14 years ago
hi,
I got it to work, but it is displayed the same way like before...
14 years ago
hi soumya,



that is a part of my method...
what i don't understand where I shall put my setter....I have tried it like you can see above....

tuple[6] = 1;
pair.setCounter((Integer)tuple[6]);

but it doesn't work, because I get a arrayoutofbound exception....it is clear why, because there are exact 5 objects selected by the SQL Statement,
so how I should do that

14 years ago
hi,
joop, that exactly how I want it...
but I don't know whether it is working so far because i get always that strange messages:

javax.servlet.ServletException: No getter method for property: "count" of bean: "proPep"

although there is a getter and a setter....I don't know why

can I hardcod that value too, because it should be always 1
14 years ago
hi soumya,
i didn't get it...
should count contain the value how often name of protein and accession code appears in the set or how often I want it to displayed (because I only want that displayed one, so the value could be hardcoded)

thanks
14 years ago
hi,
at the moment I display my entries the following way:


Accession Code Name of Protein Peptide Sequence Length of Peptide Seq Start in Protein Length of Protein
gb|AAX33375.1| RH43429p [Drosophila melanogaster] WRWSRWRR 8 38 124
gb|AAX33375.1| RH43429p [Drosophila melanogaster] RWRRWRR 7 42 124
gb|AAX33375.1| RH43429p [Drosophila melanogaster] RWRRWSR 7 45 124
gb|AAX33375.1| RH43429p [Drosophila melanogaster] RWRRWWR 7 33 124



but I want that Accession Code and Name of Protein is only displayed once, is that possible with logic:iterate

thanks for help
14 years ago
hi,
ok I have put all in one line and I get the same error again that I have posted in the first post.

ok it seems I have both installed: /usr/java/jre1.5.0
and /usr/lib/jvm/java-1.4.1-gcj

in eclipse I'm using the jre1.5.0, but on the command line it seems that it is looking in /usr/lib/jvm/java-1.4.1-gcj
14 years ago