HI carlin,

            thanks, i made configuration mistake..  i corected and 
i got it..
thanks
sam

arockiasamy wrote:
> 
> Hi,
> 
>    I am now working in apache\'s beehive. while working on Controls, i
> could not get  output, i am following the 
> beehive tutorial examples.eventhough i couldn\'t get. 
> 
>   I have one interface and implementation class. then controller class. i
> am passing value/data from  one jsp to another jsp throug Controller class
> using controls. i should get \"helloworld\" with jsp data. but i
> couldn\'t. here i have given details program. i am getting nullpointer
> exception with servlet exception..error in the browser and in the console
> \"SEVERE: Parsing error processing resource path
> /WEB-INF/classes/_pageflow/struts-config.xml
> Throwable: java.lang.LinkageError: Class
> org/apache/commons/digester/Digester violates loader constraints
> Stack Trace: java.lang.LinkageError: Class
> org/apache/commons/digester/Digester violates loader constraints \" error
> i am getting. 
> 
>   For control manifest file is generated, but ControlBean class is not
> auto generated, why?.....
> 
> kindly give some tips..
> 
> Here is the program
> 
> HelloWorld .java //interface
>   @ControlInterface
> public interface HelloWorld {
>     
>     public String hello();
>     public String helloParam(String name);
> }
> 
> 2) HelloWorldImpl.java //Implementation file
>    
>  @ControlImplementation(isTransient = true)
> public class HelloWorldImpl
> implements HelloWorld {
> 
>     /**
>      * @see controls.HelloWorld#hello()
>      */
>     public String hello() {
> 
>        return \"hello World\";
>     }
> 
>     /**
>      * @see controls.HelloWorld#helloParam(java.lang.String)
>      */
>     public String helloParam(String name) {
>         
>         return \"Hello\" + name;
>     }
> 
> }      
>        
> Controller.java //controller class
> 
> @Jpf.Controller(
>       simpleActions = {
>           @Jpf.SimpleAction(name=\"begin\", path=\"/pageflow/index.jsp\"),  
>           @Jpf.SimpleAction(name=\"login\", path=\"/pageflow/login.jsp\" )
>       }    
> )
> public class Controller
> extends PageFlowController {
>     
>     @Control
>     private HelloWorld helloWorld;
>     
>     @Jpf.Action (
>          forwards= {
>              @Jpf.Forward(name=\"success\", path
> =\"/pageflow/display.jsp\")
>          }
>     )
>     
>     public Forward processLogin(LoginForm loginForm) {
>      
>         log(\"UserName    : \" + loginForm.getUserName());
>         log(\"Designation : \" + loginForm.getDesignation());
>         
>         Forward fwd = new Forward(\"success\");
>         fwd.addActionOutput(\"userName\", loginForm.getUserName());
>         fwd.addActionOutput(\"designation\", loginForm.getDesignation());
>         fwd.addActionOutput(\"controlMsg\", helloWorld.hello());
>         return fwd;
>     }
>    
>     }
> 
> //jspfile
> 
> netui:html>
>       <netui:body>
>       <p>
>               Your submitted data 
>       </p>
>       <p>
>               Name                    :<netui:span 
> value=\"${pageInput.userName}\"></netui:span> 
>       </p>
>       <p>
>               Designation     :<netui:span
> value=\"${pageInput.designation}\"></netui:span>
>       </p>
>       <p>
>               ControlMessage  :<netui:span
> value=\"${pageInput.controlMsg}\"></netui:span>
>       </p>
>       
>       </netui:body>
> </netui:html>  
> 
> Note:  i am not using  ant tool rather i am using Eclipse 3.2 and to
> generate pageflow i am using annotationprocessing tool plugin..
> 
> kindly help and if possible give some reference for controls
> 
> Thanks in advance
> Arockiasamy A
> 
> 
> 
>  
> 

-- 
View this message in context: 
http://www.nabble.com/Error-on-apache%5C%27s-beehive-Controls-tf2915351.html#a8235160
Sent from the Beehive - User mailing list archive at Nabble.com.

Reply via email to