I am implementing a function but it doesn't work:

the function take 2 parameters in entrance and return a boolean value.

If value is true, it means that the parameter in entrance are good.



customerControllerImpl.java

------------------------------------------------------------------------// 
license-header java merge-point

package org.andromda.archive.customer;



import org.apache.struts.action.ActionMapping;



import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;



/**

 * @see org.andromda.archive.customer.customerController

 */

public class customerControllerImpl extends customerController

{

    /**

     * @see 
org.andromda.archive.customer.customerController#verifyLogin(org.apache.struts.action.ActionMapping,
 org.andromda.archive.customer.VerifyLoginForm, 
javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

     */

    public final boolean verifyLogin(ActionMapping mapping, 
org.andromda.archive.customer.VerifyLoginForm form, HttpServletRequest request, 
HttpServletResponse response) throws Exception

    {

        // all properties receive a default value, just to have the application 
running properly

        boolean result = false;

        result = 
(boolean)this.getCustomerService().handleVerifyLogin((form.getCustomerNumber()),(form.getPassword()));



        if(!result){

                form.setCustomerNumber("customerNumber-test"); 
//"customerNumber-test"

                form.setPassword("password-test"); //"password-test"

        }       

        return result;

    }



}

-------------------------------------------------------------------------------------







customerServiceImpl.java



-------------------------------------------------------------------------------------



// license-header java merge-point

/**

 * This is only generated once! It will never be overwritten.

 * You can (and have to!) safely modify it by hand.

 */

package org.andromda.archive.customer;



/**

 * @see org.andromda.archive.customer.customerService

 */

public class customerServiceImpl

    extends org.andromda.archive.customer.customerServiceBase

{



    /**

     * @see 
org.andromda.archive.customer.customerService#verifyLogin(java.lang.String, 
java.lang.String)

     */

    protected boolean handleVerifyLogin(java.lang.String customerNumber, 
java.lang.String password)

        throws java.lang.Exception

    {

        //@todo implement protected boolean handleVerifyLogin(java.lang.String 
customerNumber, java.lang.String password)

        if((customerNumber == "daniele") & (password == "pippo")){

                return true;

        }

        else{

                return false;

        }

    }



}

-------------------------------------------------------------------------------------







in output...



-------------------------------------------------------------------------------------

INFO  [ReactorTag] | Memory: 38M/47M

INFO  [ReactorTag] +----------------------------------------



war:install:





build:end:



build:start:



multiproject:install-callback:

    [echo] Running war:install for Rental Rooms Web

war:init:



war:war-resources:

    [copy] Copying 62 files to 
C:MyProjectandromdAppjoinProjectrentalroomswebtargetrentalrooms-web-1.0.war

    [copy] Copying 1 file to 
C:MyProjectandromdAppjoinProjectrentalroomswebtargetrentalrooms-web-1.0.warWEB-INF



java:prepare-filesystem:



java:compile:

    [echo] Compiling to 
C:MyProjectandromdAppjoinProjectrentalroomsweb/target/classes

    [echo]

==========================================================



  NOTE: Targetting JVM 1.4, classes

  will not run on earlier JVMs



==========================================================



    [javac] Compiling 43 source files to 
C:MyProjectandromdAppjoinProjectrentalroomswebtargetclasses

C:MyProjectandromdAppjoinProjectrentalroomswebsrcjavaorgandromdaarchivecustomercustomerControllerImpl.java:21:
 cannot reso

lve symbol

symbol  : method handleVerifyLogin (java.lang.String,java.lang.String)

location: interface org.andromda.archive.customer.customerService

        result = 
(boolean)this.getCustomerService().handleVerifyLogin((form.getCustomerNumber()),(form.getPassword()));

                          ^

1 error



BUILD FAILED

File...... C:Documents and 
SettingsDaniele.mavencachemaven-multiproject-plugin-1.3.1plugin.jelly

Element... maven:reactor

Line...... 217

Column.... 9

Unable to obtain goal [multiproject:install-callback] -- C:Documents and 
SettingsDaniele.mavencachemaven-java-plugin-1.5plugin.j

elly:63:48: <ant:javac> Compile failed; see the compiler error output for 
details.

INFO  [App] Total time: 49 seconds

INFO  [App] Finished at: Wed Jun 01 21:13:30 CEST 2005

INFO  [App]

-----------------------------------------------------------------------

--------------







someone can understand where is the problem?



thanks you in advanced[/quote]
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=649#649
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to