igor kvak

Greenhorn
+ Follow
since May 28, 2008
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by igor kvak

thanks for your reply, but I've already solved it - I should use JREmptyDataSource

instead of

it is now
Hi,
I am new to JasperReports and I am trying to create a sample PDF report, but all I get is an empty PDF - no text, just a blank page.




The resulting PDF should a single text field.
Could you please help me what is wrong with my simple code?

Thanks a lot
well, if I use <Router> elements as children of root <Router> that would be cyclic reference, but I want to avoid that so instead of child <Router> elements, only IDs of these elements will be used - just like my example XML (maybe I should mentioned, that those numbers in <key> and <value> elements are router IDs, my bad...)
no
I really need
HashMap<A,A> because key and value are the same type as the class itself - once again: "key is destination router, value is next-hop router; and the class is router itself"

the problem is not how to marshall HashMap, but how to marshall hashmap that has cyclic referencies, e.g.:
A a1 = new A();
A a2 = new A();

map.put(a1,a1);
map.put(a2,a1);

Paul Clapham wrote:I can't even imagine why you would want to have such a class, let alone marshal it to XML.


implementing routing table - key is destination router, value is next-hop router; and the class is router itself - I know that it is quite an unusual data structure...

Paul Clapham wrote:However... can you give an example of what the marshalled XML would look like for a typical element of that class?


this would represent class A, where id=1 and map contains two entries:
key - object A with id 1; value = object A with id 2
key - object A with id 2; value = object A with id 3


so when marshalling HashMap, IDs will be used instead of real objects and when unmarshalling, IDs will be replaced with related objects
Hi,
Hi,
I am quite new to JAXB and I have a following problem:

I want to marshall this class:



I am getting cyclic reference exception

could you please help me or give me any hint?
thanks a lot
thanks for help
12 years ago
Hi,
could you give me some hint, how to setup a cluster? when I read WAS help page, they are always refering to Servers -> Clusters menu item, but I don't have one

could you please help me how to enable clustering on WAS 8 (the version number does not matter I think)

thanks a lot
12 years ago
thanks a lot - it works now

I use assembly plugin to copy all libraries to lib/ directory
12 years ago
Hi
I am trying to create jar with maven and I want also all resources (all .properties files and I have also .png files) to be included
right now all non-java (.class) files are ignored

here is part of my pom.xml file:


and here is also assembly.xml:


There is an article about resources on maven page, but they have all their resources in directery named "resources" and I do not want to do this way

could you help me, how to add resources (in my case .properties and .png files) into jar file?

thanks a lot
12 years ago
Hi!
This question isn't really connected to jsp coding but I hope you wouldn't refuse me
I'm going to purchase web hosting and the problem is that my web application is made in JSF.
And here comes my question: when webhosting announces that it has got JSP installed, does it means that my JSF application can be run there?
Quite a silly question, but it wouldn't be nice to purchase some wrong webhosting...

thanks
14 years ago
JSF
thanks, i finally solved it
mistake was in this line:

and the correct one is:
15 years ago
JSP
hi
i want to acces custom bean in jsp using expression language:


where empList is LinkedList<Employee> (stored this way: session.setAttribute("empList", list);)

i always get this error:
javax.el.PropertyNotFoundException: The class 'java.lang.String' does not have the property 'getName'. (but according to the way how I store list, I dont know why is it stored as String)

thanks for help
15 years ago
JSP
i've got a jsp which can read from file.txt that is included in .war
when user do something on the jsp, i want to write something into that file.txt
server is running independently on my jsp so i cannot restart it (i've got free hosting)
that is all
15 years ago
JSP
thanks for reply, but acording to the java.sun.com forum you have to restart server when you modify file.txt
and that is the problem
is there any other way?
15 years ago
JSP