[java ee programming] Nonstatic method

2011-07-26 Thread Rafał Laczek
In class 1st I have static method. I must change it for not static but I have a problem to pass result of this method to class 2nd. Can somebody advise. Class 1st.java boolean isNyHitt=false; public boolean isNyHitt(){ return isNyHitt; } Class 2nd.java Hi

[java ee programming] Nonstatic way

2011-07-26 Thread Rafał Laczek
Can you please advise how to solve it. innlevertEiendel in class B is null Class A{ public InnlevertEiendel getInnlevEDUpdate(){ return innlevEDUpdate; } public void setInnlevEDUpdate(InnlevertEiendel innlevEDUpdate){ this.innlevEDUpdate = innlevEDUpdate; } Onclick(){

[java ee programming] Constructor

2011-07-26 Thread Rafał Laczek
  Hi,   In base class I have constructor with parameters. In subclass I must have constructor without parameters. I can’t add non-parameters constructor in basic class. How to do it? Regards, Rafal   -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE)

Re: [java ee programming] Nonstatic way

2011-07-26 Thread shivakumar grande
WHich i already sent you in the previous mail. InnlevertEiendel * There is no class created with above name. * * * *First class:* package com; public class A { /** * @param args */ InnlevertEiendel inner; public InnlevertEiendel getInnlevEDUpdate(){ return inner; } public void setInnlevE

Re: [java ee programming] Constructor

2011-07-26 Thread Rafał Laczek
Thank you but it doesn't work in my case.   Dnia 26-07-2011 o godz. 15:56 jeffrey napisał(a): Will this work for you?: package com.mysamples; public class ConstructorStudyParent { String Name; public ConstructorStudyParent(String name) { this.Name = name; } } --

Re: [java ee programming] Constructor

2011-07-26 Thread Rafał Laczek
Basic class is SecuredPage. In subclass HittegodsFinnInnlevSokRes there is getInnlevEDUpdate() method. This method must be just invoked in HittegodsRegInnlev. I can do it in static way but because of other things I must use non static method.   Please have a look for below 3 classes.   public clas

Re: [java ee programming] Constructor

2011-07-26 Thread Icon Web Solutions
Use the super keyword to invoke the base class constructor from the subclass constructor (which is zero-parameter). This example explains how this is done - http://www.javaissues.com/2011/02/how-constructors-work-in-java.html For more such examples, visit http://icontraining.info/java-j2ee-code-ex